New submission from Christian Heimes <li...@cheimes.de>:
CPython's setup.py contains lots of extra_compile_args = ['-DPy_BUILD_CORE_MODULE'] to mark modules as core module. Extra compiler args is the wrong option. It's also tedious and err-prone to define the macro in each and every Extension() class instance. The compiler flag should be set automatically for all core extensions and it should use be set using the correct option define_macros. ---------- assignee: christian.heimes components: Build messages: 392293 nosy: christian.heimes, pablogsal, vstinner priority: normal severity: normal status: open title: setup.py should set Py_BUILD_CORE_MODULE as defined macro type: behavior versions: Python 3.10, Python 3.11 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43974> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com