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
Py_DEBUG is never going to be in pyconfig.h on Windows as the header is static (no autoconf) and debug/no-debug is determined using the preprocessor at build. sys.gettotalrefcount is protected by Py_REF_DEBUG, which is not guaranteed to always be set when Py_DEBUG is set. That said, distutils.command.build tests for it, so it's probably safe enough (or at least, there'll be twice as many bugs when it breaks...).
The most reliable check is probably going to be:
any(x[0] =='_d.pyd'forxinimp.get_suffixes())
The only issue with this is that the imp module is deprecated - Python 3.3 and later should really use:
'_d.pyd'inimportlib.machinery.EXTENSION_SUFFIXES
The text was updated successfully, but these errors were encountered:
From pypa/pip#3535:
The text was updated successfully, but these errors were encountered: