Skip to content

Commit ce16da5

Browse files
author
Erlend E. Aasland
committed
Always build tkinter with Py_BUILD_CORE set
1 parent 66552f0 commit ce16da5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2191,10 +2191,12 @@ def detect_tkinter(self):
21912191
# *** Uncomment these for TOGL extension only:
21922192
# -lGL -lGLU -lXext -lXmu \
21932193

2194+
extra_compile_args = ['-DPy_BUILD_CORE_MODULE']
21942195
self.add(Extension('_tkinter', ['_tkinter.c', 'tkappinit.c'],
21952196
define_macros=[('WITH_APPINIT', 1)] + defs,
21962197
include_dirs=include_dirs,
21972198
libraries=libs,
2199+
extra_compile_args=extra_compile_args,
21982200
library_dirs=added_lib_dirs))
21992201
return True
22002202

0 commit comments

Comments
 (0)