Commit 0f476502 authored by Cosimo Lupo's avatar Cosimo Lupo

build_ext: always import _CONFIG_VARS from distutils.sysconfig instead of sysconfig

otherwise `distutils.sysconfig.customize_compiler` does not configure OSX compiler for -dynamiclib

See https://github.com/pypa/setuptools/issues/571
parent c0f57714
......@@ -16,15 +16,11 @@ try:
except ImportError:
_build_ext = _du_build_ext
try:
# Python 2.7 or >=3.2
from sysconfig import _CONFIG_VARS
except ImportError:
from distutils.sysconfig import get_config_var
from distutils.sysconfig import get_config_var
get_config_var("LDSHARED") # make sure _config_vars is initialized
del get_config_var
from distutils.sysconfig import _config_vars as _CONFIG_VARS
get_config_var("LDSHARED") # make sure _config_vars is initialized
del get_config_var
from distutils.sysconfig import _config_vars as _CONFIG_VARS
have_rtld = False
use_stubs = False
......
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