summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/gptune/package.py8
-rw-r--r--var/spack/repos/builtin/packages/py-gpy/package.py1
2 files changed, 5 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/gptune/package.py b/var/spack/repos/builtin/packages/gptune/package.py
index d96c86b074..508857d347 100644
--- a/var/spack/repos/builtin/packages/gptune/package.py
+++ b/var/spack/repos/builtin/packages/gptune/package.py
@@ -66,7 +66,7 @@ class Gptune(CMakePackage):
fc_flags.append('-fallow-argument-mismatch')
args = [
- '-DGPTUNE_INSTALL_PATH=%s' % site_packages_dir,
+ '-DGPTUNE_INSTALL_PATH=%s' % python_platlib,
'-DTPL_BLAS_LIBRARIES=%s' % spec['blas'].libs.joined(";"),
'-DTPL_LAPACK_LIBRARIES=%s' % spec['lapack'].libs.joined(";"),
'-DTPL_SCALAPACK_LIBRARIES=%s' % spec['scalapack'].
@@ -92,7 +92,7 @@ class Gptune(CMakePackage):
self.cache_extra_test_sources([self.examples_src_dir])
def setup_run_environment(self, env):
- env.set('GPTUNE_INSTALL_PATH', site_packages_dir)
+ env.set('GPTUNE_INSTALL_PATH', python_platlib)
def test(self):
spec = self.spec
@@ -142,7 +142,7 @@ class Gptune(CMakePackage):
envfile.write('export MPIRUN={0}\n'.format
(which(spec['mpi'].prefix.bin + '/mpirun')))
envfile.write('export PYTHONPATH={0}:$PYTHONPATH\n'.format
- (site_packages_dir + '/gptune'))
+ (python_platlib + '/gptune'))
envfile.write('export proc=$(spack arch)\n')
envfile.write('export mpi={0}\n'.format(spec['mpi'].name))
envfile.write('export compiler={0}\n'.format(comp_name))
@@ -183,7 +183,7 @@ class Gptune(CMakePackage):
'{\\\"nodes\\\":$nodes,\\\"cores\\\":$cores}}}") \n')
# copy the environment configuration files to non-cache directories
- op = ['run_env.sh', site_packages_dir + '/gptune/.']
+ op = ['run_env.sh', python_platlib + '/gptune/.']
self.run_test('cp', options=op, work_dir=wd)
op = ['run_env.sh', self.install_test_root + '/.']
self.run_test('cp', options=op, work_dir=wd)
diff --git a/var/spack/repos/builtin/packages/py-gpy/package.py b/var/spack/repos/builtin/packages/py-gpy/package.py
index a981d0be46..e7ff0563c6 100644
--- a/var/spack/repos/builtin/packages/py-gpy/package.py
+++ b/var/spack/repos/builtin/packages/py-gpy/package.py
@@ -22,3 +22,4 @@ class PyGpy(PythonPackage):
depends_on('py-six', type=('build', 'run'))
depends_on('py-paramz@0.9.0:', type=('build', 'run'))
depends_on('py-cython@0.29:', type='build')
+ depends_on("python@:3.8", type=("build", "run"))