Only configure requested lammps features (#3526)
* Only configure requested lammps features * Run configure from root and make from src
This commit is contained in:
parent
4e8a59a062
commit
ace890af49
@ -24,7 +24,6 @@
|
|||||||
##############################################################################
|
##############################################################################
|
||||||
from spack import *
|
from spack import *
|
||||||
import os
|
import os
|
||||||
import string
|
|
||||||
import datetime as dt
|
import datetime as dt
|
||||||
|
|
||||||
|
|
||||||
@ -178,16 +177,16 @@ def build_voronoi(self):
|
|||||||
|
|
||||||
def build(self, spec, prefix):
|
def build(self, spec, prefix):
|
||||||
for pkg in self.supported_packages:
|
for pkg in self.supported_packages:
|
||||||
_build_pkg_name = string.replace('build_{0}'.format(pkg), '-', '_')
|
if '+{0}'.format(pkg) in spec:
|
||||||
if hasattr(self, _build_pkg_name):
|
_build_pkg_name = 'build_{0}'.format(pkg.replace('-', '_'))
|
||||||
_build_pkg = getattr(self, _build_pkg_name)
|
if hasattr(self, _build_pkg_name):
|
||||||
_build_pkg()
|
_build_pkg = getattr(self, _build_pkg_name)
|
||||||
|
_build_pkg()
|
||||||
|
|
||||||
with working_dir('src'):
|
with working_dir('src'):
|
||||||
for pkg in self.supported_packages:
|
|
||||||
if '+{0}'.format(pkg) in spec:
|
|
||||||
make('yes-{0}'.format(pkg))
|
make('yes-{0}'.format(pkg))
|
||||||
|
|
||||||
|
with working_dir('src'):
|
||||||
make(self.target_name)
|
make(self.target_name)
|
||||||
|
|
||||||
if '+lib' in spec:
|
if '+lib' in spec:
|
||||||
|
Loading…
Reference in New Issue
Block a user