Find a source file in srcdir to allow to build outside of srcdir.

This commit is contained in:
Hye-Shik Chang 2006-03-27 08:43:11 +00:00
parent b9c03e999f
commit 6c40359795
1 changed files with 1 additions and 1 deletions

View File

@ -863,7 +863,7 @@ class PyBuildExt(build_ext):
# 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,