Skip to content

gh-160004: Fix build-details.json paths with --config-file-path - #160007

Merged
itamaro merged 2 commits into
python:mainfrom
itamaro:gh-build-details-config-file-path
Oct 21, 2026
Merged

itamaro merged 2 commits into
python:mainfrom
itamaro:gh-build-details-config-file-path

Conversation

@itamaro

@itamaro itamaro commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

make_paths_relative() now keeps the absolute base_prefix for computing the other paths, and only the stored base_prefix is made relative to the config file's directory. This is the same fix python-build-standalone carries in patch-python-relative-build-details.patch (by @geofft). That patch also changes the Makefile to generate relative paths by default; this PR leaves the Makefile alone.

Written with assistance from Claude Code Opus 5.5

make_paths_relative() first made base_prefix relative to the config
file's directory and then made the other paths relative to that relative
base_prefix, instead of the absolute one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment on lines +3 to +4
and ``--config-file-path``. They are now relative to ``base_prefix``, as
required, instead of being computed from the already relative ``base_prefix``.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand the phrasing of this final sentence. It reads so me like it's saying, "the paths are relative to base_prefix instead of being relative to base_prefix."

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reworded, thanks!

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@itamaro
itamaro enabled auto-merge (squash) October 21, 2026 22:05
@ambv

ambv commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Hypo failure unrelated (it's because of #129462). Fix PR you could stamp: #160133

@itamaro
itamaro merged commit fc1a634 into python:main Oct 21, 2026
61 of 62 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @itamaro for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15.
🐍🍒⛏🤖

@bedevere-app

bedevere-app Bot commented Oct 21, 2026

Copy link
Copy Markdown

GH-160143 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Oct 21, 2026
@bedevere-app

bedevere-app Bot commented Oct 21, 2026

Copy link
Copy Markdown

GH-160144 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Oct 21, 2026
itamaro added a commit that referenced this pull request Oct 22, 2026
…th` (GH-160007) (#160143)

gh-160004: Fix build-details.json paths with `--config-file-path` (GH-160007)

`make_paths_relative()` now keeps the absolute `base_prefix` for computing the other paths, and only the stored `base_prefix` is made relative to the config file's directory. This is the same fix python-build-standalone carries in `patch-python-relative-build-details.patch` (by @geofft). That patch also changes the Makefile to generate relative paths by default; this PR leaves the Makefile alone.
(cherry picked from commit fc1a634)

Co-authored-by: Itamar Oren <itamarost@gmail.com>
itamaro added a commit that referenced this pull request Oct 22, 2026
…th` (GH-160007) (#160144)

gh-160004: Fix build-details.json paths with `--config-file-path` (GH-160007)

`make_paths_relative()` now keeps the absolute `base_prefix` for computing the other paths, and only the stored `base_prefix` is made relative to the config file's directory. This is the same fix python-build-standalone carries in `patch-python-relative-build-details.patch` (by @geofft). That patch also changes the Makefile to generate relative paths by default; this PR leaves the Makefile alone.
(cherry picked from commit fc1a634)

Co-authored-by: Itamar Oren <itamarost@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build The build process and cross-build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants