summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHye-Shik Chang <hyeshik@gmail.com>2006-03-27 08:43:11 (GMT)
committerHye-Shik Chang <hyeshik@gmail.com>2006-03-27 08:43:11 (GMT)
commit6c403597954487e8129221351f72da3735c52c09 (patch)
tree94a85e93ba44bd94d2fea8d480284f366b832fa6
parentb9c03e999f74ef87f72b6aea8c68618b1e93545b (diff)
downloadcpython-6c403597954487e8129221351f72da3735c52c09.zip
cpython-6c403597954487e8129221351f72da3735c52c09.tar.gz
cpython-6c403597954487e8129221351f72da3735c52c09.tar.bz2
Find a source file in srcdir to allow to build outside of srcdir.
-rw-r--r--setup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index bbda7f2..126a49e 100644
--- a/setup.py
+++ b/setup.py
@@ -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,