https://github.com/python/cpython/commit/4faf413224a1780f9ffa22aeb20acdb1e6f5300e commit: 4faf413224a1780f9ffa22aeb20acdb1e6f5300e branch: 3.14 author: Russell Keith-Magee <[email protected]> committer: hugovk <[email protected]> date: 2026-11-16T11:31:55+02:00 summary:
[3.14] gh-162034: Quote the utils.sh path in the Apple testbed build phase (GH-162035) (#162090) Modifies the iOS testbed to ensure that the path to the `utils.sh` script is quoted so that spaces in the path don't prevent the script from operating. (cherry picked from commit ea678b2e08b57e4c23fdd993e168d3642d9ba7bb) Co-authored-by: Ferdinando Ametrano <[email protected]> files: A Misc/NEWS.d/next/Tests/2026-11-15-09-43-15.gh-issue-162034.egx5QV.rst M Apple/testbed/Python.xcframework/build/utils.sh M Apple/testbed/iOSTestbed.xcodeproj/project.pbxproj M Doc/using/ios.rst diff --git a/Apple/testbed/Python.xcframework/build/utils.sh b/Apple/testbed/Python.xcframework/build/utils.sh index e54471f68b7cb2..7b905640cfa192 100755 --- a/Apple/testbed/Python.xcframework/build/utils.sh +++ b/Apple/testbed/Python.xcframework/build/utils.sh @@ -14,7 +14,7 @@ # * There is an `app_packages` folder that contains installed Python packages. # ----- # set -e -# source $PROJECT_DIR/Python.xcframework/build/build_utils.sh +# source "$PROJECT_DIR/Python.xcframework/build/utils.sh" # install_python Python.xcframework app app_packages # ----- diff --git a/Apple/testbed/iOSTestbed.xcodeproj/project.pbxproj b/Apple/testbed/iOSTestbed.xcodeproj/project.pbxproj index a0dd6851dc103d..b15a72f3ad92bf 100644 --- a/Apple/testbed/iOSTestbed.xcodeproj/project.pbxproj +++ b/Apple/testbed/iOSTestbed.xcodeproj/project.pbxproj @@ -250,7 +250,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "set -e\nsource $PROJECT_DIR/Python.xcframework/build/utils.sh\ninstall_python Python.xcframework app app_packages\n"; + shellScript = "set -e\nsource \"$PROJECT_DIR/Python.xcframework/build/utils.sh\"\ninstall_python Python.xcframework app app_packages\n"; showEnvVarsInLog = 0; }; /* End PBXShellScriptBuildPhase section */ diff --git a/Doc/using/ios.rst b/Doc/using/ios.rst index 18fa0f6d341c65..c2332d1bafd848 100644 --- a/Doc/using/ios.rst +++ b/Doc/using/ios.rst @@ -219,7 +219,7 @@ To add Python to an iOS Xcode project: .. code-block:: bash set -e - source $PROJECT_DIR/Python.xcframework/build/build_utils.sh + source "$PROJECT_DIR/Python.xcframework/build/utils.sh" install_python Python.xcframework app If you have placed your XCframework somewhere other than the root of your diff --git a/Misc/NEWS.d/next/Tests/2026-11-15-09-43-15.gh-issue-162034.egx5QV.rst b/Misc/NEWS.d/next/Tests/2026-11-15-09-43-15.gh-issue-162034.egx5QV.rst new file mode 100644 index 00000000000000..1b7d2c4ad5f27c --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2026-11-15-09-43-15.gh-issue-162034.egx5QV.rst @@ -0,0 +1,2 @@ +The Apple testbed projects now build when the path of the project contains a +space. _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
