Make sure that the python directories are in the user space
This commit is contained in:
parent
b367fafaf5
commit
aaf522074b
|
@ -21,6 +21,7 @@
|
|||
# ----------------------------------------------------------------------------
|
||||
|
||||
import os
|
||||
from pathlib import Path
|
||||
from spack import *
|
||||
|
||||
|
||||
|
@ -223,12 +224,12 @@ class Dune(CMakePackage):
|
|||
# Additionally, we need to set the workspace for the Python bindings to something
|
||||
# that is unique to this build of the dune module (it defaults to ~/.cache)
|
||||
if '+python' in self.spec:
|
||||
env.set('DUNE_PY_DIR', self.prefix)
|
||||
env.set('DUNE_PY_DIR', join_path(Path.home(), '.cache', 'dune-py', self.spec.dag_hash()))
|
||||
|
||||
# For those modules that typically work with the Dune Virtualenv,
|
||||
# we export the location of the virtualenv as an environment variable.
|
||||
if '+testtools' in self.spec:
|
||||
env.set('DUNE_PYTHON_VIRTUALENV_PATH', join_path(self.prefix, 'dune-python-env'))
|
||||
env.set('DUNE_PYTHON_VIRTUALENV_PATH', join_path(Path.home(), '.cache', 'dune-python-env', self.spec.dag_hash()))
|
||||
|
||||
def cmake_args(self):
|
||||
"""Populate cmake arguments."""
|
||||
|
|
Loading…
Reference in New Issue