New interface for passing build information among specs (#1875)
- Added a new interface for Specs to pass build information - Calls forwarded from Spec to Package are now explicit - Added descriptor within Spec to manage forwarding - Added state in Spec to maintain query information - Modified a few packages (the one involved in spack install pexsi) to showcase changes - This uses an object wrapper to `spec` to implement the `libs` sub-calls. - wrapper is returned from `__getitem__` only if spec is concrete - allows packagers to access build information easily
This commit is contained in:

committed by
Todd Gamblin

parent
5ce926d2d1
commit
ed582cef68
@@ -71,8 +71,8 @@ def url_for_version(self, version):
|
||||
def install(self, spec, prefix):
|
||||
arpack = find_libraries(['libarpack'], root=spec[
|
||||
'arpack-ng'].prefix.lib, shared=True)
|
||||
lapack = spec['lapack'].lapack_libs
|
||||
blas = spec['blas'].blas_libs
|
||||
lapack = spec['lapack'].libs
|
||||
blas = spec['blas'].libs
|
||||
args = []
|
||||
args.extend([
|
||||
'--prefix=%s' % prefix,
|
||||
@@ -105,8 +105,8 @@ def install(self, spec, prefix):
|
||||
])
|
||||
if '+scalapack' in spec:
|
||||
args.extend([
|
||||
'--with-blacs=%s' % spec['scalapack'].scalapack_libs,
|
||||
'--with-scalapack=%s' % spec['scalapack'].scalapack_libs,
|
||||
'--with-blacs=%s' % spec['scalapack'].libs,
|
||||
'--with-scalapack=%s' % spec['scalapack'].libs,
|
||||
])
|
||||
# --with-etsf-io-prefix=
|
||||
# --with-sparskit=${prefix}/lib/libskit.a
|
||||
|
Reference in New Issue
Block a user