[Python-checkins] CVS: distutils/distutils/command build_ext.py,1.62,1.63

Greg Ward python-dev@python.org
Thu, 14 Sep 2000 18:19:06 -0700


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

Modified Files:
	build_ext.py 
Log Message:
Adjust to the new sysconfig regime: use 'get_config_var()' instead
of globals from sysconfig.

Index: build_ext.py
===================================================================
RCS file: /cvsroot/python/distutils/distutils/command/build_ext.py,v
retrieving revision 1.62
retrieving revision 1.63
diff -C2 -r1.62 -r1.63
*** build_ext.py	2000/09/06 02:06:27	1.62
--- build_ext.py	2000/09/15 01:19:03	1.63
***************
*** 529,538 ****
          """
  
!         from distutils import sysconfig
          ext_path = string.split (ext_name, '.')
          # extensions in debug_mode are named 'module_d.pyd' under windows
          if os.name == 'nt' and self.debug:
!             return apply (os.path.join, ext_path) + '_d' + sysconfig.SO
!         return apply (os.path.join, ext_path) + sysconfig.SO
  
      def get_ext_libname (self, ext_name):
--- 529,539 ----
          """
  
!         from distutils.sysconfig import get_config_var
          ext_path = string.split (ext_name, '.')
          # extensions in debug_mode are named 'module_d.pyd' under windows
+         so_ext = get_config_var('SO')
          if os.name == 'nt' and self.debug:
!             return apply (os.path.join, ext_path) + '_d' + so_ext
!         return apply (os.path.join, ext_path) + so_ext
  
      def get_ext_libname (self, ext_name):