Skip to content

Commit 215f88b

Browse files
committed
ENH: Update scripts for building Python 3.11 packages
1 parent 1f5dc5a commit 215f88b

File tree

3 files changed

+17
-13
lines changed

3 files changed

+17
-13
lines changed

scripts/internal/manylinux-build-common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if [[ $# -eq 0 ]]; then
1212
PYBIN=(/opt/python/*/bin)
1313
PYBINARIES=()
1414
for version in "${PYBIN[@]}"; do
15-
if [[ ${version} == *"cp37"* || ${version} == *"cp38"* || ${version} == *"cp39"* || ${version} == *"cp310"* ]]; then
15+
if [[ ${version} == *"cp37"* || ${version} == *"cp38"* || ${version} == *"cp39"* || ${version} == *"cp310"* || ${version} == *"cp311" ]]; then
1616
PYBINARIES+=(${version})
1717
fi
1818
done

scripts/internal/windows_build_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import os
55
import shutil
66

7-
DEFAULT_PY_ENVS = ["37-x64", "38-x64", "39-x64", "310-x64"]
7+
DEFAULT_PY_ENVS = ["37-x64", "38-x64", "39-x64", "310-x64", "311-x64"]
88

99
SCRIPT_DIR = os.path.dirname(__file__)
1010
ROOT_DIR = os.path.abspath(os.path.join(SCRIPT_DIR, "..", ".."))

scripts/macpython-install-python.sh

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,17 @@ GET_PIP_URL=https://bootstrap.pypa.io/get-pip.py
4343
DOWNLOADS_SDIR=downloads
4444
WORKING_SDIR=working
4545

46-
# As of 5 April 2021 - latest Python of each version with binary download
46+
# As of 2 November 2022 - latest Python of each version with binary download
4747
# available.
4848
# See: https://www.python.org/downloads/mac-osx/
4949
LATEST_2p7=2.7.18
5050
LATEST_3p5=3.5.4
5151
LATEST_3p6=3.6.8
5252
LATEST_3p7=3.7.9
5353
LATEST_3p8=3.8.10
54-
LATEST_3p9=3.9.5
55-
LATEST_3p10=3.10.0
54+
LATEST_3p9=3.9.13
55+
LATEST_3p10=3.10.8
56+
LATEST_3p11=3.11.0
5657

5758

5859
function check_python {
@@ -109,7 +110,9 @@ function fill_pyver {
109110
echo $ver
110111
elif [ $ver == 2 ] || [ $ver == "2.7" ]; then
111112
echo $LATEST_2p7
112-
elif [ $ver == 3 ] || [ $ver == "3.10" ]; then
113+
elif [ $ver == 3 ] || [ $ver == "3.11" ]; then
114+
echo $LATEST_3p11
115+
elif [ $ver == "3.10" ]; then
113116
echo $LATEST_3p10
114117
elif [ $ver == "3.9" ]; then
115118
echo $LATEST_3p9
@@ -199,10 +202,10 @@ function pyinst_fname_for_version {
199202
echo "python-${py_version}-macos11.${inst_ext}"
200203
fi
201204
else
202-
if [ "$py_version" == "3.10.0" ]; then
203-
echo "python-${py_version}-macos${py_osx_ver}.${inst_ext}"
204-
else
205+
if [ "$py_version" == "3.7.9" ]; then
205206
echo "python-${py_version}-macosx${py_osx_ver}.${inst_ext}"
207+
else
208+
echo "python-${py_version}-macos${py_osx_ver}.${inst_ext}"
206209
fi
207210
fi
208211
}
@@ -396,21 +399,22 @@ function make_workon_venv {
396399
}
397400

398401
# Remove previous versions
399-
sudo rm -rf ${MACPYTHON_FRAMEWORK}
402+
#echo "Remove and update Python files at ${MACPYTHON_FRAMEWORK}"
403+
#sudo rm -rf ${MACPYTHON_FRAMEWORK}
400404

401405
if test "$(arch)" == "arm64"; then
402406
echo "we are arm"
403407
PLAT=arm64
404-
for pyversion in $LATEST_3p9 $LATEST_3p10; do
408+
for pyversion in $LATEST_3p9 $LATEST_3p10 $LATEST_3p11; do
405409
install_macpython $pyversion 11
406410
install_virtualenv
407411
done
408412
else
409-
for pyversion in $LATEST_3p7 $LATEST_3p8 $LATEST_3p9; do
413+
for pyversion in $LATEST_3p7; do
410414
install_macpython $pyversion 10.9
411415
install_virtualenv
412416
done
413-
for pyversion in $LATEST_3p10; do
417+
for pyversion in $LATEST_3p8 $LATEST_3p9 $LATEST_3p10 $LATEST_3p11; do
414418
install_macpython $pyversion 11
415419
install_virtualenv
416420
done

0 commit comments

Comments
 (0)