]> granicus.if.org Git - python/commitdiff
Adjust to the new sysconfig regime: use 'get_config_var()' instead
authorGreg Ward <gward@python.net>
Fri, 15 Sep 2000 01:19:03 +0000 (01:19 +0000)
committerGreg Ward <gward@python.net>
Fri, 15 Sep 2000 01:19:03 +0000 (01:19 +0000)
of globals from sysconfig.

Lib/distutils/command/build_ext.py

index 3f714c54d8f8c48f8450fac40e5bc1ed92ed423c..76da00476c7d4d99c2715affe7a9dabe6e1bf64e 100644 (file)
@@ -528,12 +528,13 @@ class build_ext (Command):
         "foo\bar.pyd").
         """
 
-        from distutils import sysconfig
+        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' + sysconfig.SO
-        return apply (os.path.join, ext_path) + sysconfig.SO
+            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):
         # create a filename for the (unneeded) lib-file.