summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorDenis Davydov <davydden@gmail.com>2016-08-24 13:40:02 +0200
committerDenis Davydov <davydden@gmail.com>2016-08-24 13:40:02 +0200
commit6d2d5806b5ebfbbf75490ead40f6041026ea95e7 (patch)
tree16feda5095ffe60a10d2b0fb761f04905f737109 /var
parentdae219d5c3b08e50f04c14508638a3ba30f3b615 (diff)
downloadspack-6d2d5806b5ebfbbf75490ead40f6041026ea95e7.tar.gz
spack-6d2d5806b5ebfbbf75490ead40f6041026ea95e7.tar.bz2
spack-6d2d5806b5ebfbbf75490ead40f6041026ea95e7.tar.xz
spack-6d2d5806b5ebfbbf75490ead40f6041026ea95e7.zip
nwchem: add python module
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/nwchem/package.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/nwchem/package.py b/var/spack/repos/builtin/packages/nwchem/package.py
index 43619c143a..0dcd249f74 100644
--- a/var/spack/repos/builtin/packages/nwchem/package.py
+++ b/var/spack/repos/builtin/packages/nwchem/package.py
@@ -40,7 +40,7 @@ class Nwchem(Package):
depends_on('mpi')
depends_on('scalapack')
- depends_on('python@2.7:2.8', type='build')
+ depends_on('python@2.7:2.8', type=nolink)
# patches for 6.6-27746:
# TODO: add support for achived patches, i.e.
@@ -73,6 +73,7 @@ class Nwchem(Package):
'MPI_LOC=%s' % spec['mpi'].prefix,
'USE_PYTHONCONFIG=y',
'PYTHONVERSION=%s' % spec['python'].version.up_to(2),
+ 'PYTHONHOME=%s' % spec['python'].prefix,
'BLASOPT=%s %s' % (
to_link_flags(spec['lapack'].lapack_shared_lib),
to_link_flags(spec['blas'].blas_shared_lib)),
@@ -80,7 +81,7 @@ class Nwchem(Package):
'LAPACK_LIB=%s' % to_link_flags(spec['lapack'].lapack_shared_lib),
'USE_SCALAPACK=y',
'SCALAPACK=%s' % spec['scalapack'].fc_link,
- 'NWCHEM_MODULES=all',
+ 'NWCHEM_MODULES=all python',
'NWCHEM_LONG_PATHS=Y' # by default NWCHEM_TOP is 64 char max
])