https://github.com/python/cpython/commit/ea678b2e08b57e4c23fdd993e168d3642d9ba7bb
commit: ea678b2e08b57e4c23fdd993e168d3642d9ba7bb
branch: main
author: Ferdinando Ametrano <[email protected]>
committer: freakboy3742 <[email protected]>
date: 2026-11-16T16:19:28+08:00
summary:
gh-162034: Quote the utils.sh path in the Apple testbed build phase (#162035)
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.
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
M Platforms/Apple/testbed/tvOSTestbed.xcodeproj/project.pbxproj
M Platforms/Apple/testbed/visionOSTestbed.xcodeproj/project.pbxproj
M Platforms/Apple/testbed/watchOSTestbed.xcodeproj/project.pbxproj
diff --git a/Doc/using/ios.rst b/Doc/using/ios.rst
index d7cf699d5bc3bfb..4dbb6e77459c480 100644
--- a/Doc/using/ios.rst
+++ b/Doc/using/ios.rst
@@ -226,7 +226,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 bbe3620a1397311..7e2cda78be57690 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 6ac40a325045bd6..b2131822424044e 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{{abiflags}}.xcframework/build/utils.sh\ninstall_python
Python{{abiflags}}.xcframework app app_packages\n";
+ shellScript = "set -e\nsource
\"$PROJECT_DIR/Python{{abiflags}}.xcframework/build/utils.sh\"\ninstall_python
Python{{abiflags}}.xcframework app app_packages\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
diff --git a/Platforms/Apple/testbed/tvOSTestbed.xcodeproj/project.pbxproj
b/Platforms/Apple/testbed/tvOSTestbed.xcodeproj/project.pbxproj
index e14489ad0770a0f..941f6a266bc42a0 100644
--- a/Platforms/Apple/testbed/tvOSTestbed.xcodeproj/project.pbxproj
+++ b/Platforms/Apple/testbed/tvOSTestbed.xcodeproj/project.pbxproj
@@ -236,7 +236,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
- shellScript = "set -e\n\nsource
$PROJECT_DIR/Python{{abiflags}}.xcframework/build/utils.sh\n\ninstall_python
Python{{abiflags}}.xcframework app app_packages\n";
+ shellScript = "set -e\n\nsource
\"$PROJECT_DIR/Python{{abiflags}}.xcframework/build/utils.sh\"\n\ninstall_python
Python{{abiflags}}.xcframework app app_packages\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
diff --git a/Platforms/Apple/testbed/visionOSTestbed.xcodeproj/project.pbxproj
b/Platforms/Apple/testbed/visionOSTestbed.xcodeproj/project.pbxproj
index ee19e22d533cc83..53ddec1b6f29e40 100644
--- a/Platforms/Apple/testbed/visionOSTestbed.xcodeproj/project.pbxproj
+++ b/Platforms/Apple/testbed/visionOSTestbed.xcodeproj/project.pbxproj
@@ -250,7 +250,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
- shellScript = "set -e\n\nsource
$PROJECT_DIR/Python{{abiflags}}.xcframework/build/utils.sh\n\ninstall_python
Python{{abiflags}}.xcframework app app_packages\n";
+ shellScript = "set -e\n\nsource
\"$PROJECT_DIR/Python{{abiflags}}.xcframework/build/utils.sh\"\n\ninstall_python
Python{{abiflags}}.xcframework app app_packages\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
diff --git a/Platforms/Apple/testbed/watchOSTestbed.xcodeproj/project.pbxproj
b/Platforms/Apple/testbed/watchOSTestbed.xcodeproj/project.pbxproj
index d5220c60e65c441..02b98a685cea6c0 100644
--- a/Platforms/Apple/testbed/watchOSTestbed.xcodeproj/project.pbxproj
+++ b/Platforms/Apple/testbed/watchOSTestbed.xcodeproj/project.pbxproj
@@ -236,7 +236,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
- shellScript = "set -e\n\nsource
$PROJECT_DIR/Python{{abiflags}}.xcframework/build/utils.sh\n\ninstall_python
Python{{abiflags}}.xcframework app app_packages\n";
+ shellScript = "set -e\n\nsource
\"$PROJECT_DIR/Python{{abiflags}}.xcframework/build/utils.sh\"\n\ninstall_python
Python{{abiflags}}.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]