Title: PEP-739 build-details generation is broken when --relative-paths is specified · Issue #136264 · python/cpython · GitHub
Open Graph Title: PEP-739 build-details generation is broken when --relative-paths is specified · Issue #136264 · python/cpython
X Title: PEP-739 build-details generation is broken when --relative-paths is specified · Issue #136264 · python/cpython
Description: Bug report Bug description: 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. $ ./python.exe -E Tools/build/ge...
Open Graph Description: Bug report Bug description: 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...
X Description: Bug report Bug description: 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...
Opengraph URL: https://github.com/python/cpython/issues/136264
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PEP-739 build-details generation is broken when --relative-paths is specified","articleBody":"# Bug report\n\n### Bug description:\n\nWith 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.\n\n```sh\n$ ./python.exe -E Tools/build/generate-build-details.py /tmp/build-details.json --relative-paths\n```\n\nTraceback:\n\n```\nTraceback (most recent call last):\n File \"/Users/itamaro/work/cpython/Tools/build/generate-build-details.py\", line 194, in \u003cmodule>\n main()\n ~~~~^^\n File \"/Users/itamaro/work/cpython/Tools/build/generate-build-details.py\", line 186, in main\n make_paths_relative(data, args.config_file_path)\n ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/itamaro/work/cpython/Tools/build/generate-build-details.py\", line 157, in make_paths_relative\n new_path = os.path.relpath(current_path, data['base_prefix'])\n File \"/Users/itamaro/work/cpython/Lib/posixpath.py\", line 519, in relpath\n path = os.fspath(path)\nTypeError: expected str, bytes or os.PathLike object, not dict\n```\n\n### CPython versions tested on:\n\nCPython main branch, 3.15, 3.14\n\n### Operating systems tested on:\n\nmacOS, Linux\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-136265\n* gh-138510\n* gh-138638\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/itamaro","@type":"Person","name":"itamaro"},"datePublished":"2025-07-04T03:25:20Z","url":"https://github.com/python/cpython/issues/136264"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e3cb39ca-8696-c1ae-b5af-d60ad51f1a22 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CF4A:14700E:39AACD6:493B1EC:6B01F720 |
| html-safe-nonce | 0c9ca3068dcac098d244dad9b558a931f120f5dee22e6ada9860460bc720c239 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjRBOjE0NzAwRTozOUFBQ0Q2OjQ5M0IxRUM6NkIwMUY3MjAiLCJ2aXNpdG9yX2lkIjoiMTAzNDIwMjQ3NzEyNzM5OTIwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dd2aa2bdf823a0a3907594ae9882e728947bab06e5c8f992e81f20f28689efcc |
| hovercard-subject-tag | issue:3201178996 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/136264/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fd675c99a6725201abf4817b9295f828f25f0420c2b59868b763982ffb62e998/python/cpython/issues/136264 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fd675c99a6725201abf4817b9295f828f25f0420c2b59868b763982ffb62e998/python/cpython/issues/136264 |
| og:image:alt | Bug report Bug description: 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | itamaro |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width