summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorDenis Davydov <davydden@gmail.com>2016-07-16 08:03:54 +0200
committerDenis Davydov <davydden@gmail.com>2016-07-16 08:03:54 +0200
commit561748a063f8dab8bb5542b8bfab0878ab0fff06 (patch)
tree83bf9e6332c9094d4ff99b97371cdfd78203144a /var
parent0752eccfa5f865419f0ab4f3de06f5feea1aa422 (diff)
downloadspack-561748a063f8dab8bb5542b8bfab0878ab0fff06.tar.gz
spack-561748a063f8dab8bb5542b8bfab0878ab0fff06.tar.bz2
spack-561748a063f8dab8bb5542b8bfab0878ab0fff06.tar.xz
spack-561748a063f8dab8bb5542b8bfab0878ab0fff06.zip
netlib-scalapack: flake8 fixes
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/netlib-scalapack/package.py21
1 files changed, 13 insertions, 8 deletions
diff --git a/var/spack/repos/builtin/packages/netlib-scalapack/package.py b/var/spack/repos/builtin/packages/netlib-scalapack/package.py
index cb2d8b44fc..e91c044965 100644
--- a/var/spack/repos/builtin/packages/netlib-scalapack/package.py
+++ b/var/spack/repos/builtin/packages/netlib-scalapack/package.py
@@ -25,8 +25,10 @@
from spack import *
import sys
+
class NetlibScalapack(Package):
- """ScaLAPACK is a library of high-performance linear algebra routines for parallel distributed memory machines"""
+ """ScaLAPACK is a library of high-performance linear algebra routines for
+ parallel distributed memory machines"""
homepage = "http://www.netlib.org/scalapack/"
url = "http://www.netlib.org/scalapack/scalapack-2.0.2.tgz"
@@ -48,10 +50,13 @@ class NetlibScalapack(Package):
def install(self, spec, prefix):
options = [
- "-DBUILD_SHARED_LIBS:BOOL=%s" % ('ON' if '+shared' in spec else 'OFF'),
- "-DBUILD_STATIC_LIBS:BOOL=%s" % ('OFF' if '+shared' in spec else 'ON'),
- "-DUSE_OPTIMIZED_LAPACK_BLAS:BOOL=ON", # forces scalapack to use find_package(LAPACK)
- ]
+ "-DBUILD_SHARED_LIBS:BOOL=%s" % ('ON' if '+shared' in spec else
+ 'OFF'),
+ "-DBUILD_STATIC_LIBS:BOOL=%s" % ('OFF' if '+shared' in spec else
+ 'ON'),
+ # forces scalapack to use find_package(LAPACK):
+ "-DUSE_OPTIMIZED_LAPACK_BLAS:BOOL=ON",
+ ]
# Make sure we use Spack's Lapack:
options.extend([
@@ -75,11 +80,10 @@ class NetlibScalapack(Package):
make()
make("install")
- # The shared libraries are not installed correctly on Darwin; correct this
+ # The shared libraries are not installed correctly on Darwin:
if (sys.platform == 'darwin') and ('+shared' in spec):
fix_darwin_install_name(prefix.lib)
-
def setup_dependent_package(self, module, dependent_spec):
spec = self.spec
lib_dsuffix = '.dylib' if sys.platform == 'darwin' else '.so'
@@ -87,4 +91,5 @@ class NetlibScalapack(Package):
spec.fc_link = '-L%s -lscalapack' % spec.prefix.lib
spec.cc_link = spec.fc_link
- spec.libraries = [join_path(spec.prefix.lib, 'libscalapack%s' % lib_suffix)]
+ spec.libraries = [join_path(spec.prefix.lib,
+ 'libscalapack%s' % lib_suffix)]