blob: 9da7ed8c069427191b381117fd09572591b7c107 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--- setup.py
+++ setup.py
@@ -344,7 +344,7 @@
mxincludedir = parser.get('build_ext', 'mx_include_dir')
else:
mxincludedir = os.path.join(get_python_inc(plat_specific=1), "mx")
-if os.path.exists(mxincludedir):
+if not use_pydatetime and os.path.exists(mxincludedir):
include_dirs.append(mxincludedir)
define_macros.append(('HAVE_MXDATETIME','1'))
sources.append('adapter_mxdatetime.c')
|