Skip to content

Commit

Permalink
add debug cruft for select_wheels, fix image for aarch64, ppc64le, s390x
Browse files Browse the repository at this point in the history
  • Loading branch information
mattip committed Mar 2, 2020
1 parent bb46ec2 commit 3d9327e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ matrix:
- MB_ML_VER=2014
- TEST_BUILDS=1
- PLAT=aarch64
- DOCKER_TEST_IMAGE=multibuild/xenial_{PLAT}
# s390x builds
- os: linux
arch: s390x
Expand All @@ -203,6 +204,7 @@ matrix:
- MB_ML_VER=2014
- TEST_BUILDS=1
- PLAT=s390x
- DOCKER_TEST_IMAGE=multibuild/xenial_{PLAT}
# ppc64le builds
- os: linux
arch: ppc64le
Expand All @@ -211,6 +213,7 @@ matrix:
- MB_ML_VER=2014
- TEST_BUILDS=1
- PLAT=ppc64le
- DOCKER_TEST_IMAGE=multibuild/xenial_{PLAT}

script:
- export ENV_VARS_PATH="tests/env_vars.sh"
Expand Down
7 changes: 6 additions & 1 deletion common_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -333,17 +333,22 @@ function install_wheel {
# WHEEL_SDIR (optional, default "wheelhouse")
# TEST_DEPENDS (optional, default "")
# MANYLINUX_URL (optional, default "") (via pip_opts function)
set -x
local wheelhouse=$(abspath ${WHEEL_SDIR:-wheelhouse})
if [ -n "$TEST_DEPENDS" ]; then
while read TEST_DEPENDENCY; do
pip install $(pip_opts) $@ $TEST_DEPENDENCY
done <<< "$TEST_DEPENDS"
fi

ls .
which pip
which python
pip install packaging
get_platform
local supported_wheels=$(python $MULTIBUILD_DIR/supported_wheels.py $wheelhouse/*.whl)
if [ -z "$supported_wheels" ]; then
echo "ERROR: no supported wheels found"
ls $wheelhouse/*.whl
exit 1
fi
# Install compatible wheel
Expand Down
6 changes: 6 additions & 0 deletions supported_wheels.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,20 @@ def tags_for(fname):


def main():
print('calling supported_wheels.main')
import pprint
supported = {(tag.interpreter, tag.abi, tag.platform)
for tag in sys_tags()
}
print('printing supported')
pprint.pprint(supported)
print('\nprinting supported done')
for fname in sys.argv[1:]:
tags = set(tags_for(fname))
if supported.intersection(tags):
print(fname)

print('importing supported_wheels.py')

if __name__ == '__main__':
main()

0 comments on commit 3d9327e

Please sign in to comment.