diff setup.py @ 21942:9d44e752d617 legacy-trunk

Compute expat -I directives from srcdir. Fixes #517214.
author Martin v. Löwis <martin@v.loewis.de>
date Thu, 14 Feb 2002 01:25:37 +0000
parents 6bdfc9f6f059
children 3957d155f8c5
line wrap: on
line diff
--- a/setup.py	Wed Feb 13 23:56:46 2002 +0000
+++ b/setup.py	Thu Feb 14 01:25:37 2002 +0000
@@ -224,6 +224,7 @@
         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 @@
             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 @@
             ('XML_BYTE_ORDER', xmlbo),
             ('XML_CONTEXT_BYTES','1024'),
             ],
-                              include_dirs = ['Modules/expat']
+                              include_dirs = [expatinc]
                                ))                        
 
         # Dynamic loading module