Merge pull request #1004 from UCL-RITS/bare-eigen

Option to install eigen without dependencies
This commit is contained in:
Todd Gamblin 2016-06-27 13:35:35 -07:00 committed by GitHub
commit d7c2f683d9

View File

@ -28,7 +28,9 @@
class Eigen(Package):
"""
Eigen is a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms
Eigen is a C++ template library for linear algebra
Matrices, vectors, numerical solvers, and related algorithms
"""
homepage = 'http://eigen.tuxfamily.org/'
@ -42,16 +44,16 @@ class Eigen(Package):
variant('scotch', default=True, description='Enables scotch backend')
variant('fftw', default=True, description='Enables FFTW backend')
variant('suitesparse', default=True, description='Enables SuiteSparse support')
variant('mpfr', default=True, description='Enables support for multi-precisions floating points via mpfr')
# TODO : dependency on googlehash, superlu, adolc missing
depends_on('cmake')
depends_on('metis@5:', when='+metis')
depends_on('scotch', when='+scotch')
depends_on('fftw', when='+fftw')
depends_on('suite-sparse', when='+suitesparse')
depends_on('mpfr@2.3.0:') # Eigen 3.2.7 requires at least 2.3.0
depends_on('gmp')
depends_on('mpfr@2.3.0:', when="+mpfr")
depends_on('gmp', when="+mpfr")
def install(self, spec, prefix):