Skip to content

relocatable.py configure: pass --enable-relocatable - #50

Merged
itamaro merged 1 commit into
python:mainfrom
itamaro:configure-enable-relocatable
Nov 27, 2026
Merged

itamaro merged 1 commit into
python:mainfrom
itamaro:configure-enable-relocatable

Conversation

@itamaro

@itamaro itamaro commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

relocatable.py configure now passes --enable-relocatable, the configure option that python/cpython#162185 added for build changes that help an installation survive a move but aren't right for every build.

With this, developer.pkg-config goes from failing to passing in every test mode on Linux (test, --no-fixup and --relative-rpath), and the two .pc files drop out of metadata.prefix-leaks under --no-fixup.

A CPython without the option prints configure: WARNING: unrecognized options: --enable-relocatable and carries on, so this would still work if we run it against branches without the configure option.

Written with assistance from Claude Fable 5.2

CPython is gaining an --enable-relocatable configure option
(python/cpython#162185) for build changes that help an installation
survive a move but aren't right for every build. So far it makes the
installed pkg-config files take their prefix from their own location,
which is what the developer.pkg-config check needs.

A CPython without the option warns about it and carries on.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@itamaro
itamaro requested a review from brettcannon November 26, 2026 19:21
@itamaro
itamaro merged commit 69d3ddd into python:main Nov 27, 2026
3 checks passed
@itamaro
itamaro deleted the configure-enable-relocatable branch November 27, 2026 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants