diff options
author | Geoffrey Oxberry <goxberry@gmail.com> | 2018-07-30 16:18:36 -0700 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2018-07-30 18:18:36 -0500 |
commit | f7761d108159ba914748a2ab28a169bcc389cf18 (patch) | |
tree | fc377f010f38749800d23c4cfe4a84f1fb322954 /var | |
parent | 15d96f01660057463863a05049b287df3341175e (diff) | |
download | spack-f7761d108159ba914748a2ab28a169bcc389cf18.tar.gz spack-f7761d108159ba914748a2ab28a169bcc389cf18.tar.bz2 spack-f7761d108159ba914748a2ab28a169bcc389cf18.tar.xz spack-f7761d108159ba914748a2ab28a169bcc389cf18.zip |
slepc: add blopex variant (#8820)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/slepc/package.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/slepc/package.py b/var/spack/repos/builtin/packages/slepc/package.py index 1030f04849..19155bf0fd 100644 --- a/var/spack/repos/builtin/packages/slepc/package.py +++ b/var/spack/repos/builtin/packages/slepc/package.py @@ -23,6 +23,7 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ############################################################################## import os +import sys from spack import * @@ -45,6 +46,7 @@ class Slepc(Package): version('3.6.2', '2ab4311bed26ccf7771818665991b2ea3a9b15f97e29fd13911ab1293e8e65df') variant('arpack', default=True, description='Enables Arpack wrappers') + variant('blopex', default=False, description='Enables BLOPEX wrappers') # NOTE: make sure PETSc and SLEPc use the same python. depends_on('python@2.6:2.8', type='build') @@ -62,6 +64,13 @@ class Slepc(Package): # Arpack can not be used with 64bit integers. conflicts('+arpack', when='^petsc+int64') + resource(name='blopex', + url='http://slepc.upv.es/download/external/blopex-1.1.2.tar.gz', + sha256='0081ee4c4242e635a8113b32f655910ada057c59043f29af4b613508a762f3ac', + destination=join_path('installed-arch-' + sys.platform + '-c-opt', + 'externalpackages'), + when='+blopex') + def install(self, spec, prefix): # set SLEPC_DIR for installation # Note that one should set the current (temporary) directory instead @@ -83,6 +92,11 @@ class Slepc(Package): '--with-arpack-flags=-lparpack,-larpack' ]) + # It isn't possible to install BLOPEX separately and link to it; + # BLOPEX has to be downloaded with SLEPc at configure time + if '+blopex' in spec: + options.append('--download-blopex') + configure('--prefix=%s' % prefix, *options) make('MAKE_NP=%s' % make_jobs, parallel=False) |