diff options
author | Ronald Oussoren <ronaldoussoren@mac.com> | 2006-04-29 11:31:35 +0000 |
---|---|---|
committer | Ronald Oussoren <ronaldoussoren@mac.com> | 2006-04-29 11:31:35 +0000 |
commit | f780494a91d139e79683cd6d294835b8cfdada63 (patch) | |
tree | 6532e97375349152429909c7a28b7c3a83296cc5 /setup.py | |
parent | efcd28b2cd0db037b45b74372a5cb23a7d138667 (diff) | |
download | cpython-f780494a91d139e79683cd6d294835b8cfdada63.tar.gz |
Patch 1471883: --enable-universalsdk on Mac OS X
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 15 |
1 files changed, 3 insertions, 12 deletions
@@ -913,20 +913,11 @@ class PyBuildExt(build_ext): # # More information on Expat can be found at www.libexpat.org. # - if sys.byteorder == "little": - xmlbo = "1234" - else: - xmlbo = "4321" expatinc = os.path.join(os.getcwd(), srcdir, 'Modules', 'expat') define_macros = [ - ('XML_NS', '1'), - ('XML_DTD', '1'), - ('BYTEORDER', xmlbo), - ('XML_CONTEXT_BYTES','1024'), - ] - for feature_macro in ['HAVE_MEMMOVE', 'HAVE_BCOPY']: - if config_h_vars.has_key(feature_macro): - define_macros.append((feature_macro, '1')) + ('HAVE_EXPAT_CONFIG_H', '1'), + ] + exts.append(Extension('pyexpat', define_macros = define_macros, include_dirs = [expatinc], |