Skip to content

gh-162034: Quote the utils.sh path in the Apple testbed build phase - #162035

Open
fametrano wants to merge 3 commits into
python:mainfrom
fametrano:ios-testbed-space-path-docs
Open

fametrano wants to merge 3 commits into
python:mainfrom
fametrano:ios-testbed-space-path-docs

Conversation

@fametrano

@fametrano fametrano commented Nov 15, 2026 •

Copy link
Copy Markdown

The Apple testbed fails to build when its path contains a space, because the "Process Python libraries" build phase sources utils.sh through an unquoted $PROJECT_DIR. A *, ? or [ in the path is glob-expanded as well, so the phase can source another directory's utils.sh. This quotes that path in the iOS, tvOS, visionOS and watchOS testbed projects, and in the example in Doc/using/ios.rst and the utils.sh header, where it also replaces the nonexistent build_utils.sh with utils.sh.

With the change, an iOS testbed cloned under a path with a space builds and passes run -- platform on the iOS 27.2 simulator, and the build phase run with PROJECT_DIR=<dir>/run[x] sources its own utils.sh. The other three projects take the same one-line change; I had no simulator for them.

…hase

The "Process Python libraries" build phase sources utils.sh through an
unquoted $PROJECT_DIR. The build fails when the project path contains a
space, and a *, ? or [ in the path is glob-expanded, so the phase can
source another directory's utils.sh. Quote the path in the four testbed
projects.
The build phase example in Doc/using/ios.rst, and the one in the utils.sh
header comment, source an unquoted path to build_utils.sh. The helper is
named utils.sh. Quote the path and use the right file name.
@python-cla-bot

python-cla-bot Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@read-the-docs-community

read-the-docs-community Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #35912825 | 📁 Comparing f1f155b against main (8750d38)

  🔍 Preview build  

2 files changed
± using/ios.html
± whatsnew/changelog.html

@hugovk

hugovk commented Nov 15, 2026

Copy link
Copy Markdown
Member

@fametrano Thanks for the PR, please sign the CLA: #162035 (comment)

@fametrano

Copy link
Copy Markdown
Author

@fametrano please sign the CLA: #162035 (comment)

done

@hugovk

hugovk commented Nov 15, 2026

Copy link
Copy Markdown
Member

Thanks!

And please could you sign the CLA again? :)

See https://devguide.python.org/getting-started/pull-request-lifecycle/#why-do-i-need-to-sign-the-cla-again which is about backports, but will be triggered here by merging in main.

Tip: no need to merge in main unless there's a merge conflict to resolve, or there's been a long time since the last run.

@fametrano

Copy link
Copy Markdown
Author

Got it, won't update the branch anymore and/or will sign again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants