https://github.com/python/cpython/commit/e970097ef7a283a655defbef87f1d4881273691a
commit: e970097ef7a283a655defbef87f1d4881273691a
branch: 3.15
author: Russell Keith-Magee <[email protected]>
committer: hugovk <[email protected]>
date: 2026-11-16T10:04:25Z
summary:

[3.15] gh-162034: Quote the utils.sh path in the Apple testbed build phase 
(GH-162035) (#162089)

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 Doc/using/ios.rst
M Platforms/Apple/testbed/Python.xcframework/build/utils.sh
M Platforms/Apple/testbed/iOSTestbed.xcodeproj/project.pbxproj

diff --git a/Doc/using/ios.rst b/Doc/using/ios.rst
index a7ca5a35053df5c..f2e5bfc1a8878f4 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 000000000000000..1b7d2c4ad5f27c6
--- /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.
diff --git a/Platforms/Apple/testbed/Python.xcframework/build/utils.sh 
b/Platforms/Apple/testbed/Python.xcframework/build/utils.sh
index e54471f68b7cb2c..7b905640cfa192a 100755
--- a/Platforms/Apple/testbed/Python.xcframework/build/utils.sh
+++ b/Platforms/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/Platforms/Apple/testbed/iOSTestbed.xcodeproj/project.pbxproj 
b/Platforms/Apple/testbed/iOSTestbed.xcodeproj/project.pbxproj
index a0dd6851dc103da..b15a72f3ad92bf4 100644
--- a/Platforms/Apple/testbed/iOSTestbed.xcodeproj/project.pbxproj
+++ b/Platforms/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 */

_______________________________________________
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]

Reply via email to