Skip to content

Commit

Permalink
The usersitepackages variable is not used anymore so don't set it
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanwweber authored and speth committed Dec 18, 2017
1 parent 3933a94 commit f824b20
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -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)]:
Expand All @@ -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)])
Expand Down

0 comments on commit f824b20

Please sign in to comment.