[Python-checkins] CVS: distutils/distutils/command build_ext.py,1.59,1.60
Greg Ward
python-dev@python.org
Sat, 12 Aug 2000 17:42:37 -0700
Update of /cvsroot/python/distutils/distutils/command
In directory slayer.i.sourceforge.net:/tmp/cvs-serv4230/command
Modified Files:
build_ext.py
Log Message:
get_export_symbols() changed, adds now module init function if not given
by the user.
Index: build_ext.py
===================================================================
RCS file: /cvsroot/python/distutils/distutils/command/build_ext.py,v
retrieving revision 1.59
retrieving revision 1.60
diff -C2 -r1.59 -r1.60
*** build_ext.py 2000/08/01 23:54:29 1.59
--- build_ext.py 2000/08/13 00:42:35 1.60
***************
*** 550,561 ****
"""
! # XXX what if 'export_symbols' defined but it doesn't contain
! # "init" + module_name? Should we add it? warn? or just carry
! # on doing nothing?
!
! if ext.export_symbols is None:
! return ["init" + string.split(ext.name,'.')[-1]]
! else:
! return ext.export_symbols
def get_libraries (self, ext):
--- 550,557 ----
"""
! initfunc_name = "init" + string.split(ext.name,'.')[-1]
! if initfunc_name not in ext.export_symbols:
! ext.export_symbols.append(initfunc_name)
! return ext.export_symbols
def get_libraries (self, ext):