-
-
Notifications
You must be signed in to change notification settings - Fork 32k
sysconfig.get_config_var("Py_DEBUG")
is not picked up on Windows builds
#133878
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This comment has been minimized.
This comment has been minimized.
@zooba should a build with
but it appears that |
sysconfig.get_config_var("Py_DEBUG")
is not picked up on Windows builds
@cctv130 Does it work better if you're using Python 3.13 or Python 3.14? |
It should, as per the docs: Lines 35 to 42 in 9b9cdb6
|
@StanFromIreland |
If that's the case, then the _DEBUG flag must be added to the MSVC compiler. |
|
@picnixz |
Changing the build configuration and how it's being built is out-of-scope of this issue and this is not some
8000
thing we want to do now. In this case, we need to figure out why sysconfig doesn't pickup |
The As the screenshot shows, you are using Python 3.12.10. |
Yeah |
thanks |
I used the PCbuild\build.bat -e -d -p x64 command to build, but when I print PY_DEBUG, it returns None.

The text was updated successfully, but these errors were encountered: