The usersitepackages variable is not used anymore so don't set it
This commit is contained in:
parent
3933a943dc
commit
f824b20fe2
1 changed files with 1 additions and 7 deletions
|
|
@ -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)])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue