mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +00:00
Incorporate Expat 1.95.6.
This commit is contained in:
parent
5a772d32f4
commit
fc03a94aac
11 changed files with 5443 additions and 3941 deletions
7
setup.py
7
setup.py
|
@ -690,9 +690,9 @@ class PyBuildExt(build_ext):
|
|||
# More information on Expat can be found at www.libexpat.org.
|
||||
#
|
||||
if sys.byteorder == "little":
|
||||
xmlbo = "12"
|
||||
xmlbo = "1234"
|
||||
else:
|
||||
xmlbo = "21"
|
||||
xmlbo = "4321"
|
||||
expatinc = os.path.join(os.getcwd(), srcdir, 'Modules', 'expat')
|
||||
exts.append(Extension('pyexpat',
|
||||
sources = [
|
||||
|
@ -702,10 +702,9 @@ class PyBuildExt(build_ext):
|
|||
'expat/xmltok.c',
|
||||
],
|
||||
define_macros = [
|
||||
('HAVE_EXPAT_H',None),
|
||||
('XML_NS', '1'),
|
||||
('XML_DTD', '1'),
|
||||
('XML_BYTE_ORDER', xmlbo),
|
||||
('BYTEORDER', xmlbo),
|
||||
('XML_CONTEXT_BYTES','1024'),
|
||||
],
|
||||
include_dirs = [expatinc]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue