mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
added cElementTree/_elementtree build stuff and wrapper module
This commit is contained in:
parent
9ed7306031
commit
4c86ec651e
2 changed files with 14 additions and 0 deletions
3
Lib/xmlcore/etree/cElementTree.py
Normal file
3
Lib/xmlcore/etree/cElementTree.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Wrapper module for _elementtree
|
||||
|
||||
from _elementtree import *
|
11
setup.py
11
setup.py
|
@ -841,6 +841,17 @@ 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'):
|
||||
define_macros.append(('USE_PYEXPAT_CAPI', None))
|
||||
exts.append(Extension('_elementtree',
|
||||
define_macros = define_macros,
|
||||
include_dirs = [expatinc],
|
||||
sources = ['_elementtree.c'],
|
||||
))
|
||||
|
||||
# Hye-Shik Chang's CJKCodecs modules.
|
||||
if have_unicode:
|
||||
exts.append(Extension('_multibytecodec',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue