[Python-checkins] CVS: python/dist/src setup.py,1.80,1.81
Martin v. L?wis
loewis@users.sourceforge.net
2002年2月13日 17:25:39 -0800
Update of /cvsroot/python/python/dist/src
In directory usw-pr-cvs1:/tmp/cvs-serv4684
Modified Files:
setup.py
Log Message:
Compute expat -I directives from srcdir. Fixes #517214.
Index: setup.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/setup.py,v
retrieving revision 1.80
retrieving revision 1.81
diff -C2 -d -r1.80 -r1.81
*** setup.py 13 Feb 2002 07:47:16 -0000 1.80
--- setup.py 14 Feb 2002 01:25:37 -0000 1.81
***************
*** 225,228 ****
--- 225,229 ----
platform = self.get_platform()
+ (srcdir,) = sysconfig.get_config_vars('srcdir')
# Check for MacOS X, which doesn't need libm.a at all
***************
*** 559,562 ****
--- 560,564 ----
else:
xmlbo = "21"
+ expatinc = os.path.join(os.getcwd(), srcdir, 'Modules', 'expat')
exts.append(Extension('pyexpat',
sources = [
***************
*** 573,577 ****
('XML_CONTEXT_BYTES','1024'),
],
! include_dirs = ['Modules/expat']
))
--- 575,579 ----
('XML_CONTEXT_BYTES','1024'),
],
! include_dirs = [expatinc]
))