[Python-checkins] r43339 - python/trunk/setup.py

hyeshik.chang python-checkins at python.org
Mon Mar 27 10:43:11 CEST 2006


Author: hyeshik.chang
Date: Mon Mar 27 10:43:11 2006
New Revision: 43339

Modified:
   python/trunk/setup.py
Log:
Find a source file in srcdir to allow to build outside of srcdir.


Modified: python/trunk/setup.py
==============================================================================
--- python/trunk/setup.py	(original)
+++ python/trunk/setup.py	Mon Mar 27 10:43:11 2006
@@ -863,7 +863,7 @@
         # Fredrik Lundh's cElementTree module.  Note that this also
         # uses expat (via the CAPI hook in pyexpat).
 
-        if os.path.isfile('Modules/_elementtree.c'):
+        if os.path.isfile(os.path.join(srcdir, 'Modules', '_elementtree.c')):
             define_macros.append(('USE_PYEXPAT_CAPI', None))
             exts.append(Extension('_elementtree',
                                   define_macros = define_macros,


More information about the Python-checkins mailing list