Kaydet (Commit) 4c86ec65 authored tarafından Fredrik Lundh's avatar Fredrik Lundh

added cElementTree/_elementtree build stuff and wrapper module

üst 9ed73060
# Wrapper module for _elementtree
from _elementtree import *
......@@ -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',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment