diff options
author | Hye-Shik Chang <hyeshik@gmail.com> | 2006-03-27 08:43:11 (GMT) |
---|---|---|
committer | Hye-Shik Chang <hyeshik@gmail.com> | 2006-03-27 08:43:11 (GMT) |
commit | 6c403597954487e8129221351f72da3735c52c09 (patch) | |
tree | 94a85e93ba44bd94d2fea8d480284f366b832fa6 | |
parent | b9c03e999f74ef87f72b6aea8c68618b1e93545b (diff) | |
download | cpython-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.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |