summaryrefslogtreecommitdiff
path: root/.manylinux-install.sh
diff options
context:
space:
mode:
authorMichael Howitz <mh@gocept.com>2023-03-06 07:56:41 +0100
committerGitHub <noreply@github.com>2023-03-06 07:56:41 +0100
commit7c9340441401198b3eae0b76517afde6ff1d1719 (patch)
tree31f2b0e13b086927aaa43446cf13db4967796cb3 /.manylinux-install.sh
parent27ee700bdd906c130daf17cbeb53ca028f870319 (diff)
downloadzope-security-7c9340441401198b3eae0b76517afde6ff1d1719.tar.gz
Add preliminary support for Python 3.12 as of 3.12a5. (#96)
Diffstat (limited to '.manylinux-install.sh')
-rwxr-xr-x.manylinux-install.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/.manylinux-install.sh b/.manylinux-install.sh
index 8f736da..94d0419 100755
--- a/.manylinux-install.sh
+++ b/.manylinux-install.sh
@@ -28,6 +28,7 @@ yum -y install libffi-devel
tox_env_map() {
case $1 in
+ *"cp312"*) echo 'py312';;
*"cp37"*) echo 'py37';;
*"cp38"*) echo 'py38';;
*"cp39"*) echo 'py39';;
@@ -40,13 +41,19 @@ tox_env_map() {
# Compile wheels
for PYBIN in /opt/python/*/bin; do
if \
+ [[ "${PYBIN}" == *"cp312"* ]] || \
[[ "${PYBIN}" == *"cp311"* ]] || \
[[ "${PYBIN}" == *"cp37"* ]] || \
[[ "${PYBIN}" == *"cp38"* ]] || \
[[ "${PYBIN}" == *"cp39"* ]] || \
[[ "${PYBIN}" == *"cp310"* ]] ; then
- "${PYBIN}/pip" install -e /io/
- "${PYBIN}/pip" wheel /io/ -w wheelhouse/
+ if [[ "${PYBIN}" == *"cp312"* ]] ; 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