summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-02-14 01:25:37 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-02-14 01:25:37 (GMT)
commit8301256a440fdd98fd500d225dac20ebb192e08f (patch)
treed0dd9cf4b4a429fe96c07b8e59e1cad9b3d285d3 /setup.py
parentb012a15c424d683daab0779d0be2e7a19dd60030 (diff)
downloadcpython-8301256a440fdd98fd500d225dac20ebb192e08f.zip
cpython-8301256a440fdd98fd500d225dac20ebb192e08f.tar.gz
cpython-8301256a440fdd98fd500d225dac20ebb192e08f.tar.bz2
Compute expat -I directives from srcdir. Fixes #517214.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index d928775..e9758e3 100644
--- a/setup.py
+++ b/setup.py
@@ -224,6 +224,7 @@ class PyBuildExt(build_ext):
exts = []
platform = self.get_platform()
+ (srcdir,) = sysconfig.get_config_vars('srcdir')
# Check for MacOS X, which doesn't need libm.a at all
math_libs = ['m']
@@ -558,6 +559,7 @@ class PyBuildExt(build_ext):
xmlbo = "12"
else:
xmlbo = "21"
+ expatinc = os.path.join(os.getcwd(), srcdir, 'Modules', 'expat')
exts.append(Extension('pyexpat',
sources = [
'pyexpat.c',
@@ -572,7 +574,7 @@ class PyBuildExt(build_ext):
('XML_BYTE_ORDER', xmlbo),
('XML_CONTEXT_BYTES','1024'),
],
- include_dirs = ['Modules/expat']
+ include_dirs = [expatinc]
))
# Dynamic loading module