You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PEP-739 build-details generation is broken when --relative-paths is specified #136264
With a freshly python built from main (on MacOS in this repro, but also tested on Linux), trying to generating the PEP-739 build-details with the --relative-paths option fails.
Traceback (most recent call last):
File "/Users/itamaro/work/cpython/Tools/build/generate-build-details.py", line 194, in <module>
main()
~~~~^^
File "/Users/itamaro/work/cpython/Tools/build/generate-build-details.py", line 186, in main
make_paths_relative(data, args.config_file_path)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/itamaro/work/cpython/Tools/build/generate-build-details.py", line 157, in make_paths_relative
new_path = os.path.relpath(current_path, data['base_prefix'])
File "/Users/itamaro/work/cpython/Lib/posixpath.py", line 519, in relpath
path = os.fspath(path)
TypeError: expected str, bytes or os.PathLike object, not dict
Activity
pythongh-136264: Fix PEP-739 build-details generation with relative-p…
StanFromIreland commentedon Jul 4, 2025
itamaro commentedon Jul 13, 2025
cc @FFY00
itamaro commentedon Aug 3, 2025
pfmoore commentedon Aug 3, 2025
gh-136264: Fix ``--relative-paths`` for PEP 739's build-details.json (#…
pythongh-136264: Fix ``--relative-paths`` for PEP 739's build-details…
[3.14] gh-136264: Fix ``--relative-paths`` for PEP 739's build-detail…
pythongh-136264: Fix ``--relative-paths`` for PEP 739's build-details…
emmatyping commentedon Sep 10, 2025
Is there any more work to do here? Looks like the PRs to fix this have been merged and if I run
it works fine.