summaryrefslogtreecommitdiff
path: root/.manylinux-install.sh
diff options
context:
space:
mode:
Diffstat (limited to '.manylinux-install.sh')
-rwxr-xr-x.manylinux-install.sh18
1 files changed, 16 insertions, 2 deletions
diff --git a/.manylinux-install.sh b/.manylinux-install.sh
index c6bc43f..0c1e237 100755
--- a/.manylinux-install.sh
+++ b/.manylinux-install.sh
@@ -26,6 +26,19 @@ ls -ld /cache/pip
# We need some libraries because we build wheels from scratch:
yum -y install libffi-devel
+tox_env_map() {
+ case $1 in
+ *"cp27"*) echo 'py27';;
+ *"cp35"*) echo 'py35';;
+ *"cp36"*) echo 'py36';;
+ *"cp37"*) echo 'py37';;
+ *"cp38"*) echo 'py38';;
+ *"cp39"*) echo 'py39';;
+ *"cp310"*) echo 'py310';;
+ *) echo 'py';;
+ esac
+}
+
# Compile wheels
for PYBIN in /opt/python/*/bin; do
if \
@@ -40,8 +53,9 @@ for PYBIN in /opt/python/*/bin; do
"${PYBIN}/pip" wheel /io/ -w wheelhouse/
if [ `uname -m` == 'aarch64' ]; then
cd /io/
- "${PYBIN}/pip" install tox
- "${PYBIN}/tox" -e py
+ ${PYBIN}/pip install tox
+ TOXENV=$(tox_env_map "${PYBIN}")
+ ${PYBIN}/tox -e ${TOXENV}
cd ..
fi
rm -rf /io/build /io/*.egg-info