[Python-checkins] CVS: distutils/distutils/command build_ext.py,1.53,1.54

Greg Ward python-dev@python.org
Thu, 29 Jun 2000 16:09:23 -0700


Update of /cvsroot/python/distutils/distutils/command
In directory slayer.i.sourceforge.net:/tmp/cvs-serv12132/command

Modified Files:
	build_ext.py 
Log Message:
Don't try to guess the name of a .def file -- if one is supplied, use it,
otherwise just generate an '/export:' option.

Index: build_ext.py
===================================================================
RCS file: /cvsroot/python/distutils/distutils/command/build_ext.py,v
retrieving revision 1.53
retrieving revision 1.54
diff -C2 -r1.53 -r1.54
*** build_ext.py	2000/06/29 02:16:24	1.53
--- build_ext.py	2000/06/29 23:09:20	1.54
***************
*** 529,538 ****
  
          def_file = ext.export_symbol_file
-         if def_file is None:
-             source_dir = os.path.dirname (sources[0])
-             ext_base = (string.split (ext.name, '.'))[-1]
-             def_file = os.path.join (source_dir, "%s.def" % ext_base)
-             if not os.path.exists (def_file):
-                 def_file = None
  
          if def_file is not None:
--- 529,532 ----