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
{{ message }}
Repository navigation
Py_DEBUG vs PYTHON_WITH_PYDEBUG build directives #362
Py_DEBUG is the official flags name that Python uses to build Python with debug. But we never define Py_DEBUG at all, only PYTHON_WITH_DEBUG on the setup.py script. Is there a difference I'm overseeing or do they just need renaming?
Just browsed the history and found when they were introduced into runtime.cs atleast (Py_DEBUG is present in other files) Christian introduced Py_DEBUG back in 2004 (035b7ad). @tonyroberts introduced PYTHON_WITH_PYDEBUG on 2014 (5062377) for Python3/Mono compatibility.
Looks like we just need to rename the remaining Py_DEBUG to PYTHON_WITH_PYDEBUG to close this issue. And/Or add an option to define Py_DEBUG on setup.py for Python 2.7 (since it doesnt have abiflags)
Activity
vmuriart commentedon Feb 7, 2017
Just browsed the history and found when they were introduced into
runtime.csatleast (Py_DEBUGis present in other files) Christian introducedPy_DEBUGback in 2004 (035b7ad). @tonyroberts introducedPYTHON_WITH_PYDEBUGon 2014 (5062377) for Python3/Mono compatibility.Looks like we just need to rename the remaining
Py_DEBUGtoPYTHON_WITH_PYDEBUGto close this issue. And/Or add an option to definePy_DEBUGonsetup.pyfor Python 2.7 (since it doesnt haveabiflags)Does that sound about right @tonyroberts ?
Combine Py_DEBUG and PYTHON_WITH_PYDEBUG flags
Rebase with master (#2)