diff options
author | mattip <matti.picus@gmail.com> | 2020-09-02 15:44:35 +0300 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2020-09-02 15:44:35 +0300 |
commit | 42f9d02a249103fd024241a17ba5896fd2e18bff (patch) | |
tree | 666684f6cf30d81ad6e3ec53a09874416dc60cea /runtests.py | |
parent | db866874ccb8c8c814df57eb1edca4fd05eb1753 (diff) | |
download | numpy-42f9d02a249103fd024241a17ba5896fd2e18bff.tar.gz |
MAINT: use sysconfig not distutils.sysconfig where possible
Diffstat (limited to 'runtests.py')
-rwxr-xr-x | runtests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtests.py b/runtests.py index ce351e3c4..da8fda2c6 100755 --- a/runtests.py +++ b/runtests.py @@ -372,7 +372,7 @@ def build_project(args): """ - import distutils.sysconfig + import sysconfig root_ok = [os.path.exists(os.path.join(ROOT_DIR, fn)) for fn in PROJECT_ROOT_FILES] @@ -388,7 +388,7 @@ def build_project(args): # Always use ccache, if installed env['PATH'] = os.pathsep.join(EXTRA_PATH + env.get('PATH', '').split(os.pathsep)) - cvars = distutils.sysconfig.get_config_vars() + cvars = sysconfig.get_config_vars() compiler = env.get('CC') or cvars.get('CC', '') if 'gcc' in compiler: # Check that this isn't clang masquerading as gcc. @@ -445,7 +445,7 @@ def build_project(args): os.makedirs(site_dir) if not os.path.exists(site_dir_noarch): os.makedirs(site_dir_noarch) - env['PYTHONPATH'] = site_dir + ':' + site_dir_noarch + env['PYTHONPATH'] = site_dir + os.pathsep + site_dir_noarch log_filename = os.path.join(ROOT_DIR, 'build.log') |