diff options
author | 2020-10-27 17:12:53 +0100 | |
---|---|---|
committer | 2020-10-27 17:12:53 +0100 | |
commit | 37834136d0afe51d274bfc79d8705514cbe73727 (patch) | |
tree | 0e4c6b1f42813363f690e7ad179874d727d2cd79 /setup.py | |
parent | bpo-41474, Makefile: Add dependency on cpython/frameobject.h (GH-22999) (diff) | |
download | cpython-37834136d0afe51d274bfc79d8705514cbe73727.tar.gz cpython-37834136d0afe51d274bfc79d8705514cbe73727.tar.bz2 cpython-37834136d0afe51d274bfc79d8705514cbe73727.zip |
bpo-42161: Modules/ uses _PyLong_GetZero() and _PyLong_GetOne() (GH-22998)
Use _PyLong_GetZero() and _PyLong_GetOne() in Modules/ directory.
_cursesmodule.c and zoneinfo.c are now built with
Py_BUILD_CORE_MODULE macro defined.
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -856,7 +856,8 @@ class PyBuildExt(build_ext): libraries=['m'], extra_compile_args=['-DPy_BUILD_CORE_MODULE'])) # zoneinfo module - self.add(Extension('_zoneinfo', ['_zoneinfo.c'])), + self.add(Extension('_zoneinfo', ['_zoneinfo.c'], + extra_compile_args=['-DPy_BUILD_CORE_MODULE'])) # random number generator implemented in C self.add(Extension("_random", ["_randommodule.c"], extra_compile_args=['-DPy_BUILD_CORE_MODULE'])) @@ -1094,6 +1095,7 @@ class PyBuildExt(build_ext): if curses_library.startswith('ncurses'): curses_libs = [curses_library] self.add(Extension('_curses', ['_cursesmodule.c'], + extra_compile_args=['-DPy_BUILD_CORE_MODULE'], include_dirs=curses_includes, define_macros=curses_defines, libraries=curses_libs)) @@ -1108,6 +1110,7 @@ class PyBuildExt(build_ext): curses_libs = ['curses'] self.add(Extension('_curses', ['_cursesmodule.c'], + extra_compile_args=['-DPy_BUILD_CORE_MODULE'], define_macros=curses_defines, libraries=curses_libs)) else: |