| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…ng spaces The shell variant of python-config located its own installation prefix with unquoted command substitutions, so a prefix containing whitespace was word-split: the script printed empty --prefix and --exec-prefix values and bogus --includes/--ldflags paths while still exiting 0. Quote the substitutions, quote the argument loop, and exit with status 1 when the prefix cannot be determined.
Replace the configured prefix with the installed one using POSIX parameter expansion instead of sed, so that a prefix containing '#', '&', a backslash or a regular expression metacharacter is handled literally.
Sorry, something went wrong.
dash's echo interprets backslash escapes even in quoted arguments, so a path containing "\c" was truncated. Print every value with printf '%s\n'. Test "#", "&" and "\" in the install path and in the configured prefix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks @itamaro for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15. |
Sorry, something went wrong.
|
Sorry, @itamaro, I could not cleanly backport this to 3.14 due to a conflict. Please backport manually with cherry_picker, see the devguide for more information. cherry_picker 3e134077631fec203e4cdcb44133176d5abbea19 3.14 |
Sorry, something went wrong.
|
GH-160184 is a backport of this pull request to the 3.15 branch. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
The shell python-config located its own prefix with unquoted command
substitutions, so any whitespace in the installation path made it print an
empty --prefix and -I/include/...-style paths while exiting 0.
instead of silently printing empty paths.
parameter expansion, so #, &, \ and regex metacharacters in either
prefix are handled literally. Same first-occurrence semantics.
generated script from …/path with spaces/bin/ and checks --prefix,
--exec-prefix, --includes and empty stderr
Written with assistance from Claude Code Fable 5.1