Skip to content
Snippets Groups Projects
Commit 31cab4ba authored by Todd Gamblin's avatar Todd Gamblin Committed by GitHub
Browse files

Merge pull request #1619 from davydden/pkg/nwchem_macos_fix

nwchem: use basename for CC and FC
parents f5c9a8c2 66ea42f8
No related branches found
No related tags found
No related merge requests found
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
############################################################################## ##############################################################################
from spack import * from spack import *
import sys import sys
import os
class Nwchem(Package): class Nwchem(Package):
...@@ -69,6 +70,10 @@ def install(self, spec, prefix): ...@@ -69,6 +70,10 @@ def install(self, spec, prefix):
args = [] args = []
args.extend([ args.extend([
'NWCHEM_TOP=%s' % self.stage.source_path, 'NWCHEM_TOP=%s' % self.stage.source_path,
# NWCHEM is picky about FC and CC. They should NOT be full path.
# see http://www.nwchem-sw.org/index.php/Special:AWCforum/sp/id7524
'CC=%s' % os.path.basename(spack_cc),
'FC=%s' % os.path.basename(spack_fc),
'USE_MPI=y', 'USE_MPI=y',
'MPI_LOC=%s' % spec['mpi'].prefix, 'MPI_LOC=%s' % spec['mpi'].prefix,
'USE_PYTHONCONFIG=y', 'USE_PYTHONCONFIG=y',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment