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 *
|
||||
import os
|
||||
import string
|
||||
import datetime as dt
|
||||
|
||||
|
||||
@ -178,16 +177,16 @@ def build_voronoi(self):
|
||||
|
||||
def build(self, spec, prefix):
|
||||
for pkg in self.supported_packages:
|
||||
_build_pkg_name = string.replace('build_{0}'.format(pkg), '-', '_')
|
||||
if hasattr(self, _build_pkg_name):
|
||||
_build_pkg = getattr(self, _build_pkg_name)
|
||||
_build_pkg()
|
||||
if '+{0}'.format(pkg) in spec:
|
||||
_build_pkg_name = 'build_{0}'.format(pkg.replace('-', '_'))
|
||||
if hasattr(self, _build_pkg_name):
|
||||
_build_pkg = getattr(self, _build_pkg_name)
|
||||
_build_pkg()
|
||||
|
||||
with working_dir('src'):
|
||||
for pkg in self.supported_packages:
|
||||
if '+{0}'.format(pkg) in spec:
|
||||
with working_dir('src'):
|
||||
make('yes-{0}'.format(pkg))
|
||||
|
||||
with working_dir('src'):
|
||||
make(self.target_name)
|
||||
|
||||
if '+lib' in spec:
|
||||
|
Loading…
Reference in New Issue
Block a user