File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ def environment(monkeypatch):
3333 monkeypatch .setattr (os .path , 'join' , os .path .join )
3434 monkeypatch .setattr (os .path , 'isabs' , os .path .isabs )
3535 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 )
3737
3838
3939@pytest .mark .usefixtures ('save_env' )
Original file line number Diff line number Diff line change 88
99from distutils .command .build_ext import build_ext as _du_build_ext
1010from 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
1212from distutils import log
1313
1414from setuptools .errors import BaseError
2626
2727# make sure _config_vars is initialized
2828get_config_var ("LDSHARED" )
29- from distutils .sysconfig import _config_vars as _CONFIG_VARS # noqa
29+
30+ _CONFIG_VARS = get_config_vars ()
3031
3132
3233def _customize_compiler_for_shlib (compiler ):
You can’t perform that action at this time.
0 commit comments