summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py16
1 files changed, 5 insertions, 11 deletions
diff --git a/setup.py b/setup.py
index 75bd163..3b4e7ae 100644
--- a/setup.py
+++ b/setup.py
@@ -1864,17 +1864,11 @@ class PyBuildExt(build_ext):
## # Uncomment these lines if you want to play with xxmodule.c
## self.add(Extension('xx', ['xxmodule.c']))
- if 'd' not in sysconfig.get_config_var('ABIFLAGS'):
- # Non-debug mode: Build xxlimited with limited API
- self.add(Extension('xxlimited', ['xxlimited.c'],
- define_macros=[('Py_LIMITED_API', '0x030a0000')]))
- self.add(Extension('xxlimited_35', ['xxlimited_35.c'],
- define_macros=[('Py_LIMITED_API', '0x03050000')]))
- else:
- # Debug mode: Build xxlimited with the full API
- # (which is compatible with the limited one)
- self.add(Extension('xxlimited', ['xxlimited.c']))
- self.add(Extension('xxlimited_35', ['xxlimited_35.c']))
+ # Limited C API
+ self.add(Extension('xxlimited', ['xxlimited.c'],
+ define_macros=[('Py_LIMITED_API', '0x030a0000')]))
+ self.add(Extension('xxlimited_35', ['xxlimited_35.c'],
+ define_macros=[('Py_LIMITED_API', '0x03050000')]))
def detect_tkinter_fromenv(self):
# Build _tkinter using the Tcl/Tk locations specified by