File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ def environment(monkeypatch):
33
33
monkeypatch .setattr (os .path , 'join' , os .path .join )
34
34
monkeypatch .setattr (os .path , 'isabs' , os .path .isabs )
35
35
monkeypatch .setattr (os .path , 'splitdrive' , os .path .splitdrive )
36
- monkeypatch .setattr (sysconfig , '_config_vars ' , copy ( sysconfig ._config_vars ) )
36
+ monkeypatch .setattr (sysconfig , 'get_config_vars ' , sysconfig .get_config_vars )
37
37
38
38
39
39
@pytest .mark .usefixtures ('save_env' )
Original file line number Diff line number Diff line change 8
8
9
9
from distutils .command .build_ext import build_ext as _du_build_ext
10
10
from distutils .ccompiler import new_compiler
11
- from distutils .sysconfig import customize_compiler , get_config_var
11
+ from distutils .sysconfig import customize_compiler , get_config_var , get_config_vars
12
12
from distutils import log
13
13
14
14
from setuptools .errors import BaseError
26
26
27
27
# make sure _config_vars is initialized
28
28
get_config_var ("LDSHARED" )
29
- from distutils .sysconfig import _config_vars as _CONFIG_VARS # noqa
29
+
30
+ _CONFIG_VARS = get_config_vars ()
30
31
31
32
32
33
def _customize_compiler_for_shlib (compiler ):
You can’t perform that action at this time.
0 commit comments