From f824b20fe28ccdc7a0e84b3b72b37dd7d8fb695d Mon Sep 17 00:00:00 2001 From: "Bryan W. Weber" Date: Sun, 3 Dec 2017 14:40:14 -0500 Subject: [PATCH] The usersitepackages variable is not used anymore so don't set it --- SConstruct | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/SConstruct b/SConstruct index 10755aab1..86d5eda2c 100644 --- a/SConstruct +++ b/SConstruct @@ -1224,11 +1224,6 @@ def configure_python(py_ver): print(numpy.__version__) except ImportError: print('0.0.0') - import site - try: - print(site.getusersitepackages()) - except AttributeError: - print(site.USER_SITE) """) if env['python{}_array_home'.format(py_ver)]: @@ -1247,8 +1242,7 @@ def configure_python(py_ver): print(err, err.output) warn_no_python = True else: - (env['python{}_version'.format(py_ver)], numpy_version, - env['python{}_usersitepackages'.format(py_ver)]) = info.splitlines()[-3:] + (env['python{}_version'.format(py_ver)], numpy_version) = info.splitlines()[-2:] numpy_version = LooseVersion(numpy_version) if numpy_version == LooseVersion('0.0.0'): python_message += "NumPy for Python {0} not found.\n".format(env['python{}_version'.format(py_ver)])