Skip to content

Commit 6ecb8e3

Browse files
committed
BUG: Fix macpython version request parsing
Fixes logic so that requesting a build for a certain version of Python can be correctly parsed.
1 parent 07f6037 commit 6ecb8e3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scripts/macpython-build-common.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ usage()
1616
macpython-build-common
1717
[ -h | --help ] show usage
1818
[ -c | --cmake_options ] space-separated string of CMake options to forward to the module (e.g. \"-DBUILD_TESTING=OFF\")
19-
[ -- python_versions ] build wheel for a specific python version(s). (e.g. -- cp39 cp310)"
19+
[ -- python_versions ] build wheel for a specific python version(s). (e.g. -- 3.9 3.10)"
2020
exit 2
2121
}
2222

@@ -49,7 +49,7 @@ PYTHON_VERSIONS=$(xargs <<< "${PYTHON_VERSIONS}")
4949
# Versions can be restricted by passing them in as arguments to the script
5050
# For example,
5151
# macpython-build-wheels.sh 3.9
52-
if [[ -n "${PYTHON_VERSIONS}" ]]; then
52+
if [[ -z "${PYTHON_VERSIONS}" ]]; then
5353
PYBINARIES=(${MACPYTHON_PY_PREFIX}/*)
5454
else
5555
PYBINARIES=()

scripts/macpython-build-wheels.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# For example,
1414
#
1515
# export DYLD_LIBRARY_PATH="/path/to/libs"
16-
# scripts/macpython-build-module-wheels.sh cp39
16+
# scripts/macpython-build-module-wheels.sh 3.9
1717
#
1818

1919
# -----------------------------------------------------------------------

0 commit comments

Comments
 (0)