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 | 988117fd6323c2b21ce1bdb2b1153a5d759a511c (patch) | |
| tree | aaa34f841b7ce55329e960a7dad8567fd027fdf9 /setup.py | |
| parent | f674939a2b94f5ef7c448b559ea3ef2734b01c9f (diff) | |
| download | cpython-git-988117fd6323c2b21ce1bdb2b1153a5d759a511c.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], |
