Commit d6029091 authored by Greg Ward's avatar Greg Ward

Adjust to the new sysconfig regime: use 'get_config_var()' instead

of globals from sysconfig.
parent 59399bb3
...@@ -528,12 +528,13 @@ class build_ext (Command): ...@@ -528,12 +528,13 @@ class build_ext (Command):
"foo\bar.pyd"). "foo\bar.pyd").
""" """
from distutils import sysconfig from distutils.sysconfig import get_config_var
ext_path = string.split (ext_name, '.') ext_path = string.split (ext_name, '.')
# extensions in debug_mode are named 'module_d.pyd' under windows # extensions in debug_mode are named 'module_d.pyd' under windows
so_ext = get_config_var('SO')
if os.name == 'nt' and self.debug: if os.name == 'nt' and self.debug:
return apply (os.path.join, ext_path) + '_d' + sysconfig.SO return apply (os.path.join, ext_path) + '_d' + so_ext
return apply (os.path.join, ext_path) + sysconfig.SO return apply (os.path.join, ext_path) + so_ext
def get_ext_libname (self, ext_name): def get_ext_libname (self, ext_name):
# create a filename for the (unneeded) lib-file. # create a filename for the (unneeded) lib-file.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment