summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAxel Huebl <axel.huebl@plasma.ninja>2018-01-25 17:50:50 +0100
committerMassimiliano Culpo <massimiliano.culpo@gmail.com>2018-01-25 17:50:50 +0100
commit85c887a93915e48d91f087e62d77de48a03d8324 (patch)
tree195031ae4839a445124230d67fc4b3db3b811f4c /lib
parente0082e0564ccb1fc838e3248e6d8306132166364 (diff)
downloadspack-85c887a93915e48d91f087e62d77de48a03d8324.tar.gz
spack-85c887a93915e48d91f087e62d77de48a03d8324.tar.bz2
spack-85c887a93915e48d91f087e62d77de48a03d8324.tar.xz
spack-85c887a93915e48d91f087e62d77de48a03d8324.zip
Python Installs: No User Site Dir (#7065)
Avoid adding an "outside" (local home's) python user site directory during python package installs. Implements #6611 Fixes packages with auto-find side effects such as `py-setuptools` that cause `py-matplotlib` to fail to build #6558
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/build_systems/python.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/spack/spack/build_systems/python.py b/lib/spack/spack/build_systems/python.py
index b07a196fff..fcfa68e4f4 100644
--- a/lib/spack/spack/build_systems/python.py
+++ b/lib/spack/spack/build_systems/python.py
@@ -75,7 +75,7 @@ class PythonPackage(PackageBase):
.. code-block:: console
- $ python setup.py --no-user-cfg <phase>
+ $ python -s setup.py --no-user-cfg <phase>
Each phase also has a <phase_args> function that can pass arguments to
this call. All of these functions are empty except for the ``install_args``
@@ -132,7 +132,7 @@ class PythonPackage(PackageBase):
setup = self.setup_file()
with working_dir(self.build_directory):
- self.python(setup, '--no-user-cfg', *args, **kwargs)
+ self.python('-s', setup, '--no-user-cfg', *args, **kwargs)
def _setup_command_available(self, command):
"""Determines whether or not a setup.py command exists.
@@ -152,7 +152,7 @@ class PythonPackage(PackageBase):
python = inspect.getmodule(self).python
setup = self.setup_file()
- python(setup, '--no-user-cfg', command, '--help', **kwargs)
+ python('-s', setup, '--no-user-cfg', command, '--help', **kwargs)
return python.returncode == 0
# The following phases and their descriptions come from: