gh-100086: Add build details to sys.version by vstinner · Pull Request #100087 · python/cpython · GitHub
Skip to content

gh-100086: Add build details to sys.version#100087

Closed
vstinner wants to merge 3 commits intopython:mainfrom
vstinner:py_build_str
Closed

gh-100086: Add build details to sys.version#100087
vstinner wants to merge 3 commits intopython:mainfrom
vstinner:py_build_str

Conversation

@vstinner
Copy link
Copy Markdown
Member

@vstinner vstinner commented Dec 7, 2022

Add more build details about how Python was configured in sys.version, like "debug" or "release" build.

Build details and related configure option:

  • "debug": --with-pydebug, "release" otherwise
  • "+assert": --with-assertions
  • "+tracerefs": --with-trace-refs
  • "+pystats": --enable-pystats
  • "asan": --with-address-sanitizer
  • "msan": --with-memory-sanitizer
  • "ubsan": --with-undefined-behavior-sanitizer
  • "lto+pgo": --with-lto --enable-optimizations
  • "framework": --enable-framework
  • "shared": --enable-shared

@netlify
Copy link
Copy Markdown

netlify Bot commented Dec 7, 2022

@vstinner
Copy link
Copy Markdown
Member Author

vstinner commented Dec 7, 2022

cc @erlend-aasland

Add more build details about how Python was configured in
sys.version, like "debug" or "release" build.

Build details and related configure option:

* "debug": --with-pydebug, "release" otherwise
* "+assert": --with-assertions
* "+tracerefs": --with-trace-refs
* "+pystats": --enable-pystats
* "asan": --with-address-sanitizer
* "msan": --with-memory-sanitizer
* "ubsan": --with-undefined-behavior-sanitizer
* "lto+pgo": --with-lto --enable-optimizations
* "framework": --enable-framework
* "shared": --enable-shared
@vstinner
Copy link
Copy Markdown
Member Author

vstinner commented Dec 7, 2022

Example of "build details" on CI jobs (test.info details):

  • Address sanitizer: "release asan build" (build.NDEBUG: ignore assertions, build.Py_DEBUG: No, sysconfig[PY_CFLAGS]: -fsanitize=address (...))
  • Ubuntu: "debug build" (build.NDEBUG: build assertions, build.Py_DEBUG: Yes)
  • macOS: "debug build" (build.Py_DEBUG: Yes)
  • Windows x64: "debug build" (build.Py_DEBUG: Yes)

@ned-deily
Copy link
Copy Markdown
Member

I don't think this change should be made. See my comment on the issue.

@vstinner
Copy link
Copy Markdown
Member Author

vstinner commented Dec 7, 2022

@vstinner vstinner closed this Dec 7, 2022
@vstinner vstinner deleted the py_build_str branch December 7, 2022 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants