Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
cf453fe2
Kaydet (Commit)
cf453fe2
authored
Şub 11, 2002
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use included Expat library. Drop support for older expat versions.
üst
481f68aa
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
28 deletions
+24
-28
pyexpat.c
Modules/pyexpat.c
+0
-0
setup.py
setup.py
+24
-28
No files found.
Modules/pyexpat.c
Dosyayı görüntüle @
cf453fe2
This diff is collapsed.
Click to expand it.
setup.py
Dosyayı görüntüle @
cf453fe2
...
...
@@ -550,35 +550,31 @@ class PyBuildExt(build_ext):
#
# Expat is written by James Clark and must be downloaded separately
# (see below). The pyexpat module was written by Paul Prescod after a
# prototype by Jack Jansen.
#
# The Expat dist includes Windows .lib and .dll files. Home page is
# at http://www.jclark.com/xml/expat.html, the current production
# release is always ftp://ftp.jclark.com/pub/xml/expat.zip.
#
# EXPAT_DIR, below, should point to the expat/ directory created by
# unpacking the Expat source distribution.
#
# Note: the expat build process doesn't yet build a libexpat.a; you
# can do this manually while we try convince the author to add it. To
# do so, cd to EXPAT_DIR, run "make" if you have not done so, then
# run:
#
# ar cr libexpat.a xmltok/*.o xmlparse/*.o
#
expat_defs
=
[]
expat_incs
=
find_file
(
'expat.h'
,
inc_dirs
,
[])
if
expat_incs
is
not
None
:
# expat.h was found
expat_defs
=
[(
'HAVE_EXPAT_H'
,
1
)]
# prototype by Jack Jansen. Source of Expat 1.95.2 is included
# in Modules/expat. Usage of a system shared libexpat.so/expat.dll
# is only advised if that has the same or newer version and was
# build using the same defines.
if
sys
.
byteorder
==
"little"
:
xmlbo
=
"12"
else
:
expat_incs
=
find_file
(
'xmlparse.h'
,
inc_dirs
,
[])
if
(
expat_incs
is
not
None
and
self
.
compiler
.
find_library_file
(
lib_dirs
,
'expat'
)):
exts
.
append
(
Extension
(
'pyexpat'
,
[
'pyexpat.c'
],
define_macros
=
expat_defs
,
libraries
=
[
'expat'
])
)
xmlbo
=
"21"
exts
.
append
(
Extension
(
'pyexpat'
,
sources
=
[
'pyexpat.c'
,
'expat/xmlparse.c'
,
'expat/xmlrole.c'
,
'expat/xmltok.c'
,
],
define_macros
=
[
(
'HAVE_EXPAT_H'
,
None
),
(
'VERSION'
,
'"1.95.2"'
),
(
'XML_NS'
,
'1'
),
(
'XML_DTD'
,
'1'
),
(
'XML_BYTE_ORDER'
,
xmlbo
),
(
'XML_CONTEXT_BYTES'
,
'1024'
),
],
include_dirs
=
[
'Modules/expat'
]
))
# Dynamic loading module
dl_inc
=
find_file
(
'dlfcn.h'
,
[],
inc_dirs
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment