Merge pull request #1619 from davydden/pkg/nwchem_macos_fix
nwchem: use basename for CC and FC
This commit is contained in:
commit
31cab4bae2
1 changed files with 5 additions and 0 deletions
|
@ -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):
|
||||||
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',
|
||||||
|
|
Loading…
Reference in a new issue