mirror of
https://github.com/python/cpython.git
synced 2025-11-29 14:31:30 +00:00
Find a source file in srcdir to allow to build outside of srcdir.
This commit is contained in:
parent
b9c03e999f
commit
6c40359795
1 changed files with 1 additions and 1 deletions
2
setup.py
2
setup.py
|
|
@ -863,7 +863,7 @@ class PyBuildExt(build_ext):
|
||||||
# Fredrik Lundh's cElementTree module. Note that this also
|
# Fredrik Lundh's cElementTree module. Note that this also
|
||||||
# uses expat (via the CAPI hook in pyexpat).
|
# 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))
|
define_macros.append(('USE_PYEXPAT_CAPI', None))
|
||||||
exts.append(Extension('_elementtree',
|
exts.append(Extension('_elementtree',
|
||||||
define_macros = define_macros,
|
define_macros = define_macros,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue