summaryrefslogtreecommitdiff
path: root/.manylinux-install.sh
diff options
context:
space:
mode:
authorMarius Gedminas <marius@gedmin.as>2022-09-12 21:14:24 +0300
committerMarius Gedminas <marius@gedmin.as>2022-09-12 21:14:35 +0300
commit8b0f6ab057c787fd0b1b523a8e1687e022223e08 (patch)
tree63e3bde7c22c37b3efe496180235a4bbda08aa33 /.manylinux-install.sh
parent2231265da5ee98a7d53375386c55a4b4476a73cb (diff)
downloadzope-security-8b0f6ab057c787fd0b1b523a8e1687e022223e08.tar.gz
Configuring for c-code
Add a regression test for CFLAGS not having -Ofast, which is known to break things. See https://github.com/zopefoundation/meta/pull/155 for reference.
Diffstat (limited to '.manylinux-install.sh')
-rwxr-xr-x.manylinux-install.sh28
1 files changed, 24 insertions, 4 deletions
diff --git a/.manylinux-install.sh b/.manylinux-install.sh
index ac3e13d..75ba0a8 100755
--- a/.manylinux-install.sh
+++ b/.manylinux-install.sh
@@ -26,6 +26,20 @@ 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';;
+ *"cp311"*) echo 'py311';;
+ *"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 \
@@ -37,12 +51,18 @@ for PYBIN in /opt/python/*/bin; do
[[ "${PYBIN}" == *"cp38"* ]] || \
[[ "${PYBIN}" == *"cp39"* ]] || \
[[ "${PYBIN}" == *"cp310"* ]] ; then
- "${PYBIN}/pip" install --pre -e /io/
- "${PYBIN}/pip" wheel /io/ --pre -w wheelhouse/
+ if [[ "${PYBIN}" == *"cp311"* ]] ; then
+ "${PYBIN}/pip" install --pre -e /io/
+ "${PYBIN}/pip" wheel /io/ --pre -w wheelhouse/
+ else
+ "${PYBIN}/pip" install -e /io/
+ "${PYBIN}/pip" wheel /io/ -w wheelhouse/
+ fi
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