Skip to content

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

Closed
vstinner wants to merge 3 commits into
python:mainfrom
vstinner:py_build_str
Closed

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

Conversation

@vstinner

@vstinnervstinner commented Dec 7, 2022

Copy link
Copy Markdown
Member

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

netlifyBot commented Dec 7, 2022

Copy link
Copy Markdown

Deploy Preview for python-cpython-preview canceled.

NameLink
🔨 Latest commit5fca7d3
🔍 Latest deploy loghttps://app.netlify.com/sites/python-cpython-preview/deploys/63911236edff440008be36da

@vstinner

Copy link
Copy Markdown
MemberAuthor

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
MemberAuthor

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
MemberAuthor

I don't think this change should be made. See #100086 (comment).

Ok, I wrote PR #100093 instead.

@vstinnervstinner closed this Dec 7, 2022
@vstinner
vstinner deleted the py_build_str branch December 7, 2022 23:49
Sign up for freeto 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

@vstinner@ned-deily@bedevere-bot