summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-09-15 01:19:03 (GMT)
committerGreg Ward <gward@python.net>2000-09-15 01:19:03 (GMT)
commitd60290912884c0ddf37fc42e46ed712e9f2ced37 (patch)
tree448c908c48fe42f703faf3ce48bab0b838063028 /Lib/distutils
parent59399bb303a51e781ab7943088fa1c4db1d41dcb (diff)
downloadcpython-d60290912884c0ddf37fc42e46ed712e9f2ced37.zip
cpython-d60290912884c0ddf37fc42e46ed712e9f2ced37.tar.gz
cpython-d60290912884c0ddf37fc42e46ed712e9f2ced37.tar.bz2
Adjust to the new sysconfig regime: use 'get_config_var()' instead
of globals from sysconfig.
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/command/build_ext.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py
index 3f714c5..76da004 100644
--- a/Lib/distutils/command/build_ext.py
+++ b/Lib/distutils/command/build_ext.py
@@ -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.