diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2023-02-16 22:06:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-16 23:06:12 -0600 |
commit | 603569e321013a1a63a637813c94c2834d0a0023 (patch) | |
tree | 366d3ba04458bb748c1f494e270401a56c10a7f2 /var | |
parent | b9358099488b6c9851e28ca912c8be246178974a (diff) | |
download | spack-603569e321013a1a63a637813c94c2834d0a0023.tar.gz spack-603569e321013a1a63a637813c94c2834d0a0023.tar.bz2 spack-603569e321013a1a63a637813c94c2834d0a0023.tar.xz spack-603569e321013a1a63a637813c94c2834d0a0023.zip |
Style: black 23, skip magic trailing comma (#35351)
* Style: black 23, skip magic trailing commas
* isort should use same line length as black
* Fix unused import
* Update version of black used in CI
* Update new packages
* Update new packages
Diffstat (limited to 'var')
349 files changed, 489 insertions, 2193 deletions
diff --git a/var/spack/repos/builtin.mock/packages/a/package.py b/var/spack/repos/builtin.mock/packages/a/package.py index 5b776dbf2b..52b02cbe64 100644 --- a/var/spack/repos/builtin.mock/packages/a/package.py +++ b/var/spack/repos/builtin.mock/packages/a/package.py @@ -16,9 +16,7 @@ class A(AutotoolsPackage): version("2.0", "abcdef0123456789abcdef0123456789") variant( - "foo", - description="", - values=any_combination_of("bar", "baz", "fee").with_default("bar"), + "foo", description="", values=any_combination_of("bar", "baz", "fee").with_default("bar") ) variant("foobar", values=("bar", "baz", "fee"), default="bar", description="", multi=False) diff --git a/var/spack/repos/builtin.mock/packages/attributes-foo/package.py b/var/spack/repos/builtin.mock/packages/attributes-foo/package.py index f910fde80f..5ae2c2c387 100644 --- a/var/spack/repos/builtin.mock/packages/attributes-foo/package.py +++ b/var/spack/repos/builtin.mock/packages/attributes-foo/package.py @@ -14,7 +14,6 @@ class AttributesFoo(BundlePackage): provides("baz") def install(self, spec, prefix): - lib_suffix = ".so" if sys.platform == "win32": lib_suffix = ".dll" diff --git a/var/spack/repos/builtin.mock/packages/dep-diamond-patch-mid2/package.py b/var/spack/repos/builtin.mock/packages/dep-diamond-patch-mid2/package.py index 7252dbdeee..660fd947cf 100644 --- a/var/spack/repos/builtin.mock/packages/dep-diamond-patch-mid2/package.py +++ b/var/spack/repos/builtin.mock/packages/dep-diamond-patch-mid2/package.py @@ -30,6 +30,6 @@ X Y patch( "http://example.com/urlpatch.patch", sha256="mid21234abcd1234abcd1234abcd1234abcd1234abcd1234abcd1234abcd1234", - ), + ) ], ) diff --git a/var/spack/repos/builtin.mock/packages/git-url-top-level/package.py b/var/spack/repos/builtin.mock/packages/git-url-top-level/package.py index ba0457103c..fdc7407d9d 100644 --- a/var/spack/repos/builtin.mock/packages/git-url-top-level/package.py +++ b/var/spack/repos/builtin.mock/packages/git-url-top-level/package.py @@ -39,14 +39,8 @@ class GitUrlTopLevel(Package): sha256="0000000000000000000000000000000000000000000000000000000000000022", url="https://www.example.com/foo2.2.tar.gz", ) - version( - "2.1", - sha256="0000000000000000000000000000000000000000000000000000000000000021", - ) - version( - "2.0", - "0000000000000000000000000000000000000000000000000000000000000020", - ) + version("2.1", sha256="0000000000000000000000000000000000000000000000000000000000000021") + version("2.0", "0000000000000000000000000000000000000000000000000000000000000020") # These result in a FetcherConflict b/c we can't tell what to use version( diff --git a/var/spack/repos/builtin.mock/packages/simple-inheritance/package.py b/var/spack/repos/builtin.mock/packages/simple-inheritance/package.py index 3673385a8a..a1f439de6e 100644 --- a/var/spack/repos/builtin.mock/packages/simple-inheritance/package.py +++ b/var/spack/repos/builtin.mock/packages/simple-inheritance/package.py @@ -7,7 +7,6 @@ from spack.package import * class BaseWithDirectives(Package): - depends_on("cmake", type="build") depends_on("mpi") variant("openblas", description="Activates openblas", default=True) diff --git a/var/spack/repos/builtin/packages/abacus/package.py b/var/spack/repos/builtin/packages/abacus/package.py index bdf2a68e50..68ee2f4894 100644 --- a/var/spack/repos/builtin/packages/abacus/package.py +++ b/var/spack/repos/builtin/packages/abacus/package.py @@ -22,22 +22,10 @@ class Abacus(MakefilePackage): url = "https://github.com/abacusmodeling/abacus-develop/archive/refs/tags/v2.2.1.tar.gz" version("develop", branch="develop") - version( - "2.2.3", - sha256="88dbf6a3bdd907df3e097637ec8e51fde13e2f5e0b44f3667443195481320edf", - ) - version( - "2.2.2", - sha256="4a7cf2ec6e43dd5c53d5f877a941367074f4714d93c1977a719782957916169e", - ) - version( - "2.2.1", - sha256="14feca1d8d1ce025d3f263b85ebfbebc1a1efff704b6490e95b07603c55c1d63", - ) - version( - "2.2.0", - sha256="09d4a2508d903121d29813a85791eeb3a905acbe1c5664b8a88903f8eda64b8f", - ) + version("2.2.3", sha256="88dbf6a3bdd907df3e097637ec8e51fde13e2f5e0b44f3667443195481320edf") + version("2.2.2", sha256="4a7cf2ec6e43dd5c53d5f877a941367074f4714d93c1977a719782957916169e") + version("2.2.1", sha256="14feca1d8d1ce025d3f263b85ebfbebc1a1efff704b6490e95b07603c55c1d63") + version("2.2.0", sha256="09d4a2508d903121d29813a85791eeb3a905acbe1c5664b8a88903f8eda64b8f") variant("openmp", default=True, description="Enable OpenMP support") @@ -53,7 +41,6 @@ class Abacus(MakefilePackage): build_directory = "source" def edit(self, spec, prefix): - if "+openmp" in spec: inc_var = "_openmp-" system_var = "ELPA_LIB = -L${ELPA_LIB_DIR} -lelpa_openmp -Wl, -rpath=${ELPA_LIB_DIR}" diff --git a/var/spack/repos/builtin/packages/abinit/package.py b/var/spack/repos/builtin/packages/abinit/package.py index fcf8207555..81a82317ba 100644 --- a/var/spack/repos/builtin/packages/abinit/package.py +++ b/var/spack/repos/builtin/packages/abinit/package.py @@ -125,7 +125,6 @@ class Abinit(AutotoolsPackage): patch("fix_for_fujitsu.v9.patch", when="@9: %fj") def configure_args(self): - spec = self.spec options = [] diff --git a/var/spack/repos/builtin/packages/ace/package.py b/var/spack/repos/builtin/packages/ace/package.py index d249cd37e2..c2a1363d29 100644 --- a/var/spack/repos/builtin/packages/ace/package.py +++ b/var/spack/repos/builtin/packages/ace/package.py @@ -22,7 +22,6 @@ class Ace(MakefilePackage): version("6.5.0", "b6f9ec922fbdcecb4348e16d851d0d1f135df1836dfe77d2e0b64295ddb83066") def edit(self, spec, prefix): - # Dictionary mapping: compiler-name : ACE config-label supported = {"intel": "_icc", "gcc": ""} diff --git a/var/spack/repos/builtin/packages/acts/package.py b/var/spack/repos/builtin/packages/acts/package.py index 6b0dcbb735..aabaf8d438 100644 --- a/var/spack/repos/builtin/packages/acts/package.py +++ b/var/spack/repos/builtin/packages/acts/package.py @@ -202,12 +202,7 @@ class Acts(CMakePackage, CudaPackage): description="Enable memory profiling using gperftools", when="@19.3:", ) - variant( - "sycl", - default=False, - description="Build the SyCL plugin", - when="@1:", - ) + variant("sycl", default=False, description="Build the SyCL plugin", when="@1:") variant("tgeo", default=False, description="Build the TGeo plugin", when="+identification") # Variants that only affect Acts examples for now @@ -241,12 +236,7 @@ class Acts(CMakePackage, CudaPackage): description="Build python bindings for the examples", when="@14: +examples", ) - variant( - "svg", - default=False, - description="Build ActSVG display plugin", - when="@20.1:", - ) + variant("svg", default=False, description="Build ActSVG display plugin", when="@20.1:") variant( "tbb", default=True, diff --git a/var/spack/repos/builtin/packages/actsvg/package.py b/var/spack/repos/builtin/packages/actsvg/package.py index c3ba3a87a9..efd7de6dfc 100644 --- a/var/spack/repos/builtin/packages/actsvg/package.py +++ b/var/spack/repos/builtin/packages/actsvg/package.py @@ -20,16 +20,8 @@ class Actsvg(CMakePackage): version("0.4.26", sha256="a1dfad15b616cac8191a355c1a87544571c36349400e3de56b9e5be6fa73714c") - variant( - "examples", - default=False, - description="Build the example applications", - ) - variant( - "meta", - default=True, - description="Build the meta level interface", - ) + variant("examples", default=False, description="Build the example applications") + variant("meta", default=True, description="Build the meta level interface") depends_on("boost +program_options", type="test") depends_on("boost +program_options", when="+examples") diff --git a/var/spack/repos/builtin/packages/adios/package.py b/var/spack/repos/builtin/packages/adios/package.py index 3fb84d099e..06e3923477 100644 --- a/var/spack/repos/builtin/packages/adios/package.py +++ b/var/spack/repos/builtin/packages/adios/package.py @@ -118,7 +118,6 @@ class Adios(AutotoolsPackage): raise RuntimeError(msg) def with_or_without_hdf5(self, activated): - if activated: return "--with-phdf5={0}".format(self.spec["hdf5"].prefix) diff --git a/var/spack/repos/builtin/packages/admixtools/package.py b/var/spack/repos/builtin/packages/admixtools/package.py index 8eec09aabf..f0461d8c34 100644 --- a/var/spack/repos/builtin/packages/admixtools/package.py +++ b/var/spack/repos/builtin/packages/admixtools/package.py @@ -42,7 +42,6 @@ class Admixtools(MakefilePackage): def install(self, spec, prefix): with working_dir("src"): - make("install") install_tree("bin", prefix.bin) install("twtable", prefix.bin) diff --git a/var/spack/repos/builtin/packages/amber/package.py b/var/spack/repos/builtin/packages/amber/package.py index 86f34f8221..cb0e552cf3 100644 --- a/var/spack/repos/builtin/packages/amber/package.py +++ b/var/spack/repos/builtin/packages/amber/package.py @@ -201,11 +201,7 @@ class Amber(Package, CudaPackage): # Base configuration conf = Executable("./configure") - base_args = [ - "--skip-python", - "--with-netcdf", - self.spec["netcdf-fortran"].prefix, - ] + base_args = ["--skip-python", "--with-netcdf", self.spec["netcdf-fortran"].prefix] if self.spec.satisfies("~x11"): base_args += ["-noX11"] diff --git a/var/spack/repos/builtin/packages/amdfftw/package.py b/var/spack/repos/builtin/packages/amdfftw/package.py index e72148f131..6e77c5a11b 100644 --- a/var/spack/repos/builtin/packages/amdfftw/package.py +++ b/var/spack/repos/builtin/packages/amdfftw/package.py @@ -240,7 +240,6 @@ class Amdfftw(FftwBase): # Different precisions must be configured and compiled one at a time configure = Executable("../configure") for precision in self.selected_precisions: - opts = (enable_precision[precision] or []) + options[:] # SIMD optimizations are available only for float and double diff --git a/var/spack/repos/builtin/packages/amrvis/package.py b/var/spack/repos/builtin/packages/amrvis/package.py index 2c1e513d53..88be340a38 100644 --- a/var/spack/repos/builtin/packages/amrvis/package.py +++ b/var/spack/repos/builtin/packages/amrvis/package.py @@ -71,10 +71,7 @@ class Amrvis(MakefilePackage): # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85440 if self.spec.target.family not in ["x86_64", "ppc64le"]: comps = join_path("amrex", "Tools", "GNUMake", "comps") - maks = [ - join_path(comps, "gnu.mak"), - join_path(comps, "llvm.mak"), - ] + maks = [join_path(comps, "gnu.mak"), join_path(comps, "llvm.mak")] for mak in maks: filter_file("-lquadmath", "", mak) diff --git a/var/spack/repos/builtin/packages/anaconda3/package.py b/var/spack/repos/builtin/packages/anaconda3/package.py index 15dfbc5d31..4c0196fe90 100644 --- a/var/spack/repos/builtin/packages/anaconda3/package.py +++ b/var/spack/repos/builtin/packages/anaconda3/package.py @@ -190,7 +190,6 @@ class Anaconda3(Package): ) def install(self, spec, prefix): - dir, anaconda_script = split(self.stage.archive_file) bash = which("bash") bash(anaconda_script, "-b", "-f", "-p", self.prefix) diff --git a/var/spack/repos/builtin/packages/apr-util/package.py b/var/spack/repos/builtin/packages/apr-util/package.py index ece78261c0..26a66a057c 100644 --- a/var/spack/repos/builtin/packages/apr-util/package.py +++ b/var/spack/repos/builtin/packages/apr-util/package.py @@ -35,9 +35,7 @@ class AprUtil(AutotoolsPackage): @property def libs(self): return find_libraries( - ["libaprutil-{0}".format(self.version.up_to(1))], - root=self.prefix, - recursive=True, + ["libaprutil-{0}".format(self.version.up_to(1))], root=self.prefix, recursive=True ) def configure_args(self): @@ -55,12 +53,7 @@ class AprUtil(AutotoolsPackage): ] if "+crypto" in spec: - args.extend( - [ - "--with-crypto", - "--with-openssl={0}".format(spec["openssl"].prefix), - ] - ) + args.extend(["--with-crypto", "--with-openssl={0}".format(spec["openssl"].prefix)]) else: args.append("--without-crypto") @@ -77,25 +70,14 @@ class AprUtil(AutotoolsPackage): if "+sqlite" in spec: if spec.satisfies("^sqlite@3.0:3"): args.extend( - [ - "--with-sqlite3={0}".format(spec["sqlite"].prefix), - "--without-sqlite2", - ] + ["--with-sqlite3={0}".format(spec["sqlite"].prefix), "--without-sqlite2"] ) elif spec.satisfies("^sqlite@2.0:2"): args.extend( - [ - "--with-sqlite2={0}".format(spec["sqlite"].prefix), - "--without-sqlite3", - ] + ["--with-sqlite2={0}".format(spec["sqlite"].prefix), "--without-sqlite3"] ) else: - args.extend( - [ - "--without-sqlite2", - "--without-sqlite3", - ] - ) + args.extend(["--without-sqlite2", "--without-sqlite3"]) if "+odbc" in spec: args.append("--with-odbc={0}".format(spec["unixodbc"].prefix)) diff --git a/var/spack/repos/builtin/packages/apr/package.py b/var/spack/repos/builtin/packages/apr/package.py index 8e4f7f9353..bfaa863442 100644 --- a/var/spack/repos/builtin/packages/apr/package.py +++ b/var/spack/repos/builtin/packages/apr/package.py @@ -23,7 +23,5 @@ class Apr(AutotoolsPackage): @property def libs(self): return find_libraries( - ["libapr-{0}".format(self.version.up_to(1))], - root=self.prefix, - recursive=True, + ["libapr-{0}".format(self.version.up_to(1))], root=self.prefix, recursive=True ) diff --git a/var/spack/repos/builtin/packages/arbor/package.py b/var/spack/repos/builtin/packages/arbor/package.py index c50c69c272..41020a3eb3 100644 --- a/var/spack/repos/builtin/packages/arbor/package.py +++ b/var/spack/repos/builtin/packages/arbor/package.py @@ -42,18 +42,12 @@ class Arbor(CMakePackage, CudaPackage): url="https://github.com/arbor-sim/arbor/releases/download/v0.5.2/arbor-v0.5.2-full.tar.gz", ) - variant( - "assertions", - default=False, - description="Enable arb_assert() assertions in code.", - ) + variant("assertions", default=False, description="Enable arb_assert() assertions in code.") variant("doc", default=False, description="Build documentation.") variant("mpi", default=False, description="Enable MPI support") variant("python", default=True, description="Enable Python frontend support") variant( - "vectorize", - default=False, - description="Enable vectorization of computational kernels", + "vectorize", default=False, description="Enable vectorization of computational kernels" ) variant( "gpu_rng", diff --git a/var/spack/repos/builtin/packages/arm-forge/package.py b/var/spack/repos/builtin/packages/arm-forge/package.py index 02147d6fd3..952b6f42b1 100644 --- a/var/spack/repos/builtin/packages/arm-forge/package.py +++ b/var/spack/repos/builtin/packages/arm-forge/package.py @@ -161,11 +161,7 @@ class ArmForge(Package): description='Detect available PMU counters via "forge-probe" during install', ) - variant( - "accept-eula", - default=False, - description="Accept the EULA", - ) + variant("accept-eula", default=False, description="Accept the EULA") # forge-probe executes with "/usr/bin/env python" depends_on("python@2.7:", type="build", when="+probe") diff --git a/var/spack/repos/builtin/packages/armpl-gcc/package.py b/var/spack/repos/builtin/packages/armpl-gcc/package.py index 045f7df8f1..7358dcd65d 100644 --- a/var/spack/repos/builtin/packages/armpl-gcc/package.py +++ b/var/spack/repos/builtin/packages/armpl-gcc/package.py @@ -208,7 +208,6 @@ class ArmplGcc(Package): @property def blas_libs(self): - armpl_prefix = get_armpl_prefix(self.spec) libname = "libarmpl" + self.lib_suffix diff --git a/var/spack/repos/builtin/packages/asagi/package.py b/var/spack/repos/builtin/packages/asagi/package.py index 288475326a..9ae444580d 100644 --- a/var/spack/repos/builtin/packages/asagi/package.py +++ b/var/spack/repos/builtin/packages/asagi/package.py @@ -50,7 +50,6 @@ class Asagi(CMakePackage): conflicts("%gcc@5:", when="@:1.0.0") def cmake_args(self): - link_type = self.spec.variants["link_type"].value spec = self.spec args = [ diff --git a/var/spack/repos/builtin/packages/asdcplib/package.py b/var/spack/repos/builtin/packages/asdcplib/package.py index 002c23258e..0f35b9a177 100644 --- a/var/spack/repos/builtin/packages/asdcplib/package.py +++ b/var/spack/repos/builtin/packages/asdcplib/package.py @@ -24,7 +24,6 @@ class Asdcplib(AutotoolsPackage): depends_on("openssl", type=("build", "link")) def configure_args(self): - spec = self.spec args = ["--with-openssl={0}".format(spec["openssl"].prefix)] diff --git a/var/spack/repos/builtin/packages/asio/package.py b/var/spack/repos/builtin/packages/asio/package.py index 544b264d17..f722b756cb 100644 --- a/var/spack/repos/builtin/packages/asio/package.py +++ b/var/spack/repos/builtin/packages/asio/package.py @@ -42,17 +42,9 @@ class Asio(AutotoolsPackage): description="Use the specified C++ standard when building.", ) - variant( - "separate_compilation", - default=False, - description="Compile Asio sources separately", - ) + variant("separate_compilation", default=False, description="Compile Asio sources separately") - variant( - "boost_coroutine", - default=False, - description="Enable support for Boost.Coroutine.", - ) + variant("boost_coroutine", default=False, description="Enable support for Boost.Coroutine.") depends_on("boost +context +coroutine", when="+boost_coroutine") variant("boost_regex", default=False, description="Enable support for Boost.Regex.") @@ -64,9 +56,7 @@ class Asio(AutotoolsPackage): def configure_args(self): variants = self.spec.variants - args = [ - "CXXFLAGS=-std=c++{0}".format(variants["cxxstd"].value), - ] + args = ["CXXFLAGS=-std=c++{0}".format(variants["cxxstd"].value)] if variants["separate_compilation"].value: args.append("--enable-separate-compilation") diff --git a/var/spack/repos/builtin/packages/augustus/package.py b/var/spack/repos/builtin/packages/augustus/package.py index e9796c576f..e10603e1e5 100644 --- a/var/spack/repos/builtin/packages/augustus/package.py +++ b/var/spack/repos/builtin/packages/augustus/package.py @@ -87,12 +87,7 @@ class Augustus(MakefilePackage): makefiles.append("auxprogs/checkTargetSortedness/Makefile") if self.version >= Version("3.4.0"): - makefiles.extend( - [ - "auxprogs/filterBam/src/Makefile", - "src/unittests/Makefile", - ] - ) + makefiles.extend(["auxprogs/filterBam/src/Makefile", "src/unittests/Makefile"]) for makefile in makefiles: filter_file("gcc", spack_cc, makefile, string=True) diff --git a/var/spack/repos/builtin/packages/autodiff/package.py b/var/spack/repos/builtin/packages/autodiff/package.py index 0b03242f42..9e8e1ce29d 100644 --- a/var/spack/repos/builtin/packages/autodiff/package.py +++ b/var/spack/repos/builtin/packages/autodiff/package.py @@ -34,9 +34,6 @@ class Autodiff(CMakePackage): args = [ self.define("AUTODIFF_BUILD_TESTS", self.run_tests), self.define_from_variant("AUTODIFF_BUILD_PYTHON", "python"), - self.define_from_variant( - "AUTODIFF_BUILD_EXAMPLES", - "examples", - ), + self.define_from_variant("AUTODIFF_BUILD_EXAMPLES", "examples"), ] return args diff --git a/var/spack/repos/builtin/packages/autogen/package.py b/var/spack/repos/builtin/packages/autogen/package.py index 2f7358b5a3..2ecc434106 100644 --- a/var/spack/repos/builtin/packages/autogen/package.py +++ b/var/spack/repos/builtin/packages/autogen/package.py @@ -32,7 +32,7 @@ class Autogen(AutotoolsPackage, GNUMirrorPackage): args = [ # `make check` fails without this # Adding a gettext dependency does not help - "--disable-nls", + "--disable-nls" ] if "+xml" in spec: diff --git a/var/spack/repos/builtin/packages/axom/package.py b/var/spack/repos/builtin/packages/axom/package.py index d02006d433..0b8bc8e61b 100644 --- a/var/spack/repos/builtin/packages/axom/package.py +++ b/var/spack/repos/builtin/packages/axom/package.py @@ -344,8 +344,7 @@ class Axom(CachedCMakePackage, CudaPackage, ROCmPackage): if _existing_paths: entries.append( cmake_cache_string( - "BLT_CMAKE_IMPLICIT_LINK_DIRECTORIES_EXCLUDE", - ";".join(_existing_paths), + "BLT_CMAKE_IMPLICIT_LINK_DIRECTORIES_EXCLUDE", ";".join(_existing_paths) ) ) diff --git a/var/spack/repos/builtin/packages/bacio/package.py b/var/spack/repos/builtin/packages/bacio/package.py index f699d773fb..19dbcbdf49 100644 --- a/var/spack/repos/builtin/packages/bacio/package.py +++ b/var/spack/repos/builtin/packages/bacio/package.py @@ -14,12 +14,7 @@ class Bacio(CMakePackage): homepage = "https://noaa-emc.github.io/NCEPLIBS-bacio" url = "https://github.com/NOAA-EMC/NCEPLIBS-bacio/archive/refs/tags/v2.4.1.tar.gz" - maintainers( - "t-brown", - "edwardhartnett", - "AlexanderRichert-NOAA", - "Hang-Lei-NOAA", - ) + maintainers("t-brown", "edwardhartnett", "AlexanderRichert-NOAA", "Hang-Lei-NOAA") version("2.5.0", sha256="540a0ed73941d70dbf5d7b21d5d0a441e76fad2bfe37dfdfea0db3e98fc0fbfb") diff --git a/var/spack/repos/builtin/packages/bamaddrg/package.py b/var/spack/repos/builtin/packages/bamaddrg/package.py index 0ab0a108d9..eed427a22c 100644 --- a/var/spack/repos/builtin/packages/bamaddrg/package.py +++ b/var/spack/repos/builtin/packages/bamaddrg/package.py @@ -19,6 +19,5 @@ class Bamaddrg(MakefilePackage): depends_on("bamtools", type="build") def setup_build_environment(self, env): - env.set("BAMTOOLS_ROOT", self.spec["bamtools"].prefix) env.set("PREFIX", self.prefix) diff --git a/var/spack/repos/builtin/packages/berkeleygw/package.py b/var/spack/repos/builtin/packages/berkeleygw/package.py index ba3dd3ff6d..148942b50e 100644 --- a/var/spack/repos/builtin/packages/berkeleygw/package.py +++ b/var/spack/repos/builtin/packages/berkeleygw/package.py @@ -131,7 +131,6 @@ class Berkeleygw(MakefilePackage): filter_file("Precision : 8e-15", "Precision : 9e-15", "testsuite/GaAs-EPM/GaAs.test") def build(self, spec, prefix): - buildopts = [] paraflags = [] diff --git a/var/spack/repos/builtin/packages/binutils/package.py b/var/spack/repos/builtin/packages/binutils/package.py index 48b418bd73..00e3e2dff0 100644 --- a/var/spack/repos/builtin/packages/binutils/package.py +++ b/var/spack/repos/builtin/packages/binutils/package.py @@ -168,11 +168,7 @@ class Binutils(AutotoolsPackage, GNUMirrorPackage): class AutotoolsBuilder(spack.build_systems.autotools.AutotoolsBuilder): def configure_args(self): - known_targets = { - "x86_64": "x86_64", - "aarch64": "aarch64", - "ppc64le": "powerpc", - } + known_targets = {"x86_64": "x86_64", "aarch64": "aarch64", "ppc64le": "powerpc"} known_platforms = {"linux": "linux-gnu", "cray": "linux-gnu", "darwin": "apple-darwin"} family = str(self.spec.target.family) diff --git a/var/spack/repos/builtin/packages/blast-plus/package.py b/var/spack/repos/builtin/packages/blast-plus/package.py index e82407eddc..1e934b93fb 100644 --- a/var/spack/repos/builtin/packages/blast-plus/package.py +++ b/var/spack/repos/builtin/packages/blast-plus/package.py @@ -84,12 +84,7 @@ class BlastPlus(AutotoolsPackage): def configure_args(self): spec = self.spec - config_args = [ - "--with-bin-release", - "--without-debug", - "--with-mt", - "--without-boost", - ] + config_args = ["--with-bin-release", "--without-debug", "--with-mt", "--without-boost"] if spec.target.family != "aarch64": config_args.append("--with-64") diff --git a/var/spack/repos/builtin/packages/blast2go/package.py b/var/spack/repos/builtin/packages/blast2go/package.py index 0eb5a505ff..e277e34d5a 100644 --- a/var/spack/repos/builtin/packages/blast2go/package.py +++ b/var/spack/repos/builtin/packages/blast2go/package.py @@ -39,12 +39,7 @@ class Blast2go(Package): config_input_file = "spack-config.in" - config_input_data = [ - "o\n", - prefix.bin + "\n", - "n\n", - "n\n", - ] + config_input_data = ["o\n", prefix.bin + "\n", "n\n", "n\n"] with open(config_input_file, "w") as f: f.writelines(config_input_data) diff --git a/var/spack/repos/builtin/packages/blaze/package.py b/var/spack/repos/builtin/packages/blaze/package.py index 0e6abb6b79..0dfef19fe1 100644 --- a/var/spack/repos/builtin/packages/blaze/package.py +++ b/var/spack/repos/builtin/packages/blaze/package.py @@ -96,12 +96,9 @@ class Blaze(CMakePackage): self.define("BLAZE_SHARED_MEMORY_PARALLELIZATION", True), self.define( "BLAZE_SMP_THREADS", - { - "openmp": "OpenMP", - "cpp11": "C++11", - "boost": "Boost", - "hpx": "HPX", - }[self.spec.variants["smp"].value], + {"openmp": "OpenMP", "cpp11": "C++11", "boost": "Boost", "hpx": "HPX"}[ + self.spec.variants["smp"].value + ], ), ] ) diff --git a/var/spack/repos/builtin/packages/bohrium/package.py b/var/spack/repos/builtin/packages/bohrium/package.py index 65b9e06590..1ea1e30321 100644 --- a/var/spack/repos/builtin/packages/bohrium/package.py +++ b/var/spack/repos/builtin/packages/bohrium/package.py @@ -143,10 +143,7 @@ class Bohrium(CMakePackage, CudaPackage): # # Vector engines # - args += [ - "-DVE_OPENCL=" + str("+opencl" in spec), - "-DVE_CUDA=" + str("+cuda" in spec), - ] + args += ["-DVE_OPENCL=" + str("+opencl" in spec), "-DVE_CUDA=" + str("+cuda" in spec)] if "+openmp" in spec: args += [ diff --git a/var/spack/repos/builtin/packages/bowtie2/package.py b/var/spack/repos/builtin/packages/bowtie2/package.py index fc63f914fd..125db4e09e 100644 --- a/var/spack/repos/builtin/packages/bowtie2/package.py +++ b/var/spack/repos/builtin/packages/bowtie2/package.py @@ -47,9 +47,7 @@ class Bowtie2(MakefilePackage): match = "^#!/usr/bin/env perl" perl = spec["perl"].command substitute = "#!{perl}".format(perl=perl) - files = [ - "bowtie2", - ] + files = ["bowtie2"] filter_file(match, substitute, *files, **kwargs) match = "^#!/usr/bin/env python.*" diff --git a/var/spack/repos/builtin/packages/bubblewrap/package.py b/var/spack/repos/builtin/packages/bubblewrap/package.py index 06ebc03578..334ccea698 100644 --- a/var/spack/repos/builtin/packages/bubblewrap/package.py +++ b/var/spack/repos/builtin/packages/bubblewrap/package.py @@ -26,11 +26,7 @@ class Bubblewrap(AutotoolsPackage): version("0.3.1", sha256="deca6b608c54df4be0669b8bb6d254858924588e9f86e116eb04656a3b6d4bf8") def configure_args(self): - return [ - "--disable-sudo", - "--disable-man", - "--without-bash-completion-dir", - ] + return ["--disable-sudo", "--disable-man", "--without-bash-completion-dir"] depends_on("pkgconfig", type="build") depends_on("libcap") diff --git a/var/spack/repos/builtin/packages/buddy/package.py b/var/spack/repos/builtin/packages/buddy/package.py index abc36f2e88..243d8a21f1 100644 --- a/var/spack/repos/builtin/packages/buddy/package.py +++ b/var/spack/repos/builtin/packages/buddy/package.py @@ -20,7 +20,5 @@ class Buddy(AutotoolsPackage): def configure_args(self): if platform.machine() == "aarch64": - config_args = [ - "--build=aarch64-unknown-linux-gnu", - ] + config_args = ["--build=aarch64-unknown-linux-gnu"] return config_args diff --git a/var/spack/repos/builtin/packages/bufr/package.py b/var/spack/repos/builtin/packages/bufr/package.py index 603fbcdaa0..29953734c7 100644 --- a/var/spack/repos/builtin/packages/bufr/package.py +++ b/var/spack/repos/builtin/packages/bufr/package.py @@ -17,13 +17,7 @@ class Bufr(CMakePackage): homepage = "https://noaa-emc.github.io/NCEPLIBS-bufr" url = "https://github.com/NOAA-EMC/NCEPLIBS-bufr/archive/refs/tags/bufr_v11.5.0.tar.gz" - maintainers( - "t-brown", - "AlexanderRichert-NOAA", - "edwardhartnett", - "Hang-Lei-NOAA", - "jbathegit", - ) + maintainers("t-brown", "AlexanderRichert-NOAA", "edwardhartnett", "Hang-Lei-NOAA", "jbathegit") version("11.7.1", sha256="6533ce6eaa6b02c0cb5424cfbc086ab120ccebac3894980a4daafd4dfadd71f8") version("11.7.0", sha256="6a76ae8e7682bbc790321bf80c2f9417775c5b01a5c4f10763df92e01b20b9ca") diff --git a/var/spack/repos/builtin/packages/camx/package.py b/var/spack/repos/builtin/packages/camx/package.py index 132a68310d..ebc9591156 100644 --- a/var/spack/repos/builtin/packages/camx/package.py +++ b/var/spack/repos/builtin/packages/camx/package.py @@ -124,10 +124,7 @@ parlib : # Set MPI. if "+mpi" in self.spec: mpi = self.spec["mpi"] - args += [ - "MPI={0}".format(mpi.name), - "MPI_INST={0}".format(mpi.prefix), - ] + args += ["MPI={0}".format(mpi.name), "MPI_INST={0}".format(mpi.prefix)] return args def install(self, spec, prefix): diff --git a/var/spack/repos/builtin/packages/cantera/package.py b/var/spack/repos/builtin/packages/cantera/package.py index d89533171f..09ee90e627 100644 --- a/var/spack/repos/builtin/packages/cantera/package.py +++ b/var/spack/repos/builtin/packages/cantera/package.py @@ -135,17 +135,11 @@ class Cantera(SConsPackage): # Python module if "+python" in spec: args.extend( - [ - "python_package=full", - "python_cmd={0}".format(spec["python"].command.path), - ] + ["python_package=full", "python_cmd={0}".format(spec["python"].command.path)] ) if spec["python"].satisfies("@3:"): args.extend( - [ - "python3_package=y", - "python3_cmd={0}".format(spec["python"].command.path), - ] + ["python3_package=y", "python3_cmd={0}".format(spec["python"].command.path)] ) else: args.append("python3_package=n") diff --git a/var/spack/repos/builtin/packages/cbtf-lanl/package.py b/var/spack/repos/builtin/packages/cbtf-lanl/package.py index 4e521a653f..6a51853722 100644 --- a/var/spack/repos/builtin/packages/cbtf-lanl/package.py +++ b/var/spack/repos/builtin/packages/cbtf-lanl/package.py @@ -60,7 +60,6 @@ class CbtfLanl(CMakePackage): build_directory = "build_cbtf_lanl" def cmake_args(self): - spec = self.spec compile_flags = "-O2 -g -Wall" diff --git a/var/spack/repos/builtin/packages/cbtf/package.py b/var/spack/repos/builtin/packages/cbtf/package.py index 3783b8c5cb..86153ae645 100644 --- a/var/spack/repos/builtin/packages/cbtf/package.py +++ b/var/spack/repos/builtin/packages/cbtf/package.py @@ -66,7 +66,6 @@ class Cbtf(CMakePackage): build_directory = "build_cbtf" def cmake_args(self): - spec = self.spec # Boost_NO_SYSTEM_PATHS Set to TRUE to suppress searching @@ -77,7 +76,6 @@ class Cbtf(CMakePackage): compile_flags = "-O2 -g -Wall" if spec.satisfies("+runtime"): - # Install message tag include file for use in Intel MIC # cbtf-krell build # FIXME diff --git a/var/spack/repos/builtin/packages/chameleon/package.py b/var/spack/repos/builtin/packages/chameleon/package.py index 19b8656bf5..d5539e91f1 100644 --- a/var/spack/repos/builtin/packages/chameleon/package.py +++ b/var/spack/repos/builtin/packages/chameleon/package.py @@ -71,7 +71,6 @@ class Chameleon(CMakePackage, CudaPackage): depends_on("lapack") def cmake_args(self): - spec = self.spec args = [ "-Wno-dev", diff --git a/var/spack/repos/builtin/packages/charmpp/package.py b/var/spack/repos/builtin/packages/charmpp/package.py index 8825968fcd..91876fbb13 100644 --- a/var/spack/repos/builtin/packages/charmpp/package.py +++ b/var/spack/repos/builtin/packages/charmpp/package.py @@ -226,7 +226,6 @@ class Charmpp(Package): # build-target=LIBS backend={0}'.format(b)) def install(self, spec, prefix): - if not ("backend=mpi" in self.spec) or not ("backend=netlrts" in self.spec): if "+pthreads" in self.spec: raise InstallError( diff --git a/var/spack/repos/builtin/packages/chemfiles/package.py b/var/spack/repos/builtin/packages/chemfiles/package.py index 0ce47ae8ae..99bb725e37 100644 --- a/var/spack/repos/builtin/packages/chemfiles/package.py +++ b/var/spack/repos/builtin/packages/chemfiles/package.py @@ -21,7 +21,5 @@ class Chemfiles(CMakePackage): variant("shared", default=False, description="Build shared libraries") def cmake_args(self): - args = [ - self.define_from_variant("BUILD_SHARED_LIBS", "shared"), - ] + args = [self.define_from_variant("BUILD_SHARED_LIBS", "shared")] return args diff --git a/var/spack/repos/builtin/packages/cli11/package.py b/var/spack/repos/builtin/packages/cli11/package.py index d90f31a968..12fb3a07ea 100644 --- a/var/spack/repos/builtin/packages/cli11/package.py +++ b/var/spack/repos/builtin/packages/cli11/package.py @@ -23,9 +23,5 @@ class Cli11(CMakePackage): depends_on("cmake@3.4:", type="build") def cmake_args(self): - args = [ - "-DCLI11_BUILD_EXAMPLES=OFF", - "-DCLI11_BUILD_DOCS=OFF", - "-DCLI11_BUILD_TESTS=OFF", - ] + args = ["-DCLI11_BUILD_EXAMPLES=OFF", "-DCLI11_BUILD_DOCS=OFF", "-DCLI11_BUILD_TESTS=OFF"] return args diff --git a/var/spack/repos/builtin/packages/clingo-bootstrap/package.py b/var/spack/repos/builtin/packages/clingo-bootstrap/package.py index c83059dc09..0d2914ae7d 100644 --- a/var/spack/repos/builtin/packages/clingo-bootstrap/package.py +++ b/var/spack/repos/builtin/packages/clingo-bootstrap/package.py @@ -54,7 +54,7 @@ class ClingoBootstrap(Clingo): args.extend( [ # Avoid building the clingo executable - self.define("CLINGO_BUILD_APPS", "OFF"), + self.define("CLINGO_BUILD_APPS", "OFF") ] ) return args diff --git a/var/spack/repos/builtin/packages/cni-plugins/package.py b/var/spack/repos/builtin/packages/cni-plugins/package.py index 664b3b952c..06959db972 100644 --- a/var/spack/repos/builtin/packages/cni-plugins/package.py +++ b/var/spack/repos/builtin/packages/cni-plugins/package.py @@ -21,7 +21,6 @@ class CniPlugins(Package): def install(self, spec, prefix): utils = "github.com/containernetworking/plugins/pkg/utils/buildversion" which("./build_linux.sh")( - "-ldflags", - "-extldflags -static -X {0}.BuildVersion={1}".format(utils, self.version), + "-ldflags", "-extldflags -static -X {0}.BuildVersion={1}".format(utils, self.version) ) install_tree("bin", prefix.bin) diff --git a/var/spack/repos/builtin/packages/corenlp/package.py b/var/spack/repos/builtin/packages/corenlp/package.py index 6ab9051959..9aa82e1d6c 100644 --- a/var/spack/repos/builtin/packages/corenlp/package.py +++ b/var/spack/repos/builtin/packages/corenlp/package.py @@ -23,9 +23,7 @@ class Corenlp(Package): version("4.0.0", sha256="07195eed46dd39bdc364d3988da8ec6a5fc9fed8c17613cfe5a8b84d649c8f0f") - resources = [ - ("4.0.0", "f45bde062fb368d72f7d3c7ac1ddc6cfb61d3badc1152572bde17f1a5ed9ec94"), - ] + resources = [("4.0.0", "f45bde062fb368d72f7d3c7ac1ddc6cfb61d3badc1152572bde17f1a5ed9ec94")] for ver, checksum in resources: jarfile = "stanford-corenlp-{0}-models.jar".format(ver) resource( diff --git a/var/spack/repos/builtin/packages/cosma/package.py b/var/spack/repos/builtin/packages/cosma/package.py index c24d3a2805..04c126f439 100644 --- a/var/spack/repos/builtin/packages/cosma/package.py +++ b/var/spack/repos/builtin/packages/cosma/package.py @@ -72,7 +72,7 @@ class Cosma(CMakePackage): [("^blis", "BLIS"), ("^amdblis", "BLIS"), ("^atlas", "ATLAS")] ) - for (query, cmake_arg) in query_to_cmake_arg: + for query, cmake_arg in query_to_cmake_arg: if query in self.spec: return cmake_arg diff --git a/var/spack/repos/builtin/packages/cosmomc/package.py b/var/spack/repos/builtin/packages/cosmomc/package.py index 5b0754a5b0..619a58fe37 100644 --- a/var/spack/repos/builtin/packages/cosmomc/package.py +++ b/var/spack/repos/builtin/packages/cosmomc/package.py @@ -174,13 +174,7 @@ class Cosmomc(Package): exe = join_path(spec["mpi"].prefix.bin, "mpiexec") cosmomc = Executable(exe) with working_dir("spack-check", create=True): - for entry in [ - "camb", - "chains", - "data", - "paramnames", - "planck_covmats", - ]: + for entry in ["camb", "chains", "data", "paramnames", "planck_covmats"]: os.symlink(join_path(prefix.share, "cosmomc", entry), entry) inifile = join_path(prefix.share, "cosmomc", "test.ini") cosmomc(*(args + [inifile])) diff --git a/var/spack/repos/builtin/packages/costa/package.py b/var/spack/repos/builtin/packages/costa/package.py index 369bd27a20..48a6fb8ec9 100644 --- a/var/spack/repos/builtin/packages/costa/package.py +++ b/var/spack/repos/builtin/packages/costa/package.py @@ -13,11 +13,7 @@ class Costa(CMakePackage): Based on the paper: https://arxiv.org/abs/2106.06601 """ - maintainers( - "haampie", - "kabicm", - "RMeli", - ) + maintainers("haampie", "kabicm", "RMeli") homepage = "https://github.com/eth-cscs/COSTA" git = "https://github.com/eth-cscs/COSTA.git" diff --git a/var/spack/repos/builtin/packages/cp2k/package.py b/var/spack/repos/builtin/packages/cp2k/package.py index 43b0d8ecfc..d4a808c91c 100644 --- a/var/spack/repos/builtin/packages/cp2k/package.py +++ b/var/spack/repos/builtin/packages/cp2k/package.py @@ -301,16 +301,8 @@ class Cp2k(MakefilePackage, CudaPackage): fftw_header_dir = fftw.headers.directories[0] optimization_flags = { - "gcc": [ - "-O2", - "-funroll-loops", - "-ftree-vectorize", - ], - "intel": [ - "-O2", - "-pc64", - "-unroll", - ], + "gcc": ["-O2", "-funroll-loops", "-ftree-vectorize"], + "intel": ["-O2", "-pc64", "-unroll"], "pgi": ["-fast"], "nvhpc": ["-fast"], "cce": ["-O2"], @@ -319,10 +311,7 @@ class Cp2k(MakefilePackage, CudaPackage): } dflags = ["-DNDEBUG"] - cppflags = [ - "-D__FFTW3", - "-I{0}".format(fftw_header_dir), - ] + cppflags = ["-D__FFTW3", "-I{0}".format(fftw_header_dir)] # CP2K requires MPI 3 starting at version 2023.1 # and __MPI_VERSION is not supported anymore. @@ -347,12 +336,7 @@ class Cp2k(MakefilePackage, CudaPackage): if "%intel" in spec: cflags.append("-fp-model precise") cxxflags.append("-fp-model precise") - fcflags += [ - "-fp-model precise", - "-heap-arrays 64", - "-g", - "-traceback", - ] + fcflags += ["-fp-model precise", "-heap-arrays 64", "-g", "-traceback"] elif "%gcc" in spec: fcflags += [ "-ffree-form", @@ -360,10 +344,7 @@ class Cp2k(MakefilePackage, CudaPackage): "-ggdb", # make sure we get proper Fortran backtraces ] elif "%aocc" in spec: - fcflags += [ - "-ffree-form", - "-Mbackslash", - ] + fcflags += ["-ffree-form", "-Mbackslash"] elif "%pgi" in spec or "%nvhpc" in spec: fcflags += ["-Mfreeform", "-Mextend"] elif "%cce" in spec: @@ -411,13 +392,7 @@ class Cp2k(MakefilePackage, CudaPackage): # Intel if "%intel" in spec: - cppflags.extend( - [ - "-D__INTEL", - "-D__HAS_ISO_C_BINDING", - "-D__USE_CP2K_TRACE", - ] - ) + cppflags.extend(["-D__INTEL", "-D__HAS_ISO_C_BINDING", "-D__USE_CP2K_TRACE"]) fcflags.extend(["-diag-disable 8290,8291,10010,10212,11060", "-free", "-fpp"]) # FFTW, LAPACK, BLAS @@ -478,10 +453,7 @@ class Cp2k(MakefilePackage, CudaPackage): cppflags += ["-D__LIBINT"] if "@:6.9" in spec: - cppflags += [ - "-D__LIBINT_MAX_AM=6", - "-D__LIBDERIV_MAX_AM1=5", - ] + cppflags += ["-D__LIBINT_MAX_AM=6", "-D__LIBDERIV_MAX_AM1=5"] # libint-1.x.y has to be linked statically to work around # inconsistencies in its Fortran interface definition @@ -593,11 +565,7 @@ class Cp2k(MakefilePackage, CudaPackage): acc_compiler_var = "OFFLOAD_CC" acc_flags_var = "OFFLOAD_FLAGS" - cppflags += [ - "-D__DBCSR_ACC", - "-D__GRID_CUDA", - "-DOFFLOAD_TARGET=cuda", - ] + cppflags += ["-D__DBCSR_ACC", "-D__GRID_CUDA", "-DOFFLOAD_TARGET=cuda"] libs += ["-lcublas"] if spec.satisfies("+cuda_fft"): @@ -624,12 +592,7 @@ class Cp2k(MakefilePackage, CudaPackage): cuda_arch = spec.variants["cuda_arch"].value[0] if cuda_arch: - gpuver = { - "35": "K40", - "37": "K80", - "60": "P100", - "70": "V100", - }[cuda_arch] + gpuver = {"35": "K40", "37": "K80", "60": "P100", "70": "V100"}[cuda_arch] if cuda_arch == "35" and spec.satisfies("+cuda_arch_35_k20x"): gpuver = "K20X" @@ -649,12 +612,7 @@ class Cp2k(MakefilePackage, CudaPackage): "The file LIBSMM_PATH pointed to does not " "exist. Note that it must be absolute path." ) - cppflags.extend( - [ - "-D__HAS_smm_dnn", - "-D__HAS_smm_vec", - ] - ) + cppflags.extend(["-D__HAS_smm_dnn", "-D__HAS_smm_vec"]) libs.append("-lsmm") elif "smm=libxsmm" in spec: diff --git a/var/spack/repos/builtin/packages/cray-fftw/package.py b/var/spack/repos/builtin/packages/cray-fftw/package.py index 2971f18932..fd29b14938 100644 --- a/var/spack/repos/builtin/packages/cray-fftw/package.py +++ b/var/spack/repos/builtin/packages/cray-fftw/package.py @@ -51,15 +51,11 @@ class CrayFftw(Package): @property def libs(self): - # Reduce repetitions of entries query_parameters = list(llnl.util.lang.dedupe(self.spec.last_query.extra_parameters)) # List of all the suffixes associated with float precisions - precisions = [ - ("float", "f"), - ("double", ""), - ] + precisions = [("float", "f"), ("double", "")] # Retrieve the correct suffixes, or use double as a default suffixes = [v for k, v in precisions if k in query_parameters] or [""] diff --git a/var/spack/repos/builtin/packages/crtm-fix/package.py b/var/spack/repos/builtin/packages/crtm-fix/package.py index a44f40a935..1508ee81e2 100644 --- a/var/spack/repos/builtin/packages/crtm-fix/package.py +++ b/var/spack/repos/builtin/packages/crtm-fix/package.py @@ -15,11 +15,7 @@ class CrtmFix(Package): url = "ftp://ftp.ssec.wisc.edu/pub/s4/CRTM/fix_REL-2.3.0_emc.tgz" maintainers( - "BenjaminTJohnson", - "edwardhartnett", - "AlexanderRichert-NOAA", - "Hang-Lei-NOAA", - "climbfuji", + "BenjaminTJohnson", "edwardhartnett", "AlexanderRichert-NOAA", "Hang-Lei-NOAA", "climbfuji" ) version("2.4.0_emc", sha256="88d659ae5bc4434f7fafa232ff65b4c48442d2d1a25f8fc96078094fa572ac1a") diff --git a/var/spack/repos/builtin/packages/crtm/package.py b/var/spack/repos/builtin/packages/crtm/package.py index 3524d7da79..5e22a5faf2 100644 --- a/var/spack/repos/builtin/packages/crtm/package.py +++ b/var/spack/repos/builtin/packages/crtm/package.py @@ -26,9 +26,7 @@ class Crtm(CMakePackage): ) variant( - "fix", - default=False, - description='Download CRTM coeffecient or "fix" files (several GBs).', + "fix", default=False, description='Download CRTM coeffecient or "fix" files (several GBs).' ) variant( "build_type", diff --git a/var/spack/repos/builtin/packages/curl/package.py b/var/spack/repos/builtin/packages/curl/package.py index 64b1d47f14..aae1ab74ad 100644 --- a/var/spack/repos/builtin/packages/curl/package.py +++ b/var/spack/repos/builtin/packages/curl/package.py @@ -130,11 +130,7 @@ class Curl(NMakePackage, AutotoolsPackage): # https://github.com/curl/curl/pull/9054 patch("easy-lock-sched-header.patch", when="@7.84.0") - build_system( - "autotools", - conditional("nmake", when="platform=windows"), - default="autotools", - ) + build_system("autotools", conditional("nmake", when="platform=windows"), default="autotools") @classmethod def determine_version(cls, exe): @@ -189,13 +185,7 @@ class AutotoolsBuilder(AutotoolsBuilder): # Make gnutls / openssl decide what certs are trusted. # TODO: certs for other tls options. if spec.satisfies("tls=gnutls") or spec.satisfies("tls=openssl"): - args.extend( - [ - "--without-ca-bundle", - "--without-ca-path", - "--with-ca-fallback", - ] - ) + args.extend(["--without-ca-bundle", "--without-ca-path", "--with-ca-fallback"]) # https://daniel.haxx.se/blog/2021/06/07/bye-bye-metalink-in-curl/ # We always disable it explicitly, but the flag is gone in newer diff --git a/var/spack/repos/builtin/packages/cutensor/package.py b/var/spack/repos/builtin/packages/cutensor/package.py index e77b799af5..15bc9fc22a 100644 --- a/var/spack/repos/builtin/packages/cutensor/package.py +++ b/var/spack/repos/builtin/packages/cutensor/package.py @@ -13,7 +13,7 @@ _versions = { "Linux-x86_64": "4fdebe94f0ba3933a422cff3dd05a0ef7a18552ca274dd12564056993f55471d", "Linux-ppc64le": "ad736acc94e88673b04a3156d7d3a408937cac32d083acdfbd8435582cbe15db", "Linux-aarch64": "5b9ac479b1dadaf40464ff3076e45f2ec92581c07df1258a155b5bcd142f6090", - }, + } } diff --git a/var/spack/repos/builtin/packages/dakota/package.py b/var/spack/repos/builtin/packages/dakota/package.py index 64f6a5b59a..4d302d05c4 100644 --- a/var/spack/repos/builtin/packages/dakota/package.py +++ b/var/spack/repos/builtin/packages/dakota/package.py @@ -56,9 +56,7 @@ class Dakota(CMakePackage): def cmake_args(self): spec = self.spec - args = [ - self.define_from_variant("BUILD_SHARED_LIBS", "shared"), - ] + args = [self.define_from_variant("BUILD_SHARED_LIBS", "shared")] if "+mpi" in spec: args.extend( diff --git a/var/spack/repos/builtin/packages/damaris/package.py b/var/spack/repos/builtin/packages/damaris/package.py index 890015f244..413e3a4453 100644 --- a/var/spack/repos/builtin/packages/damaris/package.py +++ b/var/spack/repos/builtin/packages/damaris/package.py @@ -56,7 +56,6 @@ class Damaris(CMakePackage): depends_on("boost+thread+log+filesystem+date_time+python+numpy @1.67:", when="+python") def cmake_args(self): - args = [] if not self.spec.variants["static"].value: args.extend(["-DBUILD_SHARED_LIBS=ON"]) diff --git a/var/spack/repos/builtin/packages/darshan-runtime/package.py b/var/spack/repos/builtin/packages/darshan-runtime/package.py index ae0f66293a..f3eff99a7f 100644 --- a/var/spack/repos/builtin/packages/darshan-runtime/package.py +++ b/var/spack/repos/builtin/packages/darshan-runtime/package.py @@ -25,18 +25,9 @@ class DarshanRuntime(AutotoolsPackage): test_requires_compiler = True version("main", branch="main", submodules=True) - version( - "3.4.2", - sha256="b095c3b7c059a8eba4beb03ec092b60708780a3cae3fc830424f6f9ada811c6b", - ) - version( - "3.4.1", - sha256="77c0a4675d94a0f9df5710e5b8658cc9ef0f0981a6dafb114d0389b1af64774c", - ) - version( - "3.4.0", - sha256="7cc88b7c130ec3b574f6b73c63c3c05deec67b1350245de6d39ca91d4cff0842", - ) + version("3.4.2", sha256="b095c3b7c059a8eba4beb03ec092b60708780a3cae3fc830424f6f9ada811c6b") + version("3.4.1", sha256="77c0a4675d94a0f9df5710e5b8658cc9ef0f0981a6dafb114d0389b1af64774c") + version("3.4.0", sha256="7cc88b7c130ec3b574f6b73c63c3c05deec67b1350245de6d39ca91d4cff0842") version( "3.4.0-pre1", sha256="57d0fd40329b9f8a51bdc9d7635b646692b341d80339115ab203357321706c09" ) diff --git a/var/spack/repos/builtin/packages/darshan-util/package.py b/var/spack/repos/builtin/packages/darshan-util/package.py index 3ed550c0f6..f66504765d 100644 --- a/var/spack/repos/builtin/packages/darshan-util/package.py +++ b/var/spack/repos/builtin/packages/darshan-util/package.py @@ -21,18 +21,9 @@ class DarshanUtil(AutotoolsPackage): tags = ["e4s"] version("main", branch="main", submodules="True") - version( - "3.4.2", - sha256="b095c3b7c059a8eba4beb03ec092b60708780a3cae3fc830424f6f9ada811c6b", - ) - version( - "3.4.1", - sha256="77c0a4675d94a0f9df5710e5b8658cc9ef0f0981a6dafb114d0389b1af64774c", - ) - version( - "3.4.0", - sha256="7cc88b7c130ec3b574f6b73c63c3c05deec67b1350245de6d39ca91d4cff0842", - ) + version("3.4.2", sha256="b095c3b7c059a8eba4beb03ec092b60708780a3cae3fc830424f6f9ada811c6b") + version("3.4.1", sha256="77c0a4675d94a0f9df5710e5b8658cc9ef0f0981a6dafb114d0389b1af64774c") + version("3.4.0", sha256="7cc88b7c130ec3b574f6b73c63c3c05deec67b1350245de6d39ca91d4cff0842") version( "3.4.0-pre1", sha256="57d0fd40329b9f8a51bdc9d7635b646692b341d80339115ab203357321706c09" ) diff --git a/var/spack/repos/builtin/packages/dbcsr/package.py b/var/spack/repos/builtin/packages/dbcsr/package.py index b15db887f4..0da4477fad 100644 --- a/var/spack/repos/builtin/packages/dbcsr/package.py +++ b/var/spack/repos/builtin/packages/dbcsr/package.py @@ -124,12 +124,7 @@ class Dbcsr(CMakePackage, CudaPackage, ROCmPackage): if self.spec.satisfies("+cuda"): cuda_arch = self.spec.variants["cuda_arch"].value[0] - gpu_map = { - "35": "K40", - "37": "K80", - "60": "P100", - "70": "V100", - } + gpu_map = {"35": "K40", "37": "K80", "60": "P100", "70": "V100"} if "@2.3:" in spec: gpu_map["80"] = "A100" diff --git a/var/spack/repos/builtin/packages/dealii/package.py b/var/spack/repos/builtin/packages/dealii/package.py index 5ba96c97b9..0aa6b35a3c 100644 --- a/var/spack/repos/builtin/packages/dealii/package.py +++ b/var/spack/repos/builtin/packages/dealii/package.py @@ -611,17 +611,9 @@ class Dealii(CMakePackage, CudaPackage): # As a final step, collect CXX flags that may have been # added anywhere above: if len(cxx_flags_release) > 0 and "+optflags" in spec: - options.extend( - [ - self.define("CMAKE_CXX_FLAGS_RELEASE", " ".join(cxx_flags_release)), - ] - ) + options.extend([self.define("CMAKE_CXX_FLAGS_RELEASE", " ".join(cxx_flags_release))]) if len(cxx_flags) > 0: - options.extend( - [ - self.define("CMAKE_CXX_FLAGS", " ".join(cxx_flags)), - ] - ) + options.extend([self.define("CMAKE_CXX_FLAGS", " ".join(cxx_flags))]) # Add flags for machine vectorization, used when tutorials # and user code is built. diff --git a/var/spack/repos/builtin/packages/deconseq-standalone/package.py b/var/spack/repos/builtin/packages/deconseq-standalone/package.py index cdaf0ec257..f0904eb544 100644 --- a/var/spack/repos/builtin/packages/deconseq-standalone/package.py +++ b/var/spack/repos/builtin/packages/deconseq-standalone/package.py @@ -18,7 +18,6 @@ class DeconseqStandalone(Package): depends_on("perl@5:") def install(self, spec, prefix): - filter_file(r"#!/usr/bin/perl", "#!/usr/bin/env perl", "deconseq.pl") filter_file(r"#!/usr/bin/perl", "#!/usr/bin/env perl", "splitFasta.pl") diff --git a/var/spack/repos/builtin/packages/dia/package.py b/var/spack/repos/builtin/packages/dia/package.py index a88a9ebf22..c5b78a091a 100644 --- a/var/spack/repos/builtin/packages/dia/package.py +++ b/var/spack/repos/builtin/packages/dia/package.py @@ -40,7 +40,6 @@ class Dia(Package): ) def install(self, spec, prefix): - # configure, build, install: options = [ "--prefix=%s" % prefix, diff --git a/var/spack/repos/builtin/packages/dihydrogen/package.py b/var/spack/repos/builtin/packages/dihydrogen/package.py index a8e853a95d..67c5544525 100644 --- a/var/spack/repos/builtin/packages/dihydrogen/package.py +++ b/var/spack/repos/builtin/packages/dihydrogen/package.py @@ -129,14 +129,7 @@ class Dihydrogen(CMakePackage, CudaPackage, ROCmPackage): # Idenfity versions of cuda_arch that are too old # from lib/spack/spack/build_systems/cuda.py - illegal_cuda_arch_values = [ - "10", - "11", - "12", - "13", - "20", - "21", - ] + illegal_cuda_arch_values = ["10", "11", "12", "13", "20", "21"] for value in illegal_cuda_arch_values: conflicts("cuda_arch=" + value) @@ -216,11 +209,7 @@ class Dihydrogen(CMakePackage, CudaPackage, ROCmPackage): ] ) if "platform=cray" in spec: - args.extend( - [ - "-DMPI_ASSUME_NO_BUILTIN_MPI=ON", - ] - ) + args.extend(["-DMPI_ASSUME_NO_BUILTIN_MPI=ON"]) archs = self.spec.variants["amdgpu_target"].value if archs != "none": arch_str = ",".join(archs) diff --git a/var/spack/repos/builtin/packages/dmlc-core/package.py b/var/spack/repos/builtin/packages/dmlc-core/package.py index 24c6797019..333e80d089 100644 --- a/var/spack/repos/builtin/packages/dmlc-core/package.py +++ b/var/spack/repos/builtin/packages/dmlc-core/package.py @@ -32,6 +32,4 @@ class DmlcCore(CMakePackage): ) def cmake_args(self): - return [ - self.define_from_variant("USE_OPENMP", "openmp"), - ] + return [self.define_from_variant("USE_OPENMP", "openmp")] diff --git a/var/spack/repos/builtin/packages/docbook-xml/package.py b/var/spack/repos/builtin/packages/docbook-xml/package.py index a3fb9573fe..8434340af1 100644 --- a/var/spack/repos/builtin/packages/docbook-xml/package.py +++ b/var/spack/repos/builtin/packages/docbook-xml/package.py @@ -340,15 +340,7 @@ class DocbookXml(Package): ) # map all versions to current version - dtversions = [ - "4.1", - "4.1.1", - "4.1.2", - "4.2", - "4.3", - "4.4", - "4.5", - ] + dtversions = ["4.1", "4.1.1", "4.1.2", "4.2", "4.3", "4.4", "4.5"] for dtversion in dtversions: xmlcatalog( "--noout", diff --git a/var/spack/repos/builtin/packages/dock/package.py b/var/spack/repos/builtin/packages/dock/package.py index bfa34492ae..3d69f99dc2 100644 --- a/var/spack/repos/builtin/packages/dock/package.py +++ b/var/spack/repos/builtin/packages/dock/package.py @@ -33,12 +33,7 @@ class Dock(Package): env.set("MPICH_HOME", self.spec["mpi"].prefix) def install(self, spec, prefix): - compiler_targets = { - "gcc": "gnu", - "intel": "intel", - "pgi": "pgi", - "sgi": "sgi", - } + compiler_targets = {"gcc": "gnu", "intel": "intel", "pgi": "pgi", "sgi": "sgi"} if self.compiler.name not in compiler_targets: template = "Unsupported compiler {0}! Supported compilers: {1}" diff --git a/var/spack/repos/builtin/packages/dos2unix/package.py b/var/spack/repos/builtin/packages/dos2unix/package.py index bf76004e23..d69304ec38 100644 --- a/var/spack/repos/builtin/packages/dos2unix/package.py +++ b/var/spack/repos/builtin/packages/dos2unix/package.py @@ -28,7 +28,7 @@ class Dos2unix(MakefilePackage): targets = [ "LDFLAGS_USER=-L{0} {1}".format( self.spec["gettext"].prefix.lib, self.spec["gettext"].libs.link_flags - ), + ) ] return targets diff --git a/var/spack/repos/builtin/packages/dust/package.py b/var/spack/repos/builtin/packages/dust/package.py index 8f5a2264db..af3041fba5 100644 --- a/var/spack/repos/builtin/packages/dust/package.py +++ b/var/spack/repos/builtin/packages/dust/package.py @@ -14,10 +14,7 @@ class Dust(Package): maintainers("fangohr") - version( - "0.7.5", - sha256="f892aaf7a0a7852e12d01b2ced6c2484fb6dc5fe7562abdf0c44a2d08aa52618", - ) + version("0.7.5", sha256="f892aaf7a0a7852e12d01b2ced6c2484fb6dc5fe7562abdf0c44a2d08aa52618") depends_on("rust") @@ -31,10 +28,7 @@ class Dust(Package): def check_install(self): print("Attempt to call 'dust' with '--version'") dust = Executable(join_path(self.spec["dust"].prefix.bin, "dust")) - output = dust( - "--version", - output=str.split, - ) + output = dust("--version", output=str.split) print("stdout received fromm dust is '{}".format(output)) assert "Dust " in output diff --git a/var/spack/repos/builtin/packages/e3sm-kernels/package.py b/var/spack/repos/builtin/packages/e3sm-kernels/package.py index c0bb15d738..0f1df42267 100644 --- a/var/spack/repos/builtin/packages/e3sm-kernels/package.py +++ b/var/spack/repos/builtin/packages/e3sm-kernels/package.py @@ -26,10 +26,7 @@ class E3smKernels(MakefilePackage): variant( "kernel", default="atmosphere", - values=( - "atmosphere", - "mmf-mpdata-tracer", - ), + values=("atmosphere", "mmf-mpdata-tracer"), description="Specify E3SM Kernel to Build", multi=False, ) diff --git a/var/spack/repos/builtin/packages/eagle/package.py b/var/spack/repos/builtin/packages/eagle/package.py index 3db4db3a97..9353da9042 100644 --- a/var/spack/repos/builtin/packages/eagle/package.py +++ b/var/spack/repos/builtin/packages/eagle/package.py @@ -43,11 +43,7 @@ class Eagle(MakefilePackage): def install(self, spec, prefix): mkdirp(prefix.bin) - bins = [ - "eagle", - "eagle-rc", - "eagle-nm", - ] + bins = ["eagle", "eagle-rc", "eagle-nm"] for b in bins: install(b, prefix.bin) diff --git a/var/spack/repos/builtin/packages/easi/package.py b/var/spack/repos/builtin/packages/easi/package.py index 50bc264fd6..37d60dc448 100644 --- a/var/spack/repos/builtin/packages/easi/package.py +++ b/var/spack/repos/builtin/packages/easi/package.py @@ -45,7 +45,6 @@ class Easi(CMakePackage): conflicts("jit=impalajit", when="target=riscv64:") def cmake_args(self): - args = [] args.append(self.define_from_variant("ASAGI", "asagi")) spec = self.spec diff --git a/var/spack/repos/builtin/packages/ebms/package.py b/var/spack/repos/builtin/packages/ebms/package.py index 2a463faf9f..9ef56dbe3b 100644 --- a/var/spack/repos/builtin/packages/ebms/package.py +++ b/var/spack/repos/builtin/packages/ebms/package.py @@ -28,7 +28,6 @@ class Ebms(MakefilePackage): @property def build_targets(self): - targets = [] cflags = "-g -O3 -std=gnu99" diff --git a/var/spack/repos/builtin/packages/eccodes/package.py b/var/spack/repos/builtin/packages/eccodes/package.py index c98a6737dd..7afadcbe80 100644 --- a/var/spack/repos/builtin/packages/eccodes/package.py +++ b/var/spack/repos/builtin/packages/eccodes/package.py @@ -82,19 +82,15 @@ class Eccodes(CMakePackage): variant( "definitions", - values=disjoint_sets( - ("auto",), - ("default",) + tuple(_definitions.keys()), - ).with_default("auto"), + values=disjoint_sets(("auto",), ("default",) + tuple(_definitions.keys())).with_default( + "auto" + ), description="List of definitions to install", ) variant( "samples", - values=disjoint_sets( - ("auto",), - ("default",), - ).with_default("auto"), + values=disjoint_sets(("auto",), ("default",)).with_default("auto"), description="List of samples to install", ) diff --git a/var/spack/repos/builtin/packages/ecp-data-vis-sdk/package.py b/var/spack/repos/builtin/packages/ecp-data-vis-sdk/package.py index 59eefb3ec5..47c42aeb7f 100644 --- a/var/spack/repos/builtin/packages/ecp-data-vis-sdk/package.py +++ b/var/spack/repos/builtin/packages/ecp-data-vis-sdk/package.py @@ -114,10 +114,7 @@ class EcpDataVisSdk(BundlePackage, CudaPackage, ROCmPackage): dav_sdk_depends_on("hdf5@1.12: +shared+mpi", when="+hdf5", propagate=["fortran"]) # hdf5-vfd-gds needs cuda@11.7.1 or later, only enable when 11.7.1+ available. - depends_on( - "hdf5-vfd-gds@1.0.2:", - when="+cuda+hdf5^cuda@11.7.1:", - ) + depends_on("hdf5-vfd-gds@1.0.2:", when="+cuda+hdf5^cuda@11.7.1:") for cuda_arch in cuda_arch_variants: depends_on( "hdf5-vfd-gds@1.0.2: {0}".format(cuda_arch), diff --git a/var/spack/repos/builtin/packages/elfutils/package.py b/var/spack/repos/builtin/packages/elfutils/package.py index d72484b696..6f95eaf9cb 100644 --- a/var/spack/repos/builtin/packages/elfutils/package.py +++ b/var/spack/repos/builtin/packages/elfutils/package.py @@ -55,10 +55,7 @@ class Elfutils(AutotoolsPackage, SourcewarePackage): # libdebuginfod support # NB: For 0.181 and newer, this enables _both_ the client and server variant( - "debuginfod", - default=False, - description="Enable libdebuginfod support.", - when="@0.179:", + "debuginfod", default=False, description="Enable libdebuginfod support.", when="@0.179:" ) # elfutils-0.185-static-inline.patch diff --git a/var/spack/repos/builtin/packages/elmerfem/package.py b/var/spack/repos/builtin/packages/elmerfem/package.py index 4e5f92b2a1..fda948b73c 100644 --- a/var/spack/repos/builtin/packages/elmerfem/package.py +++ b/var/spack/repos/builtin/packages/elmerfem/package.py @@ -49,7 +49,6 @@ class Elmerfem(CMakePackage): depends_on("csa-c", when="+scatt2d") def cmake_args(self): - spec = self.spec args = ["-DWITH_ElmerIce=ON", "-DWITH_CONTRIB=ON"] @@ -86,12 +85,7 @@ class Elmerfem(CMakePackage): args.append("-DWITH_Hypre=OFF") if "+trilinos" in spec: - args.extend( - [ - "-DWITH_Trilinos=ON", - "-DCMAKE_CXX_STANDARD=11", - ] - ) + args.extend(["-DWITH_Trilinos=ON", "-DCMAKE_CXX_STANDARD=11"]) else: args.append("-DWITH_Trilinos=OFF") diff --git a/var/spack/repos/builtin/packages/esmf/package.py b/var/spack/repos/builtin/packages/esmf/package.py index 68f22501d4..a0ee9452ad 100644 --- a/var/spack/repos/builtin/packages/esmf/package.py +++ b/var/spack/repos/builtin/packages/esmf/package.py @@ -25,42 +25,17 @@ class Esmf(MakefilePackage): version("develop", branch="develop") # generate chksum with spack checksum esmf@x.y.z version("8.4.0", sha256="28531810bf1ae78646cda6494a53d455d194400f19dccd13d6361871de42ed0f") - version( - "8.3.1", - sha256="6c39261e55dcdf9781cdfa344417b9606f7f961889d5ec626150f992f04f146d", - ) - version( - "8.3.0", - sha256="0ff43ede83d1ac6beabd3d5e2a646f7574174b28a48d1b9f2c318a054ba268fd", - ) + version("8.3.1", sha256="6c39261e55dcdf9781cdfa344417b9606f7f961889d5ec626150f992f04f146d") + version("8.3.0", sha256="0ff43ede83d1ac6beabd3d5e2a646f7574174b28a48d1b9f2c318a054ba268fd") version("8.3.0b09", commit="5b7e546c4b") - version( - "8.2.0", - sha256="3693987aba2c8ae8af67a0e222bea4099a48afe09b8d3d334106f9d7fc311485", - ) - version( - "8.1.1", - sha256="58c2e739356f21a1b32673aa17a713d3c4af9d45d572f4ba9168c357d586dc75", - ) - version( - "8.0.1", - sha256="9172fb73f3fe95c8188d889ee72fdadb4f978b1d969e1d8e401e8d106def1d84", - ) - version( - "8.0.0", - sha256="051dca45f9803d7e415c0ea146df15ce487fb55f0fce18ca61d96d4dba0c8774", - ) - version( - "7.1.0r", - sha256="ae9a5edb8d40ae97a35cbd4bd00b77061f995c77c43d36334dbb95c18b00a889", - ) + version("8.2.0", sha256="3693987aba2c8ae8af67a0e222bea4099a48afe09b8d3d334106f9d7fc311485") + version("8.1.1", sha256="58c2e739356f21a1b32673aa17a713d3c4af9d45d572f4ba9168c357d586dc75") + version("8.0.1", sha256="9172fb73f3fe95c8188d889ee72fdadb4f978b1d969e1d8e401e8d106def1d84") + version("8.0.0", sha256="051dca45f9803d7e415c0ea146df15ce487fb55f0fce18ca61d96d4dba0c8774") + version("7.1.0r", sha256="ae9a5edb8d40ae97a35cbd4bd00b77061f995c77c43d36334dbb95c18b00a889") variant("mpi", default=True, description="Build with MPI support") - variant( - "external-lapack", - default=False, - description="Build with external LAPACK support", - ) + variant("external-lapack", default=False, description="Build with external LAPACK support") variant("netcdf", default=True, description="Build with NetCDF support") variant("pnetcdf", default=True, description="Build with pNetCDF support", when="+mpi") variant("xerces", default=True, description="Build with Xerces support") @@ -76,17 +51,9 @@ class Esmf(MakefilePackage): description="Build with external parallelio library", when="@8.3.b09", ) + variant("pio", default=True, description="Enable Internal ParallelIO support", when="@:8.2.99") variant( - "pio", - default=True, - description="Enable Internal ParallelIO support", - when="@:8.2.99", - ) - variant( - "pio", - default=True, - description="Enable Internal ParallelIO support", - when="@8.3.0b09", + "pio", default=True, description="Enable Internal ParallelIO support", when="@8.3.0b09" ) variant("debug", default=False, description="Make a debuggable version of the library") variant("shared", default=True, description="Build shared library") diff --git a/var/spack/repos/builtin/packages/expat/package.py b/var/spack/repos/builtin/packages/expat/package.py index 8f837e3d1d..bbe2d12d36 100644 --- a/var/spack/repos/builtin/packages/expat/package.py +++ b/var/spack/repos/builtin/packages/expat/package.py @@ -114,10 +114,7 @@ class Expat(AutotoolsPackage): def configure_args(self): spec = self.spec - args = [ - "--without-docbook", - "--enable-static", - ] + args = ["--without-docbook", "--enable-static"] if "+libbsd" in spec and "@2.2.1:" in spec: args.append("--with-libbsd") return args diff --git a/var/spack/repos/builtin/packages/faiss/package.py b/var/spack/repos/builtin/packages/faiss/package.py index 924ade2e6f..e476f09706 100644 --- a/var/spack/repos/builtin/packages/faiss/package.py +++ b/var/spack/repos/builtin/packages/faiss/package.py @@ -128,7 +128,6 @@ class AutotoolsBuilder(spack.build_systems.autotools.AutotoolsBuilder): return args def build(self, pkg, spec, prefix): - make() if "+python" in self.spec: @@ -148,7 +147,6 @@ class AutotoolsBuilder(spack.build_systems.autotools.AutotoolsBuilder): make("demo_ivfpq_indexing_gpu") def install(self, pkg, spec, prefix): - make("install") if "+python" in self.spec: @@ -185,7 +183,6 @@ class AutotoolsBuilder(spack.build_systems.autotools.AutotoolsBuilder): @run_after("configure") def _fix_makefile(self): - # spack injects its own optimization flags makefile = FileFilter("makefile.inc") makefile.filter("CPUFLAGS = -mavx2 -mf16c", "#CPUFLAGS = -mavx2 -mf16c") diff --git a/var/spack/repos/builtin/packages/ffmpeg/package.py b/var/spack/repos/builtin/packages/ffmpeg/package.py index a286a67702..c0de7c2a0b 100644 --- a/var/spack/repos/builtin/packages/ffmpeg/package.py +++ b/var/spack/repos/builtin/packages/ffmpeg/package.py @@ -126,15 +126,7 @@ class Ffmpeg(AutotoolsPackage): xlib_opts = [] if spec.satisfies("@2.5:"): - xlib_opts.extend( - [ - "libxcb", - "libxcb-shape", - "libxcb-shm", - "libxcb-xfixes", - "xlib", - ] - ) + xlib_opts.extend(["libxcb", "libxcb-shape", "libxcb-shm", "libxcb-xfixes", "xlib"]) config_args += self.enable_or_disable_meta("X", xlib_opts) diff --git a/var/spack/repos/builtin/packages/ffte/package.py b/var/spack/repos/builtin/packages/ffte/package.py index 55988d39af..8b5b36c788 100644 --- a/var/spack/repos/builtin/packages/ffte/package.py +++ b/var/spack/repos/builtin/packages/ffte/package.py @@ -70,10 +70,7 @@ class Ffte(Package): else: lbnm = "libfftempi.a" - for spc, vrf, rs, ip in ( - ("+vector", vf, "v", 2), - ("+cuda", cuf, "cu", 3), - ): + for spc, vrf, rs, ip in (("+vector", vf, "v", 2), ("+cuda", cuf, "cu", 3)): if spc in spec: for f in vrf: # replace with variant versions orgf = f[:ip].replace(rs, "") + f[ip:] diff --git a/var/spack/repos/builtin/packages/fftw/package.py b/var/spack/repos/builtin/packages/fftw/package.py index b01d45b836..9b87254451 100644 --- a/var/spack/repos/builtin/packages/fftw/package.py +++ b/var/spack/repos/builtin/packages/fftw/package.py @@ -41,7 +41,6 @@ class FftwBase(AutotoolsPackage): @property def libs(self): - # Reduce repetitions of entries query_parameters = list(llnl.util.lang.dedupe(self.spec.last_query.extra_parameters)) diff --git a/var/spack/repos/builtin/packages/flamemaster/package.py b/var/spack/repos/builtin/packages/flamemaster/package.py index b881417835..045ee12092 100644 --- a/var/spack/repos/builtin/packages/flamemaster/package.py +++ b/var/spack/repos/builtin/packages/flamemaster/package.py @@ -151,10 +151,7 @@ class Flamemaster(CMakePackage): def cmake_args(self): spec = self.spec - args = [ - "-DCMAKE_C_COMPILER=%s" % spack_cc, - "-DCMAKE_CXX_COMPILER=%s" % spack_cxx, - ] + args = ["-DCMAKE_C_COMPILER=%s" % spack_cc, "-DCMAKE_CXX_COMPILER=%s" % spack_cxx] if spec.variants["build_type"].value == "Release": cxx_flags_release = [] diff --git a/var/spack/repos/builtin/packages/flex/package.py b/var/spack/repos/builtin/packages/flex/package.py index c99c8ee4ae..115e18c501 100644 --- a/var/spack/repos/builtin/packages/flex/package.py +++ b/var/spack/repos/builtin/packages/flex/package.py @@ -124,7 +124,6 @@ class Flex(AutotoolsPackage): (self.prefix.lib64, "libfl.a", "libl.a"), (self.prefix.lib64, "libfl." + dso, "libl." + dso), ): - if os.path.isdir(dir): with working_dir(dir): if os.path.isfile(flex) and not os.path.lexists(lex): diff --git a/var/spack/repos/builtin/packages/fms/package.py b/var/spack/repos/builtin/packages/fms/package.py index 39b96f30cf..b59e891b09 100644 --- a/var/spack/repos/builtin/packages/fms/package.py +++ b/var/spack/repos/builtin/packages/fms/package.py @@ -16,12 +16,7 @@ class Fms(CMakePackage): url = "https://github.com/NOAA-GFDL/FMS/archive/refs/tags/2022.04.tar.gz" git = "https://github.com/NOAA-GFDL/FMS.git" - maintainers( - "AlexanderRichert-NOAA", - "Hang-Lei-NOAA", - "edwardhartnett", - "rem1776", - ) + maintainers("AlexanderRichert-NOAA", "Hang-Lei-NOAA", "edwardhartnett", "rem1776") version("2022.04", sha256="f741479128afc2b93ca8291a4c5bcdb024a8cbeda1a26bf77a236c0f629e1b03") version("2022.03", sha256="42d2ac53d3c889a8177a6d7a132583364c0f6e5d5cbde0d980443b6797ad4838") diff --git a/var/spack/repos/builtin/packages/foam-extend/package.py b/var/spack/repos/builtin/packages/foam-extend/package.py index f2ec8e33ac..ac1c7be88e 100644 --- a/var/spack/repos/builtin/packages/foam-extend/package.py +++ b/var/spack/repos/builtin/packages/foam-extend/package.py @@ -93,10 +93,7 @@ class FoamExtend(Package): assets = [] # type: List[str] # Some user config settings - config = { - "label-size": False, # <- No int32/int64 support - "mplib": "USERMPI", # USERMPI - } + config = {"label-size": False, "mplib": "USERMPI"} # <- No int32/int64 support # USERMPI # The openfoam architecture, compiler information etc _foam_arch = None @@ -252,9 +249,7 @@ class FoamExtend(Package): """ # Content for etc/prefs.{csh,sh} self.etc_prefs = { - "000": { # Sort first - "compilerInstall": "System", - }, + "000": {"compilerInstall": "System"}, # Sort first "001": {}, "cmake": { "CMAKE_DIR": spec["cmake"].prefix, @@ -264,18 +259,9 @@ class FoamExtend(Package): "PYTHON_DIR": spec["python"].home, "PYTHON_BIN_DIR": spec["python"].home.bin, }, - "flex": { - "FLEX_SYSTEM": 1, - "FLEX_DIR": spec["flex"].prefix, - }, - "bison": { - "BISON_SYSTEM": 1, - "BISON_DIR": spec["flex"].prefix, - }, - "zlib": { - "ZLIB_SYSTEM": 1, - "ZLIB_DIR": spec["zlib"].prefix, - }, + "flex": {"FLEX_SYSTEM": 1, "FLEX_DIR": spec["flex"].prefix}, + "bison": {"BISON_SYSTEM": 1, "BISON_DIR": spec["flex"].prefix}, + "zlib": {"ZLIB_SYSTEM": 1, "ZLIB_DIR": spec["zlib"].prefix}, } # Adjust configuration via prefs - sort second self.etc_prefs["001"].update(self.foam_arch.foam_dict()) diff --git a/var/spack/repos/builtin/packages/fplo/package.py b/var/spack/repos/builtin/packages/fplo/package.py index ec3e78e5d7..c093e757cc 100644 --- a/var/spack/repos/builtin/packages/fplo/package.py +++ b/var/spack/repos/builtin/packages/fplo/package.py @@ -95,14 +95,7 @@ class Fplo(MakefilePackage): def build(self, spec, prefix): mmakefile = Executable(join_path(self.build_directory, "install", "MMakefile")) - mmakefile_args = [ - "-f90", - spack_fc, - "-cc", - spack_cc, - "-c+", - spack_cxx, - ] + mmakefile_args = ["-f90", spack_fc, "-cc", spack_cc, "-c+", spack_cxx] with working_dir(self.build_directory): # copy contents of bin @@ -144,13 +137,6 @@ class Fplo(MakefilePackage): with working_dir(self.prefix.bin): pattern = "^#!.*/usr/bin/perl" repl = "#!{0}".format(self.spec["perl"].command.path) - files = [ - "fconv2", - "fconvdens2", - "fdowngrad.pl", - "fout2in", - "grBhfat", - "grpop", - ] + files = ["fconv2", "fconvdens2", "fdowngrad.pl", "fout2in", "grBhfat", "grpop"] for file in files: filter_file(pattern, repl, *files, backup=False) diff --git a/var/spack/repos/builtin/packages/fujitsu-fftw/package.py b/var/spack/repos/builtin/packages/fujitsu-fftw/package.py index 975b0c6b89..b93ed50f92 100644 --- a/var/spack/repos/builtin/packages/fujitsu-fftw/package.py +++ b/var/spack/repos/builtin/packages/fujitsu-fftw/package.py @@ -117,7 +117,6 @@ class FujitsuFftw(FftwBase): # Different precisions must be configured and compiled one at a time configure = Executable("../configure") for precision in self.selected_precisions: - opts = (enable_precision[precision] or []) + options[:] with working_dir(precision, create=True): configure(*opts) diff --git a/var/spack/repos/builtin/packages/g2/package.py b/var/spack/repos/builtin/packages/g2/package.py index 0cc2df8dc9..2ff605df20 100644 --- a/var/spack/repos/builtin/packages/g2/package.py +++ b/var/spack/repos/builtin/packages/g2/package.py @@ -16,12 +16,7 @@ class G2(CMakePackage): homepage = "https://noaa-emc.github.io/NCEPLIBS-g2" url = "https://github.com/NOAA-EMC/NCEPLIBS-g2/archive/refs/tags/v3.4.3.tar.gz" - maintainers( - "t-brown", - "AlexanderRichert-NOAA", - "Hang-Lei-NOAA", - "edwardhartnett", - ) + maintainers("t-brown", "AlexanderRichert-NOAA", "Hang-Lei-NOAA", "edwardhartnett") version("3.4.5", sha256="c18e991c56964953d778632e2d74da13c4e78da35e8d04cb742a2ca4f52737b6") version("3.4.3", sha256="679ea99b225f08b168cbf10f4b29f529b5b011232f298a5442ce037ea84de17c") diff --git a/var/spack/repos/builtin/packages/g2c/package.py b/var/spack/repos/builtin/packages/g2c/package.py index 6ff55ed20d..215a054ab2 100644 --- a/var/spack/repos/builtin/packages/g2c/package.py +++ b/var/spack/repos/builtin/packages/g2c/package.py @@ -14,11 +14,7 @@ class G2c(CMakePackage): homepage = "https://github.com/NOAA-EMC/NCEPLIBS-g2c" url = "https://github.com/NOAA-EMC/NCEPLIBS-g2c/archive/refs/tags/v1.6.4.tar.gz" - maintainers( - "AlexanderRichert-NOAA", - "Hang-Lei-NOAA", - "edwardhartnett", - ) + maintainers("AlexanderRichert-NOAA", "Hang-Lei-NOAA", "edwardhartnett") variant("png", default=True) variant("jasper", default=True) diff --git a/var/spack/repos/builtin/packages/g2tmpl/package.py b/var/spack/repos/builtin/packages/g2tmpl/package.py index dbcd7bfd9a..55318f8a05 100644 --- a/var/spack/repos/builtin/packages/g2tmpl/package.py +++ b/var/spack/repos/builtin/packages/g2tmpl/package.py @@ -14,12 +14,7 @@ class G2tmpl(CMakePackage): homepage = "https://github.com/NOAA-EMC/NCEPLIBS-g2tmpl" url = "https://github.com/NOAA-EMC/NCEPLIBS-g2tmpl/archive/refs/tags/v1.10.0.tar.gz" - maintainers( - "t-brown", - "edwardhartnett", - "AlexanderRichert-NOAA", - "Hang-Lei-NOAA", - ) + maintainers("t-brown", "edwardhartnett", "AlexanderRichert-NOAA", "Hang-Lei-NOAA") version("1.10.2", sha256="4063361369f3691f75288c801fa9d1a2414908b7d6c07bbf69d4165802e2a7fc") version("1.10.1", sha256="0be425e5128fabb89915a92261aa75c27a46a3e115e00c686fc311321e5d1e2a") diff --git a/var/spack/repos/builtin/packages/gate/package.py b/var/spack/repos/builtin/packages/gate/package.py index 68a2ef1910..bbf1effb57 100644 --- a/var/spack/repos/builtin/packages/gate/package.py +++ b/var/spack/repos/builtin/packages/gate/package.py @@ -53,19 +53,9 @@ class Gate(CMakePackage): args = [] if "+rtk" in self.spec: - args.extend( - [ - "-DGATE_USE_ITK=ON", - "-DGATE_USE_RTK=ON", - ] - ) + args.extend(["-DGATE_USE_ITK=ON", "-DGATE_USE_RTK=ON"]) else: - args.extend( - [ - "-DGATE_USE_ITK=OFF", - "-DGATE_USE_RTK=OFF", - ] - ) + args.extend(["-DGATE_USE_ITK=OFF", "-DGATE_USE_RTK=OFF"]) return args diff --git a/var/spack/repos/builtin/packages/gatepet2stir/package.py b/var/spack/repos/builtin/packages/gatepet2stir/package.py index 77563b5751..420ea69ae0 100644 --- a/var/spack/repos/builtin/packages/gatepet2stir/package.py +++ b/var/spack/repos/builtin/packages/gatepet2stir/package.py @@ -25,9 +25,7 @@ class Gatepet2stir(QMakePackage): return url.format(version.underscored) def qmake_args(self): - args = [ - "QMAKE_LIBS=-ltcmalloc", - ] + args = ["QMAKE_LIBS=-ltcmalloc"] return args def install(self, spec, prefix): diff --git a/var/spack/repos/builtin/packages/gcc/package.py b/var/spack/repos/builtin/packages/gcc/package.py index 3675116952..ad77652ddb 100644 --- a/var/spack/repos/builtin/packages/gcc/package.py +++ b/var/spack/repos/builtin/packages/gcc/package.py @@ -765,17 +765,9 @@ class Gcc(AutotoolsPackage, GNUMirrorPackage): # enable_bootstrap if spec.satisfies("+bootstrap"): - options.extend( - [ - "--enable-bootstrap", - ] - ) + options.extend(["--enable-bootstrap"]) else: - options.extend( - [ - "--disable-bootstrap", - ] - ) + options.extend(["--disable-bootstrap"]) # Configure include and lib directories explicitly for these # dependencies since the short GCC option assumes that libraries @@ -876,7 +868,6 @@ class Gcc(AutotoolsPackage, GNUMirrorPackage): # self.build_directory = 'spack-build-nvptx' with working_dir("spack-build-nvptx", create=True): - options = [ "--prefix={0}".format(prefix), "--enable-languages={0}".format(",".join(spec.variants["languages"].value)), diff --git a/var/spack/repos/builtin/packages/gcta/package.py b/var/spack/repos/builtin/packages/gcta/package.py index a159ff68c7..f8c084d37a 100644 --- a/var/spack/repos/builtin/packages/gcta/package.py +++ b/var/spack/repos/builtin/packages/gcta/package.py @@ -53,10 +53,7 @@ class Gcta(CMakePackage): if self.spec.satisfies("@1.94.0beta:"): spectra = self.spec["spectra"].prefix.include boost = self.spec["boost"].prefix.include - deps = [ - self.define("SPECTRA_LIB", spectra), - self.define("BOOST_LIB", boost), - ] + deps = [self.define("SPECTRA_LIB", spectra), self.define("BOOST_LIB", boost)] args.extend(deps) if self.spec.satisfies("target=x86_64:"): diff --git a/var/spack/repos/builtin/packages/gdal/package.py b/var/spack/repos/builtin/packages/gdal/package.py index 53dfb9c6f2..b5e50e4f02 100644 --- a/var/spack/repos/builtin/packages/gdal/package.py +++ b/var/spack/repos/builtin/packages/gdal/package.py @@ -230,9 +230,7 @@ class Gdal(CMakePackage, AutotoolsPackage, PythonExtension): # Build system build_system( - conditional("cmake", when="@3.5:"), - conditional("autotools", when="@:3.5"), - default="cmake", + conditional("cmake", when="@3.5:"), conditional("autotools", when="@:3.5"), default="cmake" ) with when("build_system=cmake"): diff --git a/var/spack/repos/builtin/packages/gdbm/package.py b/var/spack/repos/builtin/packages/gdbm/package.py index 70cf5a54cb..a0882d5493 100644 --- a/var/spack/repos/builtin/packages/gdbm/package.py +++ b/var/spack/repos/builtin/packages/gdbm/package.py @@ -40,7 +40,6 @@ class Gdbm(AutotoolsPackage, GNUMirrorPackage): patch("gdbm.patch", when="@:1.18 %arm@21:") def configure_args(self): - # GDBM uses some non-standard GNU extensions, # enabled with -D_GNU_SOURCE. See: # https://patchwork.ozlabs.org/patch/771300/ diff --git a/var/spack/repos/builtin/packages/geant4-data/package.py b/var/spack/repos/builtin/packages/geant4-data/package.py index 84a40170e9..af43d0c768 100644 --- a/var/spack/repos/builtin/packages/geant4-data/package.py +++ b/var/spack/repos/builtin/packages/geant4-data/package.py @@ -78,12 +78,8 @@ class Geant4Data(BundlePackage): "g4incl@1.0", "g4ensdfstate@2.3", ], - "10.7.1:10.7": [ - "g4particlexs@3.1.1", - ], - "10.7.0": [ - "g4particlexs@3.1", - ], + "10.7.1:10.7": ["g4particlexs@3.1.1"], + "10.7.0": ["g4particlexs@3.1"], "10.6.0:10.6": [ "g4ndl@4.6", "g4emlow@7.9.1", @@ -121,12 +117,8 @@ class Geant4Data(BundlePackage): "g4abla@3.1", "g4ensdfstate@2.2", ], - "10.4.2:10.4": [ - "g4realsurface@2.1.1", - ], - "10.4.0:10.4.1": [ - "g4realsurface@2.1", - ], + "10.4.2:10.4": ["g4realsurface@2.1.1"], + "10.4.0:10.4.1": ["g4realsurface@2.1"], "10.3.0:10.3": [ "g4ndl@4.5", "g4emlow@6.50", @@ -137,14 +129,8 @@ class Geant4Data(BundlePackage): "g4abla@3.0", "g4ensdfstate@2.1", ], - "10.3.1:10.3": [ - "g4photonevaporation@4.3.2", - "g4radioactivedecay@5.1.1", - ], - "10.3.0": [ - "g4photonevaporation@4.3", - "g4radioactivedecay@5.1", - ], + "10.3.1:10.3": ["g4photonevaporation@4.3.2", "g4radioactivedecay@5.1.1"], + "10.3.0": ["g4photonevaporation@4.3", "g4radioactivedecay@5.1"], } for _vers, _dsets in _datasets.items(): diff --git a/var/spack/repos/builtin/packages/genie/package.py b/var/spack/repos/builtin/packages/genie/package.py index 2dc67f07dc..21c8310033 100644 --- a/var/spack/repos/builtin/packages/genie/package.py +++ b/var/spack/repos/builtin/packages/genie/package.py @@ -154,8 +154,4 @@ class Genie(Package): @property def _make_args(self): - return [ - "CC=c++", - "CXX=c++", - "LD=c++", - ] + return ["CC=c++", "CXX=c++", "LD=c++"] diff --git a/var/spack/repos/builtin/packages/gfsio/package.py b/var/spack/repos/builtin/packages/gfsio/package.py index 6172151b36..5d284e07e3 100644 --- a/var/spack/repos/builtin/packages/gfsio/package.py +++ b/var/spack/repos/builtin/packages/gfsio/package.py @@ -15,12 +15,7 @@ class Gfsio(CMakePackage): homepage = "https://github.com/NOAA-EMC/NCEPLIBS-gfsio" url = "https://github.com/NOAA-EMC/NCEPLIBS-gfsio/archive/refs/tags/v1.4.1.tar.gz" - maintainers( - "t-brown", - "AlexanderRichert-NOAA", - "Hang-Lei-NOAA", - "edwardhartnett", - ) + maintainers("t-brown", "AlexanderRichert-NOAA", "Hang-Lei-NOAA", "edwardhartnett") version("1.4.1", sha256="eab106302f520600decc4f9665d7c6a55e7b4901fab6d9ef40f29702b89b69b1") diff --git a/var/spack/repos/builtin/packages/ghostscript/package.py b/var/spack/repos/builtin/packages/ghostscript/package.py index a2aa354b22..ebceb52397 100644 --- a/var/spack/repos/builtin/packages/ghostscript/package.py +++ b/var/spack/repos/builtin/packages/ghostscript/package.py @@ -87,11 +87,7 @@ class Ghostscript(AutotoolsPackage): ) def configure_args(self): - args = [ - "--disable-compile-inits", - "--enable-dynamic", - "--with-system-libtiff", - ] + args = ["--disable-compile-inits", "--enable-dynamic", "--with-system-libtiff"] if self.spec.satisfies("@9.53:"): args.extend(self.with_or_without("tesseract")) diff --git a/var/spack/repos/builtin/packages/git/package.py b/var/spack/repos/builtin/packages/git/package.py index 554f5010ab..940869fffa 100644 --- a/var/spack/repos/builtin/packages/git/package.py +++ b/var/spack/repos/builtin/packages/git/package.py @@ -324,7 +324,7 @@ class Git(AutotoolsPackage): deprecated=True, ) - for (_version, _sha256_manpage) in { + for _version, _sha256_manpage in { "2.39.1": "b2d1b2c6cba2343934792c4409a370a8c684add1b3c0f9b757e71189b1a2e80e", "2.38.3": "9e5c924f6f1c961e09d1a8926c2775a158a0375a3311205d7a6176a3ed522272", "2.38.1": "fcb27484406b64419a9f9890e95ef29af08e1f911d9d368546eddc59a18e245d", diff --git a/var/spack/repos/builtin/packages/glpk/package.py b/var/spack/repos/builtin/packages/glpk/package.py index 5aa6ab4310..8266cf1563 100644 --- a/var/spack/repos/builtin/packages/glpk/package.py +++ b/var/spack/repos/builtin/packages/glpk/package.py @@ -25,7 +25,6 @@ class Glpk(AutotoolsPackage, GNUMirrorPackage): depends_on("gmp", when="+gmp") def configure_args(self): - options = [] if "+gmp" in self.spec: diff --git a/var/spack/repos/builtin/packages/glvis/package.py b/var/spack/repos/builtin/packages/glvis/package.py index 361207580c..ba2ff74423 100644 --- a/var/spack/repos/builtin/packages/glvis/package.py +++ b/var/spack/repos/builtin/packages/glvis/package.py @@ -155,13 +155,7 @@ class MakefileBuilder(spack.build_systems.makefile.MakefileBuilder): if self.spec.satisfies("@4.0:"): # Spack will inject the necessary include dirs and link paths via # its compiler wrapper, so we can skip them: - result += [ - "GLM_DIR=", - "SDL_DIR=", - "GLEW_DIR=", - "FREETYPE_DIR=", - "OPENGL_DIR=", - ] + result += ["GLM_DIR=", "SDL_DIR=", "GLEW_DIR=", "FREETYPE_DIR=", "OPENGL_DIR="] # Spack will not inject include dirs like /usr/include/freetype2, # so we need to do it ourselves: if spec["freetype"].external: diff --git a/var/spack/repos/builtin/packages/gnutls/package.py b/var/spack/repos/builtin/packages/gnutls/package.py index 2b72654dba..862b7846e7 100644 --- a/var/spack/repos/builtin/packages/gnutls/package.py +++ b/var/spack/repos/builtin/packages/gnutls/package.py @@ -59,9 +59,7 @@ class Gnutls(AutotoolsPackage): def configure_args(self): spec = self.spec - args = [ - "--enable-static", - ] + args = ["--enable-static"] if spec.satisfies("@3.5:"): # use shipped libraries, might be turned into variants @@ -80,20 +78,10 @@ class Gnutls(AutotoolsPackage): args.append("--disable-guile") if self.run_tests: - args.extend( - [ - "--enable-tests", - "--enable-valgrind-tests", - "--enable-full-test-suite", - ] - ) + args.extend(["--enable-tests", "--enable-valgrind-tests", "--enable-full-test-suite"]) else: args.extend( - [ - "--disable-tests", - "--disable-valgrind-tests", - "--disable-full-test-suite", - ] + ["--disable-tests", "--disable-valgrind-tests", "--disable-full-test-suite"] ) return args diff --git a/var/spack/repos/builtin/packages/go-bootstrap/package.py b/var/spack/repos/builtin/packages/go-bootstrap/package.py index 0a77c7ffc9..a787e7de36 100644 --- a/var/spack/repos/builtin/packages/go-bootstrap/package.py +++ b/var/spack/repos/builtin/packages/go-bootstrap/package.py @@ -79,10 +79,7 @@ class GoBootstrap(Package): # test files so that these tests don't cause false failures. # See: https://github.com/golang/go/issues/15694 test_suite_file = FileFilter(join_path("src", "run.bash")) - test_suite_file.filter( - r"^(.*)(\$GOROOT/src/cmd/api/run.go)(.*)$", - r"# \1\2\3", - ) + test_suite_file.filter(r"^(.*)(\$GOROOT/src/cmd/api/run.go)(.*)$", r"# \1\2\3") # Go uses a hardcoded limit of 4096 bytes for its printf functions. # This can cause environment variables to be truncated. diff --git a/var/spack/repos/builtin/packages/go-md2man/package.py b/var/spack/repos/builtin/packages/go-md2man/package.py index b7e3f70e3e..808f0e4891 100644 --- a/var/spack/repos/builtin/packages/go-md2man/package.py +++ b/var/spack/repos/builtin/packages/go-md2man/package.py @@ -34,7 +34,6 @@ class GoMd2man(Package): ln("-s", self.stage.source_path, join_path("src", "github.com", "cpuguy83", "go-md2man")) def install(self, spec, prefix): - with working_dir("src"): env["GOPATH"] = self.stage.source_path env["GO111MODULE"] = "off" diff --git a/var/spack/repos/builtin/packages/go/package.py b/var/spack/repos/builtin/packages/go/package.py index 7c83a14416..24f874efa1 100644 --- a/var/spack/repos/builtin/packages/go/package.py +++ b/var/spack/repos/builtin/packages/go/package.py @@ -98,10 +98,7 @@ class Go(Package): @when("@:1.4.3") def patch(self): test_suite_file = FileFilter(join_path("src", "run.bash")) - test_suite_file.filter( - r"^(.*)(\$GOROOT/src/cmd/api/run.go)(.*)$", - r"# \1\2\3", - ) + test_suite_file.filter(r"^(.*)(\$GOROOT/src/cmd/api/run.go)(.*)$", r"# \1\2\3") def install(self, spec, prefix): bash = which("bash") diff --git a/var/spack/repos/builtin/packages/gpi-2/package.py b/var/spack/repos/builtin/packages/gpi-2/package.py index 80e70bb7a5..79832f56e4 100644 --- a/var/spack/repos/builtin/packages/gpi-2/package.py +++ b/var/spack/repos/builtin/packages/gpi-2/package.py @@ -39,11 +39,9 @@ class Gpi2(AutotoolsPackage): variant("mpi", default=False, description="Enable MPI support") variant( "fabrics", - values=disjoint_sets( - ("auto",), - ("infiniband",), - ("ethernet",), - ).with_non_feature_values("auto", "none"), + values=disjoint_sets(("auto",), ("infiniband",), ("ethernet",)).with_non_feature_values( + "auto", "none" + ), description="List of fabrics that are enabled; " "'none' use GPI-2 default (infiniband), " "'infiniband' will use 'rdma-core' from Spack", diff --git a/var/spack/repos/builtin/packages/grid/package.py b/var/spack/repos/builtin/packages/grid/package.py index abfad00d81..e68e4955f7 100644 --- a/var/spack/repos/builtin/packages/grid/package.py +++ b/var/spack/repos/builtin/packages/grid/package.py @@ -89,12 +89,7 @@ class Grid(AutotoolsPackage): # and what linker to use. In many case it'd end up building the # code with support for MPI but without using `mpicxx` or linking to # `-lmpi`, wreaking havoc. Forcing `CXX` to be mpicxx should help. - args.extend( - [ - "CC={0}".format(spec["mpi"].mpicc), - "CXX={0}".format(spec["mpi"].mpicxx), - ] - ) + args.extend(["CC={0}".format(spec["mpi"].mpicc), "CXX={0}".format(spec["mpi"].mpicxx)]) args += self.enable_or_disable("timers") args += self.enable_or_disable("chroma") diff --git a/var/spack/repos/builtin/packages/gromacs/package.py b/var/spack/repos/builtin/packages/gromacs/package.py index 6d6624d1a3..7f8309c851 100644 --- a/var/spack/repos/builtin/packages/gromacs/package.py +++ b/var/spack/repos/builtin/packages/gromacs/package.py @@ -143,16 +143,8 @@ class Gromacs(CMakePackage): when="+cp2k", msg="GROMACS and CP2K should use the same blas, please disable bundled blas", ) - conflicts( - "%intel", - when="@2022:", - msg="GROMACS %intel support was removed in version 2022", - ) - conflicts( - "%gcc@:8", - when="@2023:", - msg="GROMACS requires GCC 9 or later since version 2023", - ) + conflicts("%intel", when="@2022:", msg="GROMACS %intel support was removed in version 2022") + conflicts("%gcc@:8", when="@2023:", msg="GROMACS requires GCC 9 or later since version 2023") conflicts( "intel-oneapi-mkl@:2021.2", when="@2023:", @@ -326,7 +318,6 @@ class Gromacs(CMakePackage): ) def cmake_args(self): - options = [] if "+mpi" in self.spec: diff --git a/var/spack/repos/builtin/packages/gtkplus/package.py b/var/spack/repos/builtin/packages/gtkplus/package.py index afa34d2078..63a55f52e0 100644 --- a/var/spack/repos/builtin/packages/gtkplus/package.py +++ b/var/spack/repos/builtin/packages/gtkplus/package.py @@ -96,20 +96,10 @@ class Gtkplus(MesonPackage): args = std_meson_args if self.spec.satisfies("platform=darwin"): - args.extend( - [ - "-Dx11_backend=false", - "-Dquartz_backend=true", - ] - ) + args.extend(["-Dx11_backend=false", "-Dquartz_backend=true"]) args.extend( - [ - "-Dgtk_doc=false", - "-Dman=false", - "-Dintrospection=true", - "-Dwayland_backend=false", - ] + ["-Dgtk_doc=false", "-Dman=false", "-Dintrospection=true", "-Dwayland_backend=false"] ) return args diff --git a/var/spack/repos/builtin/packages/hal/package.py b/var/spack/repos/builtin/packages/hal/package.py index f6a6d494ca..620adb7ee2 100644 --- a/var/spack/repos/builtin/packages/hal/package.py +++ b/var/spack/repos/builtin/packages/hal/package.py @@ -44,7 +44,6 @@ class Hal(MakefilePackage): env.set("sonLibRootDir", self.spec["sonlib"].prefix) def install(self, spec, prefix): - # First the easy bit install_tree("bin", prefix.bin) @@ -79,7 +78,6 @@ class Hal(MakefilePackage): ] for folder in haldirs: - install_tree(folder, join_path(self.prefix, "hal", folder)) install("__init__.py", join_path(self.prefix, "hal")) @@ -97,7 +95,6 @@ class Hal(MakefilePackage): ] for pyfile in halpyfiles: - install(pyfile, self.prefix.bin) # The hal directory is a python library so we set the path diff --git a/var/spack/repos/builtin/packages/halide/package.py b/var/spack/repos/builtin/packages/halide/package.py index 6765a56ec0..200b7f1b54 100644 --- a/var/spack/repos/builtin/packages/halide/package.py +++ b/var/spack/repos/builtin/packages/halide/package.py @@ -54,10 +54,7 @@ class Halide(CMakePackage, PythonExtension): depends_on("cmake@3.22:", type="build") depends_on("ninja", type="build") - depends_on( - "llvm@14.0.0:14+clang+lld build_type=Release", - type=("link", "run"), - ) + depends_on("llvm@14.0.0:14+clang+lld build_type=Release", type=("link", "run")) for v in _values: depends_on( "llvm targets={0}".format(v), type=("link", "run"), when="targets={0}".format(v) diff --git a/var/spack/repos/builtin/packages/hdf5-vfd-gds/package.py b/var/spack/repos/builtin/packages/hdf5-vfd-gds/package.py index bc846f411f..4d09d3d453 100644 --- a/var/spack/repos/builtin/packages/hdf5-vfd-gds/package.py +++ b/var/spack/repos/builtin/packages/hdf5-vfd-gds/package.py @@ -31,9 +31,7 @@ class Hdf5VfdGds(CMakePackage, CudaPackage): def cmake_args(self): # CMake options - args = [ - self.define("BUILD_TESTING", self.run_tests), - ] + args = [self.define("BUILD_TESTING", self.run_tests)] return args diff --git a/var/spack/repos/builtin/packages/hdf5/package.py b/var/spack/repos/builtin/packages/hdf5/package.py index 91dd15bfbb..9f8c6ead27 100644 --- a/var/spack/repos/builtin/packages/hdf5/package.py +++ b/var/spack/repos/builtin/packages/hdf5/package.py @@ -23,14 +23,7 @@ class Hdf5(CMakePackage): list_url = "https://support.hdfgroup.org/ftp/HDF5/releases" list_depth = 3 git = "https://github.com/HDFGroup/hdf5.git" - maintainers( - "lrknox", - "brtnfld", - "byrnHDF", - "gheber", - "hyoklee", - "lkurz", - ) + maintainers("lrknox", "brtnfld", "byrnHDF", "gheber", "hyoklee", "lkurz") tags = ["e4s", "windows"] executables = ["^h5cc$", "^h5pcc$"] @@ -442,11 +435,7 @@ class Hdf5(CMakePackage): "libhdf5_java", "libhdf5", ], - ("cxx", "hl"): [ - "libhdf5_hl_cpp", - "libhdf5_hl", - "libhdf5", - ], + ("cxx", "hl"): ["libhdf5_hl_cpp", "libhdf5_hl", "libhdf5"], ("fortran", "hl"): [ "libhdf5_hl_fortran", "libhdf5_hl_f90cstub", @@ -455,29 +444,11 @@ class Hdf5(CMakePackage): "libhdf5_f90cstub", "libhdf5", ], - ("hl",): [ - "libhdf5_hl", - "libhdf5", - ], - ("cxx", "fortran"): [ - "libhdf5_fortran", - "libhdf5_f90cstub", - "libhdf5_cpp", - "libhdf5", - ], - ("cxx",): [ - "libhdf5_cpp", - "libhdf5", - ], - ("fortran",): [ - "libhdf5_fortran", - "libhdf5_f90cstub", - "libhdf5", - ], - ("java",): [ - "libhdf5_java", - "libhdf5", - ], + ("hl",): ["libhdf5_hl", "libhdf5"], + ("cxx", "fortran"): ["libhdf5_fortran", "libhdf5_f90cstub", "libhdf5_cpp", "libhdf5"], + ("cxx",): ["libhdf5_cpp", "libhdf5"], + ("fortran",): ["libhdf5_fortran", "libhdf5_f90cstub", "libhdf5"], + ("java",): ["libhdf5_java", "libhdf5"], } # Turn the query into the appropriate key diff --git a/var/spack/repos/builtin/packages/heaptrack/package.py b/var/spack/repos/builtin/packages/heaptrack/package.py index 6e9ffdfb4e..4d935efe82 100644 --- a/var/spack/repos/builtin/packages/heaptrack/package.py +++ b/var/spack/repos/builtin/packages/heaptrack/package.py @@ -23,7 +23,6 @@ class Heaptrack(CMakePackage): depends_on("zstd") def cmake_args(self): - spec = self.spec cmake_args = [ diff --git a/var/spack/repos/builtin/packages/heffte/package.py b/var/spack/repos/builtin/packages/heffte/package.py index 90739c30c7..c19a92edd6 100644 --- a/var/spack/repos/builtin/packages/heffte/package.py +++ b/var/spack/repos/builtin/packages/heffte/package.py @@ -141,9 +141,7 @@ class Heffte(CMakePackage, CudaPackage, ROCmPackage): # using the tests copied from <prefix>/share/heffte/testing cmake_dir = self.test_suite.current_test_cache_dir.testing - options = [ - cmake_dir, - ] + options = [cmake_dir] if "+rocm" in self.spec: options.append( "-Dhip_DIR=" + join_path(self.spec["hip"].prefix, "lib", "cmake", "hip") diff --git a/var/spack/repos/builtin/packages/helics/package.py b/var/spack/repos/builtin/packages/helics/package.py index 532f636fe9..da6e1994a8 100644 --- a/var/spack/repos/builtin/packages/helics/package.py +++ b/var/spack/repos/builtin/packages/helics/package.py @@ -125,10 +125,7 @@ class Helics(CMakePackage): def cmake_args(self): spec = self.spec from_variant = self.define_from_variant - args = [ - "-DHELICS_BUILD_EXAMPLES=OFF", - "-DHELICS_BUILD_TESTS=OFF", - ] + args = ["-DHELICS_BUILD_EXAMPLES=OFF", "-DHELICS_BUILD_TESTS=OFF"] # HELICS core type CMake options # Options were renamed in v3 diff --git a/var/spack/repos/builtin/packages/hiop/package.py b/var/spack/repos/builtin/packages/hiop/package.py index 4a5632e1f1..9e2d45629e 100644 --- a/var/spack/repos/builtin/packages/hiop/package.py +++ b/var/spack/repos/builtin/packages/hiop/package.py @@ -89,14 +89,10 @@ class Hiop(CMakePackage, CudaPackage, ROCmPackage): depends_on("umpire {0}".format(rocm_dep), when="+raja {0}".format(rocm_dep)) depends_on("ginkgo {0}".format(rocm_dep), when="+ginkgo {0}".format(rocm_dep)) - magma_ver_constraints = ( - ("2.5.4", "0.4"), - ("2.6.1", "0.4.6"), - ("2.6.2", "0.5.4"), - ) + magma_ver_constraints = (("2.5.4", "0.4"), ("2.6.1", "0.4.6"), ("2.6.2", "0.5.4")) # Depends on Magma when +rocm or +cuda - for (magma_v, hiop_v) in magma_ver_constraints: + for magma_v, hiop_v in magma_ver_constraints: depends_on("magma@{0}:".format(magma_v), when="@{0}:+cuda".format(hiop_v)) depends_on("magma@{0}:".format(magma_v), when="@{0}:+rocm".format(hiop_v)) diff --git a/var/spack/repos/builtin/packages/hip/package.py b/var/spack/repos/builtin/packages/hip/package.py index 8fe976bed7..d135b3e48b 100644 --- a/var/spack/repos/builtin/packages/hip/package.py +++ b/var/spack/repos/builtin/packages/hip/package.py @@ -291,10 +291,7 @@ class Hip(CMakePackage): ".5.2.1.patch", when="@5.2.1:5.2.3", ) - patch( - "0013-remove-compiler-rt-linkage-for-host.5.3.0.patch", - when="@5.3.0:", - ) + patch("0013-remove-compiler-rt-linkage-for-host.5.3.0.patch", when="@5.3.0:") # See https://github.com/ROCm-Developer-Tools/HIP/pull/2141 patch("0002-Fix-detection-of-HIP_CLANG_ROOT.patch", when="@:3.9.0") diff --git a/var/spack/repos/builtin/packages/hipfft/package.py b/var/spack/repos/builtin/packages/hipfft/package.py index d7d39b78c1..b0058339ff 100644 --- a/var/spack/repos/builtin/packages/hipfft/package.py +++ b/var/spack/repos/builtin/packages/hipfft/package.py @@ -111,7 +111,7 @@ class Hipfft(CMakePackage): def cmake_args(self): args = [ # Make sure find_package(HIP) finds the module. - self.define("BUILD_CLIENTS_SAMPLES", "OFF"), + self.define("BUILD_CLIENTS_SAMPLES", "OFF") ] if self.spec.satisfies("^cmake@3.21.0:3.21.2"): diff --git a/var/spack/repos/builtin/packages/hipsycl/package.py b/var/spack/repos/builtin/packages/hipsycl/package.py index bff4ead8b4..95e95f0c8a 100644 --- a/var/spack/repos/builtin/packages/hipsycl/package.py +++ b/var/spack/repos/builtin/packages/hipsycl/package.py @@ -27,17 +27,9 @@ class Hipsycl(CMakePackage): version("0.9.3", commit="51507bad524c33afe8b124804091b10fa25618dc", submodules=True) version("0.9.2", commit="49fd02499841ae884c61c738610e58c27ab51fdb", submodules=True) version("0.9.1", commit="fe8465cd5399a932f7221343c07c9942b0fe644c", submodules=True) - version( - "0.8.0", - commit="2daf8407e49dd32ebd1c266e8e944e390d28b22a", - submodules=True, - ) + version("0.8.0", commit="2daf8407e49dd32ebd1c266e8e944e390d28b22a", submodules=True) - variant( - "cuda", - default=False, - description="Enable CUDA backend for SYCL kernels", - ) + variant("cuda", default=False, description="Enable CUDA backend for SYCL kernels") depends_on("cmake@3.5:", type="build") depends_on("boost +filesystem", when="@:0.8") diff --git a/var/spack/repos/builtin/packages/hiredis/package.py b/var/spack/repos/builtin/packages/hiredis/package.py index ce7c203301..69191203bd 100644 --- a/var/spack/repos/builtin/packages/hiredis/package.py +++ b/var/spack/repos/builtin/packages/hiredis/package.py @@ -25,9 +25,7 @@ class Hiredis(MakefilePackage, CMakePackage): version("0.13.2", sha256="b0cf73ebe039fe25ecaaa881acdda8bdc393ed997e049b04fc20865835953694") build_system( - conditional("cmake", when="@1:"), - conditional("makefile", when="@:0"), - default="cmake", + conditional("cmake", when="@1:"), conditional("makefile", when="@:0"), default="cmake" ) variant("ssl", default=False, description="Builds with SSL enabled") @@ -45,10 +43,7 @@ class MakefileBuilder(spack.build_systems.makefile.MakefileBuilder): def build_targets(self): use_ssl = 1 if "+ssl" in self.spec else 0 run_test_async = 1 if "+test_async" in self.spec else 0 - return [ - "USE_SSL={0}".format(use_ssl), - "TEST_ASYNC={0}".format(run_test_async), - ] + return ["USE_SSL={0}".format(use_ssl), "TEST_ASYNC={0}".format(run_test_async)] def install(self, pkg, spec, prefix): make("PREFIX={0}".format(prefix), "install") diff --git a/var/spack/repos/builtin/packages/hisat2/package.py b/var/spack/repos/builtin/packages/hisat2/package.py index 68a9807038..53e7deb9ca 100644 --- a/var/spack/repos/builtin/packages/hisat2/package.py +++ b/var/spack/repos/builtin/packages/hisat2/package.py @@ -81,18 +81,13 @@ class Hisat2(MakefilePackage): with working_dir(self.prefix.bin): pattern = "^#!.*/usr/bin/env python" repl = "#!{0}".format(self.spec["python"].command.path) - files = [ - "hisat2-build", - "hisat2-inspect", - ] + files = ["hisat2-build", "hisat2-inspect"] for file in files: filter_file(pattern, repl, *files, backup=False) pattern = "^#!.*/usr/bin/env perl" repl = "#!{0}".format(self.spec["perl"].command.path) - files = [ - "hisat2", - ] + files = ["hisat2"] for file in files: filter_file(pattern, repl, *files, backup=False) diff --git a/var/spack/repos/builtin/packages/hpctoolkit/package.py b/var/spack/repos/builtin/packages/hpctoolkit/package.py index 1a193d6ccc..bb87c841af 100644 --- a/var/spack/repos/builtin/packages/hpctoolkit/package.py +++ b/var/spack/repos/builtin/packages/hpctoolkit/package.py @@ -48,9 +48,7 @@ class Hpctoolkit(AutotoolsPackage): # version of hpcprof. Cray needs a separate option because an # external MPI module in packages.yaml doesn't work. variant( - "cray", - default=False, - description="Build hpcprof-mpi for Cray systems (requires --dirty).", + "cray", default=False, description="Build hpcprof-mpi for Cray systems (requires --dirty)." ) variant( diff --git a/var/spack/repos/builtin/packages/hpx/package.py b/var/spack/repos/builtin/packages/hpx/package.py index 9bb816079a..43bdcb50d0 100644 --- a/var/spack/repos/builtin/packages/hpx/package.py +++ b/var/spack/repos/builtin/packages/hpx/package.py @@ -105,8 +105,7 @@ class Hpx(CMakePackage, CudaPackage, ROCmPackage): depends_on("asio", when="@1.7:") for cxxstd in cxxstds: depends_on( - "asio cxxstd={0}".format(map_cxxstd(cxxstd)), - when="cxxstd={0} ^asio".format(cxxstd), + "asio cxxstd={0}".format(map_cxxstd(cxxstd)), when="cxxstd={0} ^asio".format(cxxstd) ) depends_on("gperftools", when="malloc=tcmalloc") diff --git a/var/spack/repos/builtin/packages/hypre/package.py b/var/spack/repos/builtin/packages/hypre/package.py index 151c859e53..e34b951c66 100644 --- a/var/spack/repos/builtin/packages/hypre/package.py +++ b/var/spack/repos/builtin/packages/hypre/package.py @@ -215,13 +215,7 @@ class Hypre(AutotoolsPackage, CudaPackage, ROCmPackage): configure_args.extend(self.enable_or_disable("debug")) if "+cuda" in spec: - configure_args.extend( - [ - "--with-cuda", - "--enable-curand", - "--enable-cusparse", - ] - ) + configure_args.extend(["--with-cuda", "--enable-curand", "--enable-cusparse"]) cuda_arch_vals = spec.variants["cuda_arch"].value if cuda_arch_vals: cuda_arch_sorted = list(sorted(cuda_arch_vals, reverse=True)) @@ -234,13 +228,7 @@ class Hypre(AutotoolsPackage, CudaPackage, ROCmPackage): else: configure_args.append("--enable-cub") else: - configure_args.extend( - [ - "--without-cuda", - "--disable-curand", - "--disable-cusparse", - ] - ) + configure_args.extend(["--without-cuda", "--disable-curand", "--disable-cusparse"]) if "@:2.20.99" in spec: configure_args.append("--disable-cub") @@ -264,13 +252,7 @@ class Hypre(AutotoolsPackage, CudaPackage, ROCmPackage): rocm_arch = rocm_arch_sorted[0] configure_args.append("--with-gpu-arch={0}".format(rocm_arch)) else: - configure_args.extend( - [ - "--without-hip", - "--disable-rocrand", - "--disable-rocsparse", - ] - ) + configure_args.extend(["--without-hip", "--disable-rocrand", "--disable-rocsparse"]) if "+sycl" in spec: configure_args.append("--with-scyl") diff --git a/var/spack/repos/builtin/packages/ibm-java/package.py b/var/spack/repos/builtin/packages/ibm-java/package.py index 6ac099892d..de2b87b1ee 100644 --- a/var/spack/repos/builtin/packages/ibm-java/package.py +++ b/var/spack/repos/builtin/packages/ibm-java/package.py @@ -56,7 +56,7 @@ class IbmJava(Package): # There are separate tar files for big and little-endian machine # types. And no, this won't work cross platform. - for (ver, mach, sha) in version_list: + for ver, mach, sha in version_list: if mach == platform.machine(): version(ver, sha256=sha, expand=False) diff --git a/var/spack/repos/builtin/packages/idl/package.py b/var/spack/repos/builtin/packages/idl/package.py index 1954029c45..72552282cb 100644 --- a/var/spack/repos/builtin/packages/idl/package.py +++ b/var/spack/repos/builtin/packages/idl/package.py @@ -24,7 +24,6 @@ class Idl(Package): license_required = True def install(self, spec, prefix): - # replace default install dir to self.prefix by editing answer file filter_file("/usr/local/harris", prefix, "silent/idl_answer_file") @@ -33,7 +32,6 @@ class Idl(Package): install_script("-s", input="silent/idl_answer_file") def setup_run_environment(self, env): - # set necessary environment variables env.prepend_path("EXELIS_DIR", self.prefix) env.prepend_path("IDL_DIR", self.prefix.idl) diff --git a/var/spack/repos/builtin/packages/intel-llvm/package.py b/var/spack/repos/builtin/packages/intel-llvm/package.py index 21529eaae6..2338fe2c7f 100644 --- a/var/spack/repos/builtin/packages/intel-llvm/package.py +++ b/var/spack/repos/builtin/packages/intel-llvm/package.py @@ -35,7 +35,6 @@ class IntelLlvm(CMakePackage): root_cmakelists_dir = "llvm" def cmake_args(self): - cmake_args = [] cmake_args.extend( diff --git a/var/spack/repos/builtin/packages/intel-oneapi-mpi/package.py b/var/spack/repos/builtin/packages/intel-oneapi-mpi/package.py index e04173b817..a7872d1034 100644 --- a/var/spack/repos/builtin/packages/intel-oneapi-mpi/package.py +++ b/var/spack/repos/builtin/packages/intel-oneapi-mpi/package.py @@ -17,9 +17,7 @@ class IntelOneapiMpi(IntelOneApiLibraryPackage): """ - maintainers( - "rscohn2", - ) + maintainers("rscohn2") homepage = "https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/mpi-library.html" diff --git a/var/spack/repos/builtin/packages/ip/package.py b/var/spack/repos/builtin/packages/ip/package.py index 84dc95f72f..b92fc2b85d 100644 --- a/var/spack/repos/builtin/packages/ip/package.py +++ b/var/spack/repos/builtin/packages/ip/package.py @@ -14,12 +14,7 @@ class Ip(CMakePackage): homepage = "https://noaa-emc.github.io/NCEPLIBS-ip" url = "https://github.com/NOAA-EMC/NCEPLIBS-ip/archive/refs/tags/v3.3.3.tar.gz" - maintainers( - "t-brown", - "AlexanderRichert-NOAA", - "edwardhartnett", - "Hang-Lei-NOAA", - ) + maintainers("t-brown", "AlexanderRichert-NOAA", "edwardhartnett", "Hang-Lei-NOAA") version("4.0.0", sha256="a2ef0cc4e4012f9cb0389fab6097407f4c623eb49772d96eb80c44f804aa86b8") version( diff --git a/var/spack/repos/builtin/packages/ip2/package.py b/var/spack/repos/builtin/packages/ip2/package.py index b70cc35311..13d6e15dbe 100644 --- a/var/spack/repos/builtin/packages/ip2/package.py +++ b/var/spack/repos/builtin/packages/ip2/package.py @@ -17,12 +17,7 @@ class Ip2(CMakePackage): homepage = "https://github.com/NOAA-EMC/NCEPLIBS-ip2" url = "https://github.com/NOAA-EMC/NCEPLIBS-ip2/archive/refs/tags/v1.1.2.tar.gz" - maintainers( - "t-brown", - "AlexanderRichert-NOAA", - "Hang-Lei-NOAA", - "edwardhartnett", - ) + maintainers("t-brown", "AlexanderRichert-NOAA", "Hang-Lei-NOAA", "edwardhartnett") version("1.1.2", sha256="73c6beec8fd463ec7ccba3633d8c5d53d385c43d507367efde918c2db0af42ab") diff --git a/var/spack/repos/builtin/packages/ipopt/package.py b/var/spack/repos/builtin/packages/ipopt/package.py index 7f616f939b..640fa48d52 100644 --- a/var/spack/repos/builtin/packages/ipopt/package.py +++ b/var/spack/repos/builtin/packages/ipopt/package.py @@ -72,11 +72,7 @@ class Ipopt(AutotoolsPackage): blas_lib = spec["blas"].libs.ld_flags lapack_lib = spec["lapack"].libs.ld_flags - args = [ - "--prefix=%s" % self.prefix, - "--enable-shared", - "coin_skip_warn_cxxflags=yes", - ] + args = ["--prefix=%s" % self.prefix, "--enable-shared", "coin_skip_warn_cxxflags=yes"] if spec.satisfies("@:3.12.13"): args.extend( @@ -88,11 +84,7 @@ class Ipopt(AutotoolsPackage): ] ) else: - args.extend( - [ - "--with-lapack-lflags={0} {1}".format(lapack_lib, blas_lib), - ] - ) + args.extend(["--with-lapack-lflags={0} {1}".format(lapack_lib, blas_lib)]) if "+mumps" in spec: mumps_dir = spec["mumps"].prefix diff --git a/var/spack/repos/builtin/packages/iq-tree/package.py b/var/spack/repos/builtin/packages/iq-tree/package.py index b719f6a875..40f9e0b334 100644 --- a/var/spack/repos/builtin/packages/iq-tree/package.py +++ b/var/spack/repos/builtin/packages/iq-tree/package.py @@ -32,7 +32,6 @@ class IqTree(CMakePackage): depends_on("mpi", when="+mpi") def cmake_args(self): - spec = self.spec args = [] iqflags = [] diff --git a/var/spack/repos/builtin/packages/kadath/package.py b/var/spack/repos/builtin/packages/kadath/package.py index 4805c6f779..ae26699704 100644 --- a/var/spack/repos/builtin/packages/kadath/package.py +++ b/var/spack/repos/builtin/packages/kadath/package.py @@ -64,7 +64,7 @@ class Kadath(CMakePackage): def cmake_args(self): return [ # kadath uses a non-standard option to enable MPI - self.define_from_variant("PAR_VERSION", "mpi"), + self.define_from_variant("PAR_VERSION", "mpi") ] def cmake(self, spec, prefix): diff --git a/var/spack/repos/builtin/packages/kokkos-legacy/package.py b/var/spack/repos/builtin/packages/kokkos-legacy/package.py index 4a32f40c86..4bf7e85844 100644 --- a/var/spack/repos/builtin/packages/kokkos-legacy/package.py +++ b/var/spack/repos/builtin/packages/kokkos-legacy/package.py @@ -185,34 +185,13 @@ class KokkosLegacy(Package): ) # Checks on Kokkos version and Kokkos options - conflicts( - "+aggressive_vectorization", - when="@:2.0", - ) - conflicts( - "+disable_profiling", - when="@:2.0", - ) - conflicts( - "+disable_dualview_modify_check", - when="@:2.03.04", - ) - conflicts( - "+enable_profile_load_print", - when="@:2.03.04", - ) - conflicts( - "+compiler_warnings", - when="@:2.03.14", - ) - conflicts( - "+disable_deprecated_code", - when="@:2.5", - ) - conflicts( - "+enable_eti", - when="@:2.6", - ) + conflicts("+aggressive_vectorization", when="@:2.0") + conflicts("+disable_profiling", when="@:2.0") + conflicts("+disable_dualview_modify_check", when="@:2.03.04") + conflicts("+enable_profile_load_print", when="@:2.03.04") + conflicts("+compiler_warnings", when="@:2.03.14") + conflicts("+disable_deprecated_code", when="@:2.5") + conflicts("+enable_eti", when="@:2.6") # Check that we haven't specified a gpu architecture # without specifying CUDA @@ -256,10 +235,7 @@ class KokkosLegacy(Package): def install(self, spec, prefix): generate = which(join_path(self.stage.source_path, "generate_makefile.bash")) with working_dir("build", create=True): - g_args = [ - "--prefix=%s" % prefix, - "--with-hwloc=%s" % spec["hwloc"].prefix, - ] + g_args = ["--prefix=%s" % prefix, "--with-hwloc=%s" % spec["hwloc"].prefix] arch_args = [] kokkos_options_args = [] cuda_options_args = [] diff --git a/var/spack/repos/builtin/packages/lapackpp/package.py b/var/spack/repos/builtin/packages/lapackpp/package.py index bca19fa508..4e2e8f01f1 100644 --- a/var/spack/repos/builtin/packages/lapackpp/package.py +++ b/var/spack/repos/builtin/packages/lapackpp/package.py @@ -53,7 +53,7 @@ class Lapackpp(CMakePackage, CudaPackage, ROCmPackage): variant("shared", default=True, description="Build shared library") # Match each LAPACK++ version to a specific BLAS++ version - for (lpp_ver, bpp_ver) in _versions: + for lpp_ver, bpp_ver in _versions: depends_on("blaspp@" + bpp_ver, when="@" + lpp_ver) depends_on("blaspp ~cuda", when="~cuda") diff --git a/var/spack/repos/builtin/packages/lbann/package.py b/var/spack/repos/builtin/packages/lbann/package.py index 21fcc90885..e8d47c0f1b 100644 --- a/var/spack/repos/builtin/packages/lbann/package.py +++ b/var/spack/repos/builtin/packages/lbann/package.py @@ -274,17 +274,10 @@ class Lbann(CMakePackage, CudaPackage, ROCmPackage): cppflags.append("-DLBANN_SET_EL_RNG") cppflags.append("-std=c++17") args = [] - args.extend( - [ - "-DCMAKE_CXX_FLAGS=%s" % " ".join(cppflags), - "-DLBANN_VERSION=spack", - ] - ) + args.extend(["-DCMAKE_CXX_FLAGS=%s" % " ".join(cppflags), "-DLBANN_VERSION=spack"]) if "+numpy" in spec: - args.append( - "-DCNPY_DIR={0}".format(spec["cnpy"].prefix), - ) + args.append("-DCNPY_DIR={0}".format(spec["cnpy"].prefix)) # Use lld high performance linker if "+lld" in spec: @@ -428,11 +421,7 @@ class Lbann(CMakePackage, CudaPackage, ROCmPackage): ] ) if "platform=cray" in spec: - args.extend( - [ - "-DMPI_ASSUME_NO_BUILTIN_MPI=ON", - ] - ) + args.extend(["-DMPI_ASSUME_NO_BUILTIN_MPI=ON"]) archs = self.spec.variants["amdgpu_target"].value if archs != "none": arch_str = ",".join(archs) diff --git a/var/spack/repos/builtin/packages/lcals/package.py b/var/spack/repos/builtin/packages/lcals/package.py index 3b0a94ed8f..221ab2a967 100644 --- a/var/spack/repos/builtin/packages/lcals/package.py +++ b/var/spack/repos/builtin/packages/lcals/package.py @@ -33,7 +33,6 @@ class Lcals(MakefilePackage): @property def build_targets(self): - targets = [] cxxflags = "-std=c++0x " diff --git a/var/spack/repos/builtin/packages/ldc-bootstrap/package.py b/var/spack/repos/builtin/packages/ldc-bootstrap/package.py index 0d701bafa9..e41ad9ae24 100644 --- a/var/spack/repos/builtin/packages/ldc-bootstrap/package.py +++ b/var/spack/repos/builtin/packages/ldc-bootstrap/package.py @@ -32,7 +32,6 @@ class LdcBootstrap(CMakePackage): depends_on("binutils") def setup_dependent_build_environment(self, env, dep_spec): - # The code below relies on this function being executed after the # environment has been sanitized (because LD_LIBRARY_PATH is among # the variables that get unset) diff --git a/var/spack/repos/builtin/packages/ldc/package.py b/var/spack/repos/builtin/packages/ldc/package.py index 9f120970d3..9d843221e7 100644 --- a/var/spack/repos/builtin/packages/ldc/package.py +++ b/var/spack/repos/builtin/packages/ldc/package.py @@ -47,7 +47,6 @@ class Ldc(CMakePackage): @run_after("install") def add_rpath_to_conf(self): - # Here we modify the configuration file for ldc2 to inject flags # that will rpath the standard library location diff --git a/var/spack/repos/builtin/packages/legion/package.py b/var/spack/repos/builtin/packages/legion/package.py index 1a5feb022b..45aec55b5e 100644 --- a/var/spack/repos/builtin/packages/legion/package.py +++ b/var/spack/repos/builtin/packages/legion/package.py @@ -395,13 +395,7 @@ class Legion(CMakePackage, ROCmPackage): options.append("-DLegion_USE_Fortran=ON") if spec.variants["build_type"].value == "Debug": - cmake_cxx_flags.extend( - [ - "-DDEBUG_REALM", - "-DDEBUG_LEGION", - "-ggdb", - ] - ) + cmake_cxx_flags.extend(["-DDEBUG_REALM", "-DDEBUG_LEGION", "-ggdb"]) maxdims = int(spec.variants["max_dims"].value) # TODO: sanity check if maxdims < 0 || > 9??? diff --git a/var/spack/repos/builtin/packages/libabigail/package.py b/var/spack/repos/builtin/packages/libabigail/package.py index fdca568502..43585f1b31 100644 --- a/var/spack/repos/builtin/packages/libabigail/package.py +++ b/var/spack/repos/builtin/packages/libabigail/package.py @@ -47,6 +47,5 @@ class Libabigail(AutotoolsPackage): def autoreconf(self, spec, prefix): autoreconf = which("autoreconf") with working_dir(self.configure_directory): - # We need force (f) because without it, looks for RedHat library autoreconf("-ivf") diff --git a/var/spack/repos/builtin/packages/libbeagle/package.py b/var/spack/repos/builtin/packages/libbeagle/package.py index df94a17a78..8b177a9438 100644 --- a/var/spack/repos/builtin/packages/libbeagle/package.py +++ b/var/spack/repos/builtin/packages/libbeagle/package.py @@ -65,7 +65,7 @@ class Libbeagle(AutotoolsPackage, CudaPackage): args = [ # Since spack will inject architecture flags turn off -march=native # when building libbeagle. - "--disable-march-native", + "--disable-march-native" ] if "+cuda" in self.spec: diff --git a/var/spack/repos/builtin/packages/libcroco/package.py b/var/spack/repos/builtin/packages/libcroco/package.py index d333854f77..685fb9f218 100644 --- a/var/spack/repos/builtin/packages/libcroco/package.py +++ b/var/spack/repos/builtin/packages/libcroco/package.py @@ -39,11 +39,7 @@ class Libcroco(AutotoolsPackage): ) else: config_args.extend( - [ - "--disable-gtk-doc", - "--disable-gtk-doc-html", - "--disable-gtk-doc-pdf", - ] + ["--disable-gtk-doc", "--disable-gtk-doc-html", "--disable-gtk-doc-pdf"] ) # macOS ld does not support this flag diff --git a/var/spack/repos/builtin/packages/libfms/package.py b/var/spack/repos/builtin/packages/libfms/package.py index 2dcb0beef2..81eb5ce7d3 100644 --- a/var/spack/repos/builtin/packages/libfms/package.py +++ b/var/spack/repos/builtin/packages/libfms/package.py @@ -27,11 +27,7 @@ class Libfms(CMakePackage): def cmake_args(self): args = [] - args.extend( - [ - self.define_from_variant("BUILD_SHARED_LIBS", "shared"), - ] - ) + args.extend([self.define_from_variant("BUILD_SHARED_LIBS", "shared")]) if "+conduit" in self.spec: args.extend([self.define("CONDUIT_DIR", self.spec["conduit"].prefix)]) diff --git a/var/spack/repos/builtin/packages/libgeotiff/package.py b/var/spack/repos/builtin/packages/libgeotiff/package.py index 415ed079ab..60adf0acaf 100644 --- a/var/spack/repos/builtin/packages/libgeotiff/package.py +++ b/var/spack/repos/builtin/packages/libgeotiff/package.py @@ -55,9 +55,7 @@ class Libgeotiff(AutotoolsPackage): def configure_args(self): spec = self.spec - args = [ - "--with-libtiff={0}".format(spec["libtiff"].prefix), - ] + args = ["--with-libtiff={0}".format(spec["libtiff"].prefix)] if "+zlib" in spec: args.append("--with-zlib={0}".format(spec["zlib"].prefix)) diff --git a/var/spack/repos/builtin/packages/libint/package.py b/var/spack/repos/builtin/packages/libint/package.py index 6a4500d9de..74f273a8b2 100644 --- a/var/spack/repos/builtin/packages/libint/package.py +++ b/var/spack/repos/builtin/packages/libint/package.py @@ -121,7 +121,6 @@ class Libint(AutotoolsPackage): env.set("AR", "xiar") def configure_args(self): - config_args = ["--enable-shared"] if self.spec.satisfies("@2:"): diff --git a/var/spack/repos/builtin/packages/libmypaint/package.py b/var/spack/repos/builtin/packages/libmypaint/package.py index 3896281b20..0cac584845 100644 --- a/var/spack/repos/builtin/packages/libmypaint/package.py +++ b/var/spack/repos/builtin/packages/libmypaint/package.py @@ -41,10 +41,7 @@ class Libmypaint(AutotoolsPackage): if "+introspection" in self.spec: args.extend( - [ - "--enable-introspection=yes", - "--with-glib={0}".format(self.spec["glib"].prefix), - ] + ["--enable-introspection=yes", "--with-glib={0}".format(self.spec["glib"].prefix)] ) return args diff --git a/var/spack/repos/builtin/packages/libpsl/package.py b/var/spack/repos/builtin/packages/libpsl/package.py index b7aa427071..ebaaade803 100644 --- a/var/spack/repos/builtin/packages/libpsl/package.py +++ b/var/spack/repos/builtin/packages/libpsl/package.py @@ -38,9 +38,7 @@ class Libpsl(AutotoolsPackage): def configure_args(self): spec = self.spec - args = [ - "PYTHON={0}".format(spec["python"].command.path), - ] + args = ["PYTHON={0}".format(spec["python"].command.path)] if self.run_tests: args.append("--enable-valgrind-tests") diff --git a/var/spack/repos/builtin/packages/libqrencode/package.py b/var/spack/repos/builtin/packages/libqrencode/package.py index b9ae9631b6..6b7c21a6ce 100644 --- a/var/spack/repos/builtin/packages/libqrencode/package.py +++ b/var/spack/repos/builtin/packages/libqrencode/package.py @@ -32,9 +32,7 @@ class Libqrencode(AutotoolsPackage): # We had to call for autoreconf as well: # https://stackoverflow.com/questions/3096989/libtool-version-mismatch-error # There appears $LIBTOOLIZE --force --automake --copy is not necessary - args = [ - "autoreconf --force --install", - ] + args = ["autoreconf --force --install"] with open("autogen.sh", "a") as fh: fh.write("\n".join(args)) # https://fukuchi.org/works/qrencode/ diff --git a/var/spack/repos/builtin/packages/libraw1394/package.py b/var/spack/repos/builtin/packages/libraw1394/package.py index f6c17711b4..7e17b25b52 100644 --- a/var/spack/repos/builtin/packages/libraw1394/package.py +++ b/var/spack/repos/builtin/packages/libraw1394/package.py @@ -13,7 +13,4 @@ class Libraw1394(AutotoolsPackage): homepage = "https://sourceforge.net/projects/libraw1394/" url = "https://sourceforge.net/projects/libraw1394/files/libraw1394/1.2.0/libraw1394-1.2.0.tar.gz" - version( - "1.2.0", - sha256="1fdcfa4c5a0938705b925d06f17da9be6ec3f8f065040bb7f33082ef3fc63fad", - ) + version("1.2.0", sha256="1fdcfa4c5a0938705b925d06f17da9be6ec3f8f065040bb7f33082ef3fc63fad") diff --git a/var/spack/repos/builtin/packages/libszip/package.py b/var/spack/repos/builtin/packages/libszip/package.py index 5a06b97cfa..fea9c5fe82 100644 --- a/var/spack/repos/builtin/packages/libszip/package.py +++ b/var/spack/repos/builtin/packages/libszip/package.py @@ -38,9 +38,4 @@ class Libszip(AutotoolsPackage): return libs def configure_args(self): - return [ - "--enable-production", - "--enable-shared", - "--enable-static", - "--enable-encoding", - ] + return ["--enable-production", "--enable-shared", "--enable-static", "--enable-encoding"] diff --git a/var/spack/repos/builtin/packages/libtiff/package.py b/var/spack/repos/builtin/packages/libtiff/package.py index b11f7fbaf1..bf183a2406 100644 --- a/var/spack/repos/builtin/packages/libtiff/package.py +++ b/var/spack/repos/builtin/packages/libtiff/package.py @@ -72,11 +72,7 @@ class Libtiff(CMakePackage, AutotoolsPackage): variant("zstd", default=False, description="use libzstd", when="@4.0.10:") variant("webp", default=False, description="use libwebp", when="@4.0.10:") - build_system( - conditional("cmake", when="@4.0.5:"), - "autotools", - default="cmake", - ) + build_system(conditional("cmake", when="@4.0.5:"), "autotools", default="cmake") with when("build_system=cmake"): depends_on("cmake@3.9:", when="@4.3:", type="build") diff --git a/var/spack/repos/builtin/packages/libwebp/package.py b/var/spack/repos/builtin/packages/libwebp/package.py index 7f6e68de81..a77c259c69 100644 --- a/var/spack/repos/builtin/packages/libwebp/package.py +++ b/var/spack/repos/builtin/packages/libwebp/package.py @@ -40,11 +40,7 @@ class Libwebp(AutotoolsPackage): def configure_args(self): # TODO: add variants and dependencies for these - args = [ - "--disable-gl", - "--disable-sdl", - "--disable-wic", - ] + args = ["--disable-gl", "--disable-sdl", "--disable-wic"] args += self.enable_or_disable("gif") args += self.enable_or_disable("jpeg") diff --git a/var/spack/repos/builtin/packages/linsys-v/package.py b/var/spack/repos/builtin/packages/linsys-v/package.py index 972d9f6037..f0a4e089d7 100644 --- a/var/spack/repos/builtin/packages/linsys-v/package.py +++ b/var/spack/repos/builtin/packages/linsys-v/package.py @@ -13,10 +13,7 @@ class LinsysV(MakefilePackage): homepage = "http://www.math.twcu.ac.jp/ogita/post-k/" url = "http://www.math.twcu.ac.jp/ogita/post-k/software/LINSYS_V/LINSYS_V_alpha.tar.gz" - version( - "alpha", - sha256="6666bc837bb6598b7cdefb233d3d0f2c308a24fe3465e4fe9b6c9762810bb320", - ) + version("alpha", sha256="6666bc837bb6598b7cdefb233d3d0f2c308a24fe3465e4fe9b6c9762810bb320") depends_on("mpi") depends_on("blas", type="link") diff --git a/var/spack/repos/builtin/packages/llvm-doe/package.py b/var/spack/repos/builtin/packages/llvm-doe/package.py index 7bc36f7648..e9820dfacb 100644 --- a/var/spack/repos/builtin/packages/llvm-doe/package.py +++ b/var/spack/repos/builtin/packages/llvm-doe/package.py @@ -43,15 +43,9 @@ class LlvmDoe(CMakePackage, CudaPackage): # to save space, build with `build_type=Release`. variant( - "clang", - default=True, - description="Build the LLVM C/C++/Objective-C compiler frontend", - ) - variant( - "flang", - default=False, - description="Build the LLVM Fortran compiler frontend", + "clang", default=True, description="Build the LLVM C/C++/Objective-C compiler frontend" ) + variant("flang", default=False, description="Build the LLVM Fortran compiler frontend") variant( "omp_debug", default=False, @@ -60,21 +54,13 @@ class LlvmDoe(CMakePackage, CudaPackage): variant("lldb", default=False, description="Build the LLVM debugger") variant("lld", default=True, description="Build the LLVM linker") variant("mlir", default=False, description="Build with MLIR support") - variant( - "internal_unwind", - default=True, - description="Build the libcxxabi libunwind", - ) + variant("internal_unwind", default=True, description="Build the libcxxabi libunwind") variant( "polly", default=True, description="Build the LLVM polyhedral optimization plugin, " "only builds for 3.7.0+", ) - variant( - "libcxx", - default=True, - description="Build the LLVM C++ standard library", - ) + variant("libcxx", default=True, description="Build the LLVM C++ standard library") variant( "compiler-rt", default=True, @@ -85,11 +71,7 @@ class LlvmDoe(CMakePackage, CudaPackage): default=(sys.platform != "darwin"), description="Add support for LTO with the gold linker plugin", ) - variant( - "split_dwarf", - default=False, - description="Build with split dwarf information", - ) + variant("split_dwarf", default=False, description="Build with split dwarf information") variant( "llvm_dylib", default=False, @@ -113,11 +95,7 @@ class LlvmDoe(CMakePackage, CudaPackage): description="CMake build type", values=("Debug", "Release", "RelWithDebInfo", "MinSizeRel"), ) - variant( - "omp_tsan", - default=False, - description="Build with OpenMP capable thread sanitizer", - ) + variant("omp_tsan", default=False, description="Build with OpenMP capable thread sanitizer") variant( "omp_as_runtime", default=True, @@ -551,7 +529,6 @@ class LlvmDoe(CMakePackage, CudaPackage): ) if "+all_targets" not in spec: # all is default on cmake - targets = ["NVPTX", "AMDGPU"] if spec.version < Version("3.9.0"): # Starting in 3.9.0 CppBackend is no longer a target (see diff --git a/var/spack/repos/builtin/packages/llvm/package.py b/var/spack/repos/builtin/packages/llvm/package.py index 9e2eb858ec..e94ff94d75 100644 --- a/var/spack/repos/builtin/packages/llvm/package.py +++ b/var/spack/repos/builtin/packages/llvm/package.py @@ -76,9 +76,7 @@ class Llvm(CMakePackage, CudaPackage): # to save space, build with `build_type=Release`. variant( - "clang", - default=True, - description="Build the LLVM C/C++/Objective-C compiler frontend", + "clang", default=True, description="Build the LLVM C/C++/Objective-C compiler frontend" ) variant( "flang", @@ -96,10 +94,7 @@ class Llvm(CMakePackage, CudaPackage): variant("lld", default=True, description="Build the LLVM linker") variant("mlir", default=False, when="@10:", description="Build with MLIR support") variant( - "internal_unwind", - default=True, - when="+clang", - description="Build the libcxxabi libunwind", + "internal_unwind", default=True, when="+clang", description="Build the libcxxabi libunwind" ) variant( "polly", @@ -107,10 +102,7 @@ class Llvm(CMakePackage, CudaPackage): description="Build the LLVM polyhedral optimization plugin, " "only builds for 3.7.0+", ) variant( - "libcxx", - default=True, - when="+clang", - description="Build the LLVM C++ standard library", + "libcxx", default=True, when="+clang", description="Build the LLVM C++ standard library" ) variant( "compiler-rt", @@ -123,11 +115,7 @@ class Llvm(CMakePackage, CudaPackage): default=(sys.platform != "darwin"), description="Add support for LTO with the gold linker plugin", ) - variant( - "split_dwarf", - default=False, - description="Build with split dwarf information", - ) + variant("split_dwarf", default=False, description="Build with split dwarf information") variant( "llvm_dylib", default=True, diff --git a/var/spack/repos/builtin/packages/lua-luajit-openresty/package.py b/var/spack/repos/builtin/packages/lua-luajit-openresty/package.py index 787ce91836..31ae9aa551 100644 --- a/var/spack/repos/builtin/packages/lua-luajit-openresty/package.py +++ b/var/spack/repos/builtin/packages/lua-luajit-openresty/package.py @@ -51,8 +51,7 @@ class LuaLuajitOpenresty(LuaImplPackage): # Catalina and higher produce a non-functional luajit unless this is set if spec.satisfies("platform=darwin"): src_makefile.filter( - "^.XCFLAGS.= -DLUAJIT_ENABLE_GC64", - "XCFLAGS+= -DLUAJIT_ENABLE_GC64", + "^.XCFLAGS.= -DLUAJIT_ENABLE_GC64", "XCFLAGS+= -DLUAJIT_ENABLE_GC64" ) # Linking with the C++ compiler is a dirty hack to deal with the fact # that unwinding symbols are not included by libc, this is necessary diff --git a/var/spack/repos/builtin/packages/lua-mpack/package.py b/var/spack/repos/builtin/packages/lua-mpack/package.py index 1a94ce92df..3b3c4b55a1 100644 --- a/var/spack/repos/builtin/packages/lua-mpack/package.py +++ b/var/spack/repos/builtin/packages/lua-mpack/package.py @@ -15,22 +15,10 @@ class LuaMpack(LuaPackage): depends_on("msgpack-c") - version( - "1.0.9", - sha256="0fd07e709c3f6f201c2ffc9f77cef1b303b02c12413f0c15670a32bf6c959e9e", - ) - version( - "1.0.8", - sha256="ed6b1b4bbdb56f26241397c1e168a6b1672f284989303b150f7ea8d39d1bc9e9", - ) - version( - "1.0.7", - sha256="68565484a3441d316bd51bed1cacd542b7f84b1ecfd37a8bd18dd0f1a20887e8", - ) - version( - "1.0.6-0", - sha256="9068d9d3f407c72a7ea18bc270b0fa90aad60a2f3099fa23d5902dd71ea4cd5f", - ) + version("1.0.9", sha256="0fd07e709c3f6f201c2ffc9f77cef1b303b02c12413f0c15670a32bf6c959e9e") + version("1.0.8", sha256="ed6b1b4bbdb56f26241397c1e168a6b1672f284989303b150f7ea8d39d1bc9e9") + version("1.0.7", sha256="68565484a3441d316bd51bed1cacd542b7f84b1ecfd37a8bd18dd0f1a20887e8") + version("1.0.6-0", sha256="9068d9d3f407c72a7ea18bc270b0fa90aad60a2f3099fa23d5902dd71ea4cd5f") def luarocks_args(self): return ["CFLAGS=-fPIC -Wno-error=implicit-function-declaration"] diff --git a/var/spack/repos/builtin/packages/lua/package.py b/var/spack/repos/builtin/packages/lua/package.py index 99a83067b8..fbe125cee2 100644 --- a/var/spack/repos/builtin/packages/lua/package.py +++ b/var/spack/repos/builtin/packages/lua/package.py @@ -154,9 +154,7 @@ class LuaImplPackage(MakefilePackage): def setup_run_environment(self, env): env.prepend_path( - "LUA_PATH", - os.path.join(self.spec.prefix, self.lua_share_dir, "?.lua"), - separator=";", + "LUA_PATH", os.path.join(self.spec.prefix, self.lua_share_dir, "?.lua"), separator=";" ) env.prepend_path( "LUA_PATH", @@ -164,9 +162,7 @@ class LuaImplPackage(MakefilePackage): separator=";", ) env.prepend_path( - "LUA_PATH", - os.path.join(self.spec.prefix, self.lua_lib_dir, "?.lua"), - separator=";", + "LUA_PATH", os.path.join(self.spec.prefix, self.lua_lib_dir, "?.lua"), separator=";" ) env.prepend_path( "LUA_PATH", @@ -174,9 +170,7 @@ class LuaImplPackage(MakefilePackage): separator=";", ) env.prepend_path( - "LUA_CPATH", - os.path.join(self.spec.prefix, self.lua_lib_dir, "?.so"), - separator=";", + "LUA_CPATH", os.path.join(self.spec.prefix, self.lua_lib_dir, "?.so"), separator=";" ) @property diff --git a/var/spack/repos/builtin/packages/maeparser/package.py b/var/spack/repos/builtin/packages/maeparser/package.py index 9fce2fcced..e24dd72661 100644 --- a/var/spack/repos/builtin/packages/maeparser/package.py +++ b/var/spack/repos/builtin/packages/maeparser/package.py @@ -26,7 +26,5 @@ class Maeparser(CMakePackage): depends_on("zlib") def cmake_args(self): - args = [ - self.define_from_variant("MAEPARSER_BUILD_SHARED_LIBS", "shared"), - ] + args = [self.define_from_variant("MAEPARSER_BUILD_SHARED_LIBS", "shared")] return args diff --git a/var/spack/repos/builtin/packages/mapsplice2/package.py b/var/spack/repos/builtin/packages/mapsplice2/package.py index dedb3052bb..7fb6c1f2c2 100644 --- a/var/spack/repos/builtin/packages/mapsplice2/package.py +++ b/var/spack/repos/builtin/packages/mapsplice2/package.py @@ -15,10 +15,7 @@ class Mapsplice2(MakefilePackage): homepage = "http://www.netlab.uky.edu/p/bioinfo/MapSplice2" url = "https://protocols.netlab.uky.edu/~zeng/MapSplice-v2.2.1.zip" - version( - "2.2.1", - sha256="4f3c1cb49ba0abcfc952de5946ee0b56db28c51f4f4d4f5abca66b4461ca7d05", - ) + version("2.2.1", sha256="4f3c1cb49ba0abcfc952de5946ee0b56db28c51f4f4d4f5abca66b4461ca7d05") patch("Makefile.patch") patch("mapsplice_ebwt.patch") @@ -31,12 +28,7 @@ class Mapsplice2(MakefilePackage): def edit(self, spec, prefix): for iscan in find( "src", - [ - "SamRec.*", - "AlignmentHandler.cpp", - "JunctionHandler.cpp", - "FusionSamRec.*", - ], + ["SamRec.*", "AlignmentHandler.cpp", "JunctionHandler.cpp", "FusionSamRec.*"], recursive=True, ): m = FileFilter(iscan) diff --git a/var/spack/repos/builtin/packages/mctc-lib/package.py b/var/spack/repos/builtin/packages/mctc-lib/package.py index 89581bbbf5..b9d4ba5301 100644 --- a/var/spack/repos/builtin/packages/mctc-lib/package.py +++ b/var/spack/repos/builtin/packages/mctc-lib/package.py @@ -26,6 +26,4 @@ class MctcLib(MesonPackage): depends_on("pkgconfig", type="build") def meson_args(self): - return [ - "-Djson={0}".format("enabled" if "+json" in self.spec else "disabled"), - ] + return ["-Djson={0}".format("enabled" if "+json" in self.spec else "disabled")] diff --git a/var/spack/repos/builtin/packages/med/package.py b/var/spack/repos/builtin/packages/med/package.py index de3cbdc49f..96d8632e28 100644 --- a/var/spack/repos/builtin/packages/med/package.py +++ b/var/spack/repos/builtin/packages/med/package.py @@ -65,19 +65,9 @@ class Med(CMakePackage): ) if "+shared" in spec: - options.extend( - [ - "-DMEDFILE_BUILD_SHARED_LIBS=ON", - "-DMEDFILE_BUILD_STATIC_LIBS=OFF", - ] - ) + options.extend(["-DMEDFILE_BUILD_SHARED_LIBS=ON", "-DMEDFILE_BUILD_STATIC_LIBS=OFF"]) else: - options.extend( - [ - "-DMEDFILE_BUILD_SHARED_LIBS=OFF", - "-DMEDFILE_BUILD_STATIC_LIBS=ON", - ] - ) + options.extend(["-DMEDFILE_BUILD_SHARED_LIBS=OFF", "-DMEDFILE_BUILD_STATIC_LIBS=ON"]) if "+mpi" in spec: options.extend(["-DMEDFILE_USE_MPI=YES", "-DMPI_ROOT_DIR=%s" % spec["mpi"].prefix]) diff --git a/var/spack/repos/builtin/packages/mesa/package.py b/var/spack/repos/builtin/packages/mesa/package.py index b8c7903786..d4d489de74 100644 --- a/var/spack/repos/builtin/packages/mesa/package.py +++ b/var/spack/repos/builtin/packages/mesa/package.py @@ -73,14 +73,7 @@ class Mesa(MesonPackage): variant( "swr", values=spack.variant.DisjointSetsOfValues( - ("none",), - ("auto",), - ( - "avx", - "avx2", - "knl", - "skx", - ), + ("none",), ("auto",), ("avx", "avx2", "knl", "skx") ) .with_non_feature_values("auto") .with_non_feature_values("none") diff --git a/var/spack/repos/builtin/packages/mesa18/package.py b/var/spack/repos/builtin/packages/mesa18/package.py index 2948477f46..64e7aa60f0 100644 --- a/var/spack/repos/builtin/packages/mesa18/package.py +++ b/var/spack/repos/builtin/packages/mesa18/package.py @@ -45,14 +45,7 @@ class Mesa18(AutotoolsPackage): variant( "swr", values=spack.variant.DisjointSetsOfValues( - ("none",), - ("auto",), - ( - "avx", - "avx2", - "knl", - "skx", - ), + ("none",), ("auto",), ("avx", "avx2", "knl", "skx") ) .with_non_feature_values("auto") .with_non_feature_values("none") diff --git a/var/spack/repos/builtin/packages/mesquite/package.py b/var/spack/repos/builtin/packages/mesquite/package.py index ab1ca8bc1f..91dfa60aa7 100644 --- a/var/spack/repos/builtin/packages/mesquite/package.py +++ b/var/spack/repos/builtin/packages/mesquite/package.py @@ -27,10 +27,7 @@ class Mesquite(AutotoolsPackage): depends_on("mpi", when="+mpi") def configure_args(self): - args = [ - "--enable-release", - "--enable-shared", - ] + args = ["--enable-release", "--enable-shared"] if "+mpi" in self.spec: args.append("CC=%s" % self.spec["mpi"].mpicc) diff --git a/var/spack/repos/builtin/packages/mfem/package.py b/var/spack/repos/builtin/packages/mfem/package.py index ef61f8f01e..f8ddcf9951 100644 --- a/var/spack/repos/builtin/packages/mfem/package.py +++ b/var/spack/repos/builtin/packages/mfem/package.py @@ -335,8 +335,7 @@ class Mfem(Package, CudaPackage, ROCmPackage): depends_on("ginkgo@1.4.0:", when="+ginkgo") for sm_ in CudaPackage.cuda_arch_values: depends_on( - "ginkgo+cuda cuda_arch={0}".format(sm_), - when="+ginkgo+cuda cuda_arch={0}".format(sm_), + "ginkgo+cuda cuda_arch={0}".format(sm_), when="+ginkgo+cuda cuda_arch={0}".format(sm_) ) for gfx in ROCmPackage.amdgpu_targets: depends_on( @@ -347,8 +346,7 @@ class Mfem(Package, CudaPackage, ROCmPackage): depends_on("hiop@0.4.6:+mpi", when="+hiop+mpi") for sm_ in CudaPackage.cuda_arch_values: depends_on( - "hiop+cuda cuda_arch={0}".format(sm_), - when="+hiop+cuda cuda_arch={0}".format(sm_), + "hiop+cuda cuda_arch={0}".format(sm_), when="+hiop+cuda cuda_arch={0}".format(sm_) ) for gfx in ROCmPackage.amdgpu_targets: depends_on( diff --git a/var/spack/repos/builtin/packages/mg/package.py b/var/spack/repos/builtin/packages/mg/package.py index 2ee36cc6f7..f652e6bd68 100644 --- a/var/spack/repos/builtin/packages/mg/package.py +++ b/var/spack/repos/builtin/packages/mg/package.py @@ -22,8 +22,5 @@ class Mg(MakefilePackage): def edit(self, spec, prefix): configure = Executable("./configure") - args = [ - "--mandir={0}".format(self.prefix.man), - "--prefix={0}".format(self.prefix), - ] + args = ["--mandir={0}".format(self.prefix.man), "--prefix={0}".format(self.prefix)] configure(*args) diff --git a/var/spack/repos/builtin/packages/mgcfd-op2/package.py b/var/spack/repos/builtin/packages/mgcfd-op2/package.py index 1760fb4f08..3ed7525980 100644 --- a/var/spack/repos/builtin/packages/mgcfd-op2/package.py +++ b/var/spack/repos/builtin/packages/mgcfd-op2/package.py @@ -33,12 +33,7 @@ class MgcfdOp2(MakefilePackage): depends_on("op2-dsl~mpi", when="~mpi") def setup_build_environment(self, env): - compiler_map = { - "gcc": "gnu", - "arm": "clang", - "cce": "cray", - "nvhpc": "pgi", - } + compiler_map = {"gcc": "gnu", "arm": "clang", "cce": "cray", "nvhpc": "pgi"} if self.spec.compiler.name in compiler_map: env.set("COMPILER", compiler_map[self.spec.compiler.name]) else: diff --git a/var/spack/repos/builtin/packages/mgis/package.py b/var/spack/repos/builtin/packages/mgis/package.py index fd2a3ec696..fc0c93836e 100644 --- a/var/spack/repos/builtin/packages/mgis/package.py +++ b/var/spack/repos/builtin/packages/mgis/package.py @@ -85,7 +85,6 @@ class Mgis(CMakePackage): self._if_ninja_target_execute("check") def cmake_args(self): - args = [] args.append("-DUSE_EXTERNAL_COMPILER_FLAGS=ON") diff --git a/var/spack/repos/builtin/packages/mimalloc/package.py b/var/spack/repos/builtin/packages/mimalloc/package.py index c71df18563..e764d2e92d 100644 --- a/var/spack/repos/builtin/packages/mimalloc/package.py +++ b/var/spack/repos/builtin/packages/mimalloc/package.py @@ -55,11 +55,7 @@ class Mimalloc(CMakePackage): "for malloc() etc)", None, ), - "xmalloc": ( - False, - "Enable abort() call on memory allocation failure by default", - None, - ), + "xmalloc": (False, "Enable abort() call on memory allocation failure by default", None), "show_errors": ( False, "Show error and warning messages by default (only enabled by default " diff --git a/var/spack/repos/builtin/packages/minigmg/package.py b/var/spack/repos/builtin/packages/minigmg/package.py index 5bb2945dd9..3e3cfbfddd 100644 --- a/var/spack/repos/builtin/packages/minigmg/package.py +++ b/var/spack/repos/builtin/packages/minigmg/package.py @@ -52,7 +52,6 @@ class Minigmg(Package): patch("inline_static.patch") def install(self, spec, prefix): - cc = Executable(spec["mpi"].mpicc) args = [] diff --git a/var/spack/repos/builtin/packages/miopen-hip/package.py b/var/spack/repos/builtin/packages/miopen-hip/package.py index 5acfb7840c..98c610f52b 100644 --- a/var/spack/repos/builtin/packages/miopen-hip/package.py +++ b/var/spack/repos/builtin/packages/miopen-hip/package.py @@ -153,21 +153,10 @@ class MiopenHip(CMakePackage): depends_on("rocm-clang-ocl@" + ver, when="@" + ver) depends_on("rocblas@" + ver, when="@" + ver) - for ver in [ - "5.1.0", - "5.1.3", - "5.2.0", - "5.2.1", - "5.2.3", - "5.3.0", - "5.3.3", - ]: + for ver in ["5.1.0", "5.1.3", "5.2.0", "5.2.1", "5.2.3", "5.3.0", "5.3.3"]: depends_on("mlirmiopen@" + ver, when="@" + ver) - for ver in [ - "5.4.0", - "5.4.3", - ]: + for ver in ["5.4.0", "5.4.3"]: depends_on("rocmlir@" + ver, when="@" + ver) depends_on("nlohmann-json", type="link") diff --git a/var/spack/repos/builtin/packages/miopen-opencl/package.py b/var/spack/repos/builtin/packages/miopen-opencl/package.py index 544691db06..d0fe124bc0 100644 --- a/var/spack/repos/builtin/packages/miopen-opencl/package.py +++ b/var/spack/repos/builtin/packages/miopen-opencl/package.py @@ -120,9 +120,7 @@ class MiopenOpencl(CMakePackage): depends_on("half", type="build") depends_on("miopengemm@1.1.6", type="link", when="@3.5.0") - for ver in [ - "3.5.0", - ]: + for ver in ["3.5.0"]: depends_on("rocm-cmake@%s:" % ver, type="build", when="@" + ver) depends_on("rocm-opencl@" + ver, when="@" + ver) @@ -153,21 +151,10 @@ class MiopenOpencl(CMakePackage): depends_on("rocm-opencl@" + ver, when="@" + ver) depends_on("miopengemm@" + ver, when="@" + ver) - for ver in [ - "5.1.0", - "5.1.3", - "5.2.0", - "5.2.1", - "5.2.3", - "5.3.0", - "5.3.3", - ]: + for ver in ["5.1.0", "5.1.3", "5.2.0", "5.2.1", "5.2.3", "5.3.0", "5.3.3"]: depends_on("mlirmiopen@" + ver, when="@" + ver) - for ver in [ - "5.4.0", - "5.4.3", - ]: + for ver in ["5.4.0", "5.4.3"]: depends_on("nlohmann-json", type="link") depends_on("rocblas", type="link") depends_on("rocmlir@" + ver, when="@" + ver) diff --git a/var/spack/repos/builtin/packages/mivisionx/package.py b/var/spack/repos/builtin/packages/mivisionx/package.py index cc9bab5a4c..7d15d26aef 100644 --- a/var/spack/repos/builtin/packages/mivisionx/package.py +++ b/var/spack/repos/builtin/packages/mivisionx/package.py @@ -270,9 +270,7 @@ class Mivisionx(CMakePackage): def cmake_args(self): spec = self.spec protobuf = spec["protobuf"].prefix.include - args = [ - self.define("CMAKE_CXX_FLAGS", "-I{0}".format(protobuf)), - ] + args = [self.define("CMAKE_CXX_FLAGS", "-I{0}".format(protobuf))] if self.spec.satisfies("+opencl"): args.append(self.define("BACKEND", "OPENCL")) args.append(self.define("HSA_PATH", spec["hsa-rocr-dev"].prefix)) diff --git a/var/spack/repos/builtin/packages/mlirmiopen/package.py b/var/spack/repos/builtin/packages/mlirmiopen/package.py index a55f848d1d..312341e4a6 100644 --- a/var/spack/repos/builtin/packages/mlirmiopen/package.py +++ b/var/spack/repos/builtin/packages/mlirmiopen/package.py @@ -51,16 +51,7 @@ class Mlirmiopen(CMakePackage): depends_on("half") depends_on("pkgconfig", type="build") - for ver in [ - "5.1.0", - "5.1.3", - "5.2.0", - "5.2.1", - "5.2.3", - "5.3.0", - "5.3.3", - "5.4.0", - ]: + for ver in ["5.1.0", "5.1.3", "5.2.0", "5.2.1", "5.2.3", "5.3.0", "5.3.3", "5.4.0"]: depends_on("hip@" + ver, when="@" + ver) depends_on("llvm-amdgpu@" + ver, when="@" + ver) depends_on("hsa-rocr-dev@" + ver, when="@" + ver) diff --git a/var/spack/repos/builtin/packages/mpas-model/package.py b/var/spack/repos/builtin/packages/mpas-model/package.py index 0235ffd7a4..442c5a034f 100644 --- a/var/spack/repos/builtin/packages/mpas-model/package.py +++ b/var/spack/repos/builtin/packages/mpas-model/package.py @@ -115,20 +115,9 @@ class MpasModel(MakefilePackage): ) cppflags.append("-DUNDERSCORE") elif satisfies("%fj"): - fflags.extend( - [ - "-Free", - "-Fwide", - "-CcdRR8", - ] - ) + fflags.extend(["-Free", "-Fwide", "-CcdRR8"]) elif satisfies("%intel"): - fflags.extend( - [ - "-convert big_endian", - "-FR", - ] - ) + fflags.extend(["-convert big_endian", "-FR"]) if satisfies("precision=double"): fflags.extend(["-r8"]) diff --git a/var/spack/repos/builtin/packages/mpfr/package.py b/var/spack/repos/builtin/packages/mpfr/package.py index 942d16aac1..7971c4310f 100644 --- a/var/spack/repos/builtin/packages/mpfr/package.py +++ b/var/spack/repos/builtin/packages/mpfr/package.py @@ -69,9 +69,7 @@ class Mpfr(AutotoolsPackage, GNUMirrorPackage): return (flags, None, None) def configure_args(self): - args = [ - "--with-gmp=" + self.spec["gmp"].prefix, - ] + args = ["--with-gmp=" + self.spec["gmp"].prefix] args += self.enable_or_disable("libs") if "libs=static" in self.spec: args.append("--with-pic") diff --git a/var/spack/repos/builtin/packages/mpi-serial/package.py b/var/spack/repos/builtin/packages/mpi-serial/package.py index ef2ad5f831..5f159a0cf5 100644 --- a/var/spack/repos/builtin/packages/mpi-serial/package.py +++ b/var/spack/repos/builtin/packages/mpi-serial/package.py @@ -39,16 +39,8 @@ class MpiSerial(AutotoolsPackage): args = [] realsize = int(self.spec.variants["fort-real-size"].value) if realsize != 4: - args.extend( - [ - "--enable-fort-real={0}".format(realsize), - ] - ) + args.extend(["--enable-fort-real={0}".format(realsize)]) doublesize = int(self.spec.variants["fort-double-size"].value) if doublesize != 8: - args.extend( - [ - "--enable-fort-double={0}".format(doublesize), - ] - ) + args.extend(["--enable-fort-double={0}".format(doublesize)]) return args diff --git a/var/spack/repos/builtin/packages/mujoco/package.py b/var/spack/repos/builtin/packages/mujoco/package.py index aad102bace..26ed5d4ae5 100644 --- a/var/spack/repos/builtin/packages/mujoco/package.py +++ b/var/spack/repos/builtin/packages/mujoco/package.py @@ -29,13 +29,9 @@ class Mujoco(Package): version(ver, sha256=pkg_sha256) def url_for_version(self, version): - url = "https://mujoco.org/download/mujoco{0}-{1}-x86_64.tar.gz" - system_map = { - "Linux": "linux", - "Darwin": "macos", - } + system_map = {"Linux": "linux", "Darwin": "macos"} return url.format(version.joined, system_map[platform.system()]) diff --git a/var/spack/repos/builtin/packages/must/package.py b/var/spack/repos/builtin/packages/must/package.py index 1a56867b38..6cca6c9cf2 100644 --- a/var/spack/repos/builtin/packages/must/package.py +++ b/var/spack/repos/builtin/packages/must/package.py @@ -19,18 +19,11 @@ class Must(CMakePackage): maintainers("jgalarowicz", "dmont") + version("1.8.0-rc1", sha256="49fd2487fbd1aa41f4252c7e37efebd3f6ff48218c88e82f34b88d59348fe406") version( - "1.8.0-rc1", - sha256="49fd2487fbd1aa41f4252c7e37efebd3f6ff48218c88e82f34b88d59348fe406", - ) - version( - "1.8-preview", - sha256="67b4b061db7a893e22a6610e2085072716d11738bc6cc3cb3ffd60d6833e8bad", - ) - version( - "1.7.2", - sha256="616c54b7487923959df126ac4b47ae8c611717d679fe7ec29f57a89bf0e2e0d0", + "1.8-preview", sha256="67b4b061db7a893e22a6610e2085072716d11738bc6cc3cb3ffd60d6833e8bad" ) + version("1.7.2", sha256="616c54b7487923959df126ac4b47ae8c611717d679fe7ec29f57a89bf0e2e0d0") variant("test", default=False, description="Enable must internal tests") variant("tsan", default=True, description="Enable thread sanitizer") variant("graphviz", default=False, description="Use to generate graphs") diff --git a/var/spack/repos/builtin/packages/mvapich/package.py b/var/spack/repos/builtin/packages/mvapich/package.py index 4d091e4c3a..4aa79893e9 100644 --- a/var/spack/repos/builtin/packages/mvapich/package.py +++ b/var/spack/repos/builtin/packages/mvapich/package.py @@ -76,10 +76,7 @@ class Mvapich(AutotoolsPackage): "by libfabrics, use the ofi netmod. For more info, visit the " "homepage url.", default="ofi", - values=( - "ofi", - "ucx", - ), + values=("ofi", "ucx"), multi=False, ) diff --git a/var/spack/repos/builtin/packages/mysqlpp/package.py b/var/spack/repos/builtin/packages/mysqlpp/package.py index e4aef374dd..e5c980b0db 100644 --- a/var/spack/repos/builtin/packages/mysqlpp/package.py +++ b/var/spack/repos/builtin/packages/mysqlpp/package.py @@ -30,7 +30,5 @@ class Mysqlpp(AutotoolsPackage): "--with-mysql-lib={0}".format(self.spec["mysql-client"].prefix.lib.mariadb), ] else: - args = [ - "--with-mysql={0}".format(self.spec["mysql-client"].prefix), - ] + args = ["--with-mysql={0}".format(self.spec["mysql-client"].prefix)] return args diff --git a/var/spack/repos/builtin/packages/n2p2/package.py b/var/spack/repos/builtin/packages/n2p2/package.py index ce38506aeb..3ef2c32ebf 100644 --- a/var/spack/repos/builtin/packages/n2p2/package.py +++ b/var/spack/repos/builtin/packages/n2p2/package.py @@ -15,22 +15,10 @@ class N2p2(MakefilePackage): homepage = "https://github.com/CompPhysVienna/n2p2" url = "https://github.com/CompPhysVienna/n2p2/archive/v2.1.0.tar.gz" - version( - "2.2.0", - sha256="4acaa255632a7b9811d7530fd52ac7dd0bb3a8e3a3cf8512beadd29b62c1bfef", - ) - version( - "2.1.4", - sha256="f1672c09af4ed16a7f396606977e4675a0fee98f04bfd9574907fba4b83a14ef", - ) - version( - "2.1.1", - sha256="90fbc0756132984d0d7e6d92d2f53358c120e75f148910d90c027158163251b9", - ) - version( - "2.1.0", - sha256="283c00e9a5b964f4c84a70c5f1cef7167e9b881080b50a221da08799e5ede400", - ) + version("2.2.0", sha256="4acaa255632a7b9811d7530fd52ac7dd0bb3a8e3a3cf8512beadd29b62c1bfef") + version("2.1.4", sha256="f1672c09af4ed16a7f396606977e4675a0fee98f04bfd9574907fba4b83a14ef") + version("2.1.1", sha256="90fbc0756132984d0d7e6d92d2f53358c120e75f148910d90c027158163251b9") + version("2.1.0", sha256="283c00e9a5b964f4c84a70c5f1cef7167e9b881080b50a221da08799e5ede400") variant("doc", default=False, description="build documentation with Doxygen") variant("shared", default=False, description="build shared libraries") diff --git a/var/spack/repos/builtin/packages/ncl/package.py b/var/spack/repos/builtin/packages/ncl/package.py index 0b79d52150..294363f6c9 100644 --- a/var/spack/repos/builtin/packages/ncl/package.py +++ b/var/spack/repos/builtin/packages/ncl/package.py @@ -135,7 +135,6 @@ class Ncl(Package): filter_file("^#!/bin/csh", "#!{0}".format(csh), *files) def install(self, spec, prefix): - if (self.compiler.fc is None) or (self.compiler.cc is None): raise InstallError("NCL package requires both " "C and Fortran compilers.") diff --git a/var/spack/repos/builtin/packages/nemsio/package.py b/var/spack/repos/builtin/packages/nemsio/package.py index 04a358edf2..0c2538ce46 100644 --- a/var/spack/repos/builtin/packages/nemsio/package.py +++ b/var/spack/repos/builtin/packages/nemsio/package.py @@ -16,12 +16,7 @@ class Nemsio(CMakePackage): homepage = "https://noaa-emc.github.io/NCEPLIBS-nemsio" url = "https://github.com/NOAA-EMC/NCEPLIBS-nemsio/archive/refs/tags/v2.5.2.tar.gz" - maintainers( - "t-brown", - "edwardhartnett", - "AlexanderRichert-NOAA", - "Hang-Lei-NOAA", - ) + maintainers("t-brown", "edwardhartnett", "AlexanderRichert-NOAA", "Hang-Lei-NOAA") variant("mpi", default=True, description="Build Nemsio with MPI") # Nemsio 2.5.3 and below require MPI diff --git a/var/spack/repos/builtin/packages/neovim/package.py b/var/spack/repos/builtin/packages/neovim/package.py index 73318b7c1b..b4fc5544df 100644 --- a/var/spack/repos/builtin/packages/neovim/package.py +++ b/var/spack/repos/builtin/packages/neovim/package.py @@ -21,18 +21,9 @@ class Neovim(CMakePackage): version("0.8.0", sha256="505e3dfb71e2f73495c737c034a416911c260c0ba9fd2092c6be296655be4d18") version("0.7.2", sha256="ccab8ca02a0c292de9ea14b39f84f90b635a69282de38a6b4ccc8565bc65d096") version("0.7.0", sha256="792a9c55d5d5f4a5148d475847267df309d65fb20f05523f21c1319ea8a6c7df") - version( - "0.6.1", - sha256="dd882c21a52e5999f656cae3f336b5fc702d52addd4d9b5cd3dc39cfff35e864", - ) - version( - "0.6.0", - sha256="2cfd600cfa5bb57564cc22ffbbbcb2c91531053fc3de992df33656614384fa4c", - ) - version( - "0.5.1", - sha256="aa449795e5cc69bdd2eeed7095f20b9c086c6ecfcde0ab62ab97a9d04243ec84", - ) + version("0.6.1", sha256="dd882c21a52e5999f656cae3f336b5fc702d52addd4d9b5cd3dc39cfff35e864") + version("0.6.0", sha256="2cfd600cfa5bb57564cc22ffbbbcb2c91531053fc3de992df33656614384fa4c") + version("0.5.1", sha256="aa449795e5cc69bdd2eeed7095f20b9c086c6ecfcde0ab62ab97a9d04243ec84") version( "0.5.0", sha256="6bcfa5192c9460c946e853dbd1a0baf659df5de184436144147711d1bceedeee", diff --git a/var/spack/repos/builtin/packages/netcdf-cxx/package.py b/var/spack/repos/builtin/packages/netcdf-cxx/package.py index 7095de6d4e..0ae2f69cb4 100644 --- a/var/spack/repos/builtin/packages/netcdf-cxx/package.py +++ b/var/spack/repos/builtin/packages/netcdf-cxx/package.py @@ -37,9 +37,6 @@ class NetcdfCxx(AutotoolsPackage): args.append("CPPFLAGS=-DUSE_NETCDF4") # Add these to LDFLAGS explicitly, so the linker doesn't accidentally # use system versions - ldflags = [ - self.spec["netcdf-c"].libs.search_flags, - self.spec["hdf5"].libs.search_flags, - ] + ldflags = [self.spec["netcdf-c"].libs.search_flags, self.spec["hdf5"].libs.search_flags] args.append("LDFLAGS=" + " ".join(ldflags)) return args diff --git a/var/spack/repos/builtin/packages/netlib-lapack/package.py b/var/spack/repos/builtin/packages/netlib-lapack/package.py index 30641b57d8..cb1832d061 100644 --- a/var/spack/repos/builtin/packages/netlib-lapack/package.py +++ b/var/spack/repos/builtin/packages/netlib-lapack/package.py @@ -142,16 +142,9 @@ class NetlibLapack(CMakePackage): query_parameters = self.spec.last_query.extra_parameters query2libraries = { tuple(): ["libblas"], - ("c", "fortran"): [ - "libcblas", - "libblas", - ], - ("c",): [ - "libcblas", - ], - ("fortran",): [ - "libblas", - ], + ("c", "fortran"): ["libcblas", "libblas"], + ("c",): ["libcblas"], + ("fortran",): ["libblas"], } key = tuple(sorted(query_parameters)) libraries = query2libraries[key] @@ -163,16 +156,9 @@ class NetlibLapack(CMakePackage): query_parameters = self.spec.last_query.extra_parameters query2libraries = { tuple(): ["liblapack"], - ("c", "fortran"): [ - "liblapacke", - "liblapack", - ], - ("c",): [ - "liblapacke", - ], - ("fortran",): [ - "liblapack", - ], + ("c", "fortran"): ["liblapacke", "liblapack"], + ("c",): ["liblapacke"], + ("fortran",): ["liblapack"], } key = tuple(sorted(query_parameters)) libraries = query2libraries[key] diff --git a/var/spack/repos/builtin/packages/ngspice/package.py b/var/spack/repos/builtin/packages/ngspice/package.py index 83a79258c7..3cbc03fe3e 100644 --- a/var/spack/repos/builtin/packages/ngspice/package.py +++ b/var/spack/repos/builtin/packages/ngspice/package.py @@ -104,10 +104,7 @@ class Ngspice(AutotoolsPackage): args.append("--with-x") x = spec["libx11"] args.extend( - [ - "--x-includes=%s" % x.prefix.include, - "--x-libraries=%s" % x.prefix.lib, - ] + ["--x-includes=%s" % x.prefix.include, "--x-libraries=%s" % x.prefix.lib] ) else: args.append("--without-x") diff --git a/var/spack/repos/builtin/packages/nix/package.py b/var/spack/repos/builtin/packages/nix/package.py index c144bad924..e54f13ed85 100644 --- a/var/spack/repos/builtin/packages/nix/package.py +++ b/var/spack/repos/builtin/packages/nix/package.py @@ -111,6 +111,6 @@ class Nix(AutotoolsPackage): @run_after("install") def installcheck_clean(self): if hasattr(self, "test_path") and self.test_path: - for (root, dirs, files) in os.walk(self.test_path, topdown=True): + for root, dirs, files in os.walk(self.test_path, topdown=True): os.chmod(root, stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR) remove_linked_tree(self.test_path) diff --git a/var/spack/repos/builtin/packages/ocamlbuild/package.py b/var/spack/repos/builtin/packages/ocamlbuild/package.py index d2ab82426f..a421b22c8d 100644 --- a/var/spack/repos/builtin/packages/ocamlbuild/package.py +++ b/var/spack/repos/builtin/packages/ocamlbuild/package.py @@ -29,11 +29,7 @@ class Ocamlbuild(MakefilePackage): # Installation : https://github.com/ocaml/ocamlbuild/ def edit(self, spec, prefix): - makefile_inc = [ - "BINDIR = bin", - "LIBDIR = lib", - "MANDIR = man", - ] + makefile_inc = ["BINDIR = bin", "LIBDIR = lib", "MANDIR = man"] makefile_inc.append("OCAML_PREFIX = %s" % self.spec["ocaml"].prefix) makefile_inc.append("DESTDIR = %s/" % self.spec.prefix) with open("Makefile.config", "a") as fh: diff --git a/var/spack/repos/builtin/packages/oce/package.py b/var/spack/repos/builtin/packages/oce/package.py index c19ebf159a..cd40190b96 100644 --- a/var/spack/repos/builtin/packages/oce/package.py +++ b/var/spack/repos/builtin/packages/oce/package.py @@ -78,11 +78,7 @@ class Oce(Package): ) if platform.system() == "Darwin": - options.extend( - [ - "-DOCE_OSX_USE_COCOA:BOOL=ON", - ] - ) + options.extend(["-DOCE_OSX_USE_COCOA:BOOL=ON"]) if platform.system() == "Darwin" and (macos_version() >= Version("10.12")): # use @rpath on Sierra due to limit of dynamic loader diff --git a/var/spack/repos/builtin/packages/octopus/package.py b/var/spack/repos/builtin/packages/octopus/package.py index da2997c6a5..01167d8a21 100644 --- a/var/spack/repos/builtin/packages/octopus/package.py +++ b/var/spack/repos/builtin/packages/octopus/package.py @@ -128,12 +128,7 @@ class Octopus(AutotoolsPackage, CudaPackage): ] ) else: - args.extend( - [ - "CC=%s" % self.compiler.cc, - "FC=%s" % self.compiler.fc, - ] - ) + args.extend(["CC=%s" % self.compiler.cc, "FC=%s" % self.compiler.fc]) if "^fftw" in spec: args.append("--with-fftw-prefix=%s" % spec["fftw"].prefix) @@ -164,9 +159,7 @@ class Octopus(AutotoolsPackage, CudaPackage): ) if "+arpack" in spec: arpack_libs = spec["arpack-ng"].libs.joined() - args.append( - "--with-arpack={0}".format(arpack_libs), - ) + args.append("--with-arpack={0}".format(arpack_libs)) if "+mpi" in spec["arpack-ng"]: args.append("--with-parpack={0}".format(arpack_libs)) @@ -185,9 +178,7 @@ class Octopus(AutotoolsPackage, CudaPackage): args.append("--with-likwid-prefix=%s" % spec["likwid"].prefix) if "+pfft" in spec: - args.append( - "--with-pfft-prefix=%s" % spec["pfft"].prefix, - ) + args.append("--with-pfft-prefix=%s" % spec["pfft"].prefix) # if '+poke' in spec: # args.extend([ diff --git a/var/spack/repos/builtin/packages/ome-common-cpp/package.py b/var/spack/repos/builtin/packages/ome-common-cpp/package.py index 1ebe93f4b9..06bb4c002a 100644 --- a/var/spack/repos/builtin/packages/ome-common-cpp/package.py +++ b/var/spack/repos/builtin/packages/ome-common-cpp/package.py @@ -29,7 +29,4 @@ class OmeCommonCpp(CMakePackage): depends_on("googletest", type="test") def cmake_args(self): - return [ - "-DCMAKE_CXX_STANDARD=17", - "-DCMAKE_CXX_STANDARD_REQUIRED=ON", - ] + return ["-DCMAKE_CXX_STANDARD=17", "-DCMAKE_CXX_STANDARD_REQUIRED=ON"] diff --git a/var/spack/repos/builtin/packages/ome-files-cpp/package.py b/var/spack/repos/builtin/packages/ome-files-cpp/package.py index c3bc9fbbf7..1cc12897d1 100644 --- a/var/spack/repos/builtin/packages/ome-files-cpp/package.py +++ b/var/spack/repos/builtin/packages/ome-files-cpp/package.py @@ -28,7 +28,4 @@ class OmeFilesCpp(CMakePackage): depends_on("googletest", type="test") def cmake_args(self): - return [ - "-DCMAKE_CXX_STANDARD=17", - "-DCMAKE_CXX_STANDARD_REQUIRED=ON", - ] + return ["-DCMAKE_CXX_STANDARD=17", "-DCMAKE_CXX_STANDARD_REQUIRED=ON"] diff --git a/var/spack/repos/builtin/packages/ome-model/package.py b/var/spack/repos/builtin/packages/ome-model/package.py index 3b3934e7fd..e160cda475 100644 --- a/var/spack/repos/builtin/packages/ome-model/package.py +++ b/var/spack/repos/builtin/packages/ome-model/package.py @@ -35,7 +35,4 @@ class OmeModel(CMakePackage): depends_on("googletest", type="test") def cmake_args(self): - return [ - "-DCMAKE_CXX_STANDARD=17", - "-DCMAKE_CXX_STANDARD_REQUIRED=ON", - ] + return ["-DCMAKE_CXX_STANDARD=17", "-DCMAKE_CXX_STANDARD_REQUIRED=ON"] diff --git a/var/spack/repos/builtin/packages/ompss-2/package.py b/var/spack/repos/builtin/packages/ompss-2/package.py index 1220542f7f..a786288b76 100644 --- a/var/spack/repos/builtin/packages/ompss-2/package.py +++ b/var/spack/repos/builtin/packages/ompss-2/package.py @@ -70,11 +70,7 @@ class Ompss2(Package): reconf = which("autoreconf") reconf("-fiv") - configure( - "--prefix=%s" % prefix, - "--with-nanos6=%s" % prefix, - "--enable-ompss-2", - ) + configure("--prefix=%s" % prefix, "--with-nanos6=%s" % prefix, "--enable-ompss-2") make() make("install") os.chdir("..") diff --git a/var/spack/repos/builtin/packages/oommf/package.py b/var/spack/repos/builtin/packages/oommf/package.py index 84711d37dd..4b350bfc4e 100644 --- a/var/spack/repos/builtin/packages/oommf/package.py +++ b/var/spack/repos/builtin/packages/oommf/package.py @@ -59,8 +59,7 @@ class Oommf(Package): ) version( - "20a3_20210930", - sha256="880242afdf4c84de7f2a3c42ab0ad8c354028a7d2d3c3160980cf3e08e285691", + "20a3_20210930", sha256="880242afdf4c84de7f2a3c42ab0ad8c354028a7d2d3c3160980cf3e08e285691" ) version( @@ -70,8 +69,7 @@ class Oommf(Package): ) version( - "20a2_20200608", - sha256="a3113f2aca0b6249ee99b2f4874f31de601bd7af12498d84f28706b265fa50ab", + "20a2_20200608", sha256="a3113f2aca0b6249ee99b2f4874f31de601bd7af12498d84f28706b265fa50ab" ) version( @@ -175,7 +173,6 @@ class Oommf(Package): def configure(self, spec, prefix): # change into directory with source code with working_dir(self.get_oommf_source_root()): - configure = Executable("./oommf.tcl pimake distclean") configure() configure2 = Executable("./oommf.tcl pimake upgrade") @@ -194,7 +191,6 @@ class Oommf(Package): oommfdir = self.get_oommf_path(prefix) with working_dir(self.get_oommf_source_root()): - install_tree(".", oommfdir) # The one file that is used directly by the users should be @@ -263,12 +259,7 @@ class Oommf(Package): # run "oommf +platform" options = [oommf_tcl_path, "+platform"] purpose = "Check oommf.tcl can execute (+platform)" - expected = [ - "OOMMF threads", - "OOMMF release", - "OOMMF API index", - "Temp file directory", - ] + expected = ["OOMMF threads", "OOMMF release", "OOMMF API index", "Temp file directory"] self.run_test( exe, options=options, diff --git a/var/spack/repos/builtin/packages/openblas/package.py b/var/spack/repos/builtin/packages/openblas/package.py index debc2d58ee..93d6b1ff93 100644 --- a/var/spack/repos/builtin/packages/openblas/package.py +++ b/var/spack/repos/builtin/packages/openblas/package.py @@ -463,10 +463,7 @@ class Openblas(MakefilePackage): @property def install_targets(self): - make_args = [ - "install", - "PREFIX={0}".format(self.prefix), - ] + make_args = ["install", "PREFIX={0}".format(self.prefix)] return make_args + self.make_defs @run_after("install") diff --git a/var/spack/repos/builtin/packages/opencv/package.py b/var/spack/repos/builtin/packages/opencv/package.py index eedadce858..03ac773771 100644 --- a/var/spack/repos/builtin/packages/opencv/package.py +++ b/var/spack/repos/builtin/packages/opencv/package.py @@ -21,82 +21,25 @@ class Opencv(CMakePackage, CudaPackage): version("master", branch="master") version("4.6.0", sha256="1ec1cba65f9f20fe5a41fda1586e01c70ea0c9a6d7b67c9e13edf0cfe2239277") version("4.5.5", sha256="a1cfdcf6619387ca9e232687504da996aaa9f7b5689986b8331ec02cb61d28ad") - version( - "4.5.4", - sha256="c20bb83dd790fc69df9f105477e24267706715a9d3c705ca1e7f613c7b3bad3d", - ) - version( - "4.5.2", - sha256="ae258ed50aa039279c3d36afdea5c6ecf762515836b27871a8957c610d0424f8", - ) - version( - "4.5.1", - sha256="e27fe5b168918ab60d58d7ace2bd82dd14a4d0bd1d3ae182952c2113f5637513", - ) - version( - "4.5.0", - sha256="dde4bf8d6639a5d3fe34d5515eab4a15669ded609a1d622350c7ff20dace1907", - ) - version( - "4.2.0", - sha256="9ccb2192d7e8c03c58fee07051364d94ed7599363f3b0dce1c5e6cc11c1bb0ec", - ) - version( - "4.1.2", - sha256="385dd0a9c25e67ef0dd60e022d2a2d7b17e2f36819cf3cb46aa8cdff5c5282c9", - ) - version( - "4.1.1", - sha256="5de5d96bdfb9dad6e6061d70f47a0a91cee96bb35afb9afb9ecb3d43e243d217", - ) - version( - "4.1.0", - sha256="8f6e4ab393d81d72caae6e78bd0fd6956117ec9f006fba55fcdb88caf62989b7", - ) - version( - "4.0.1", - sha256="7b86a0ee804244e0c407321f895b15e4a7162e9c5c0d2efc85f1cadec4011af4", - ) - version( - "4.0.0", - sha256="3787b3cc7b21bba1441819cb00c636911a846c0392ddf6211d398040a1e4886c", - ) - version( - "3.4.12", - sha256="c8919dfb5ead6be67534bf794cb0925534311f1cd5c6680f8164ad1813c88d13", - ) - version( - "3.4.6", - sha256="e7d311ff97f376b8ee85112e2b536dbf4bdf1233673500175ed7cf21a0089f6d", - ) - version( - "3.4.5", - sha256="0c57d9dd6d30cbffe68a09b03f4bebe773ee44dc8ff5cd6eaeb7f4d5ef3b428e", - ) - version( - "3.4.4", - sha256="a35b00a71d77b484f73ec485c65fe56c7a6fa48acd5ce55c197aef2e13c78746", - ) - version( - "3.4.3", - sha256="4eef85759d5450b183459ff216b4c0fa43e87a4f6aa92c8af649f89336f002ec", - ) - version( - "3.4.1", - sha256="f1b87684d75496a1054405ae3ee0b6573acaf3dad39eaf4f1d66fdd7e03dc852", - ) - version( - "3.4.0", - sha256="678cc3d2d1b3464b512b084a8cca1fad7de207c7abdf2caa1fed636c13e916da", - ) - version( - "3.3.1", - sha256="5dca3bb0d661af311e25a72b04a7e4c22c47c1aa86eb73e70063cd378a2aa6ee", - ) - version( - "3.3.0", - sha256="8bb312b9d9fd17336dc1f8b3ac82f021ca50e2034afc866098866176d985adc6", - ) + version("4.5.4", sha256="c20bb83dd790fc69df9f105477e24267706715a9d3c705ca1e7f613c7b3bad3d") + version("4.5.2", sha256="ae258ed50aa039279c3d36afdea5c6ecf762515836b27871a8957c610d0424f8") + version("4.5.1", sha256="e27fe5b168918ab60d58d7ace2bd82dd14a4d0bd1d3ae182952c2113f5637513") + version("4.5.0", sha256="dde4bf8d6639a5d3fe34d5515eab4a15669ded609a1d622350c7ff20dace1907") + version("4.2.0", sha256="9ccb2192d7e8c03c58fee07051364d94ed7599363f3b0dce1c5e6cc11c1bb0ec") + version("4.1.2", sha256="385dd0a9c25e67ef0dd60e022d2a2d7b17e2f36819cf3cb46aa8cdff5c5282c9") + version("4.1.1", sha256="5de5d96bdfb9dad6e6061d70f47a0a91cee96bb35afb9afb9ecb3d43e243d217") + version("4.1.0", sha256="8f6e4ab393d81d72caae6e78bd0fd6956117ec9f006fba55fcdb88caf62989b7") + version("4.0.1", sha256="7b86a0ee804244e0c407321f895b15e4a7162e9c5c0d2efc85f1cadec4011af4") + version("4.0.0", sha256="3787b3cc7b21bba1441819cb00c636911a846c0392ddf6211d398040a1e4886c") + version("3.4.12", sha256="c8919dfb5ead6be67534bf794cb0925534311f1cd5c6680f8164ad1813c88d13") + version("3.4.6", sha256="e7d311ff97f376b8ee85112e2b536dbf4bdf1233673500175ed7cf21a0089f6d") + version("3.4.5", sha256="0c57d9dd6d30cbffe68a09b03f4bebe773ee44dc8ff5cd6eaeb7f4d5ef3b428e") + version("3.4.4", sha256="a35b00a71d77b484f73ec485c65fe56c7a6fa48acd5ce55c197aef2e13c78746") + version("3.4.3", sha256="4eef85759d5450b183459ff216b4c0fa43e87a4f6aa92c8af649f89336f002ec") + version("3.4.1", sha256="f1b87684d75496a1054405ae3ee0b6573acaf3dad39eaf4f1d66fdd7e03dc852") + version("3.4.0", sha256="678cc3d2d1b3464b512b084a8cca1fad7de207c7abdf2caa1fed636c13e916da") + version("3.3.1", sha256="5dca3bb0d661af311e25a72b04a7e4c22c47c1aa86eb73e70063cd378a2aa6ee") + version("3.3.0", sha256="8bb312b9d9fd17336dc1f8b3ac82f021ca50e2034afc866098866176d985adc6") contrib_vers = [ "3.3.0", @@ -235,10 +178,7 @@ class Opencv(CMakePackage, CudaPackage): # These need additional spack packages # js needs Emscripten - modules_pending = [ - "js", - "js_bindings_generator", - ] + modules_pending = ["js", "js_bindings_generator"] # Define the list of libraries objects that may be used # to find an external installation and its variants @@ -770,11 +710,7 @@ class Opencv(CMakePackage, CudaPackage): component_and_module = ["freetype", "julia", "matlab"] for component in components: - variant( - component, - default=False, - description="Include {0} support".format(component), - ) + variant(component, default=False, description="Include {0} support".format(component)) # Other (variants) variant("shared", default=True, description="Enables the build of shared libraries") @@ -924,9 +860,7 @@ class Opencv(CMakePackage, CudaPackage): def cmake_args(self): spec = self.spec - args = [ - self.define("BUILD_opencv_core", "on"), - ] + args = [self.define("BUILD_opencv_core", "on")] if self.spec.satisfies("+contrib"): args.append( @@ -1094,10 +1028,7 @@ class Opencv(CMakePackage, CudaPackage): ) else: args.extend( - [ - self.define("PYTHON2_EXECUTABLE", ""), - self.define("PYTHON3_EXECUTABLE", ""), - ] + [self.define("PYTHON2_EXECUTABLE", ""), self.define("PYTHON3_EXECUTABLE", "")] ) return args diff --git a/var/spack/repos/builtin/packages/openfast/package.py b/var/spack/repos/builtin/packages/openfast/package.py index c04db3035c..247756313c 100644 --- a/var/spack/repos/builtin/packages/openfast/package.py +++ b/var/spack/repos/builtin/packages/openfast/package.py @@ -98,18 +98,10 @@ class Openfast(CMakePackage): options.extend([self.define("NETCDF_ROOT", spec["netcdf-c"].prefix)]) if "~shared" in spec: - options.extend( - [ - self.define("HDF5_USE_STATIC_LIBRARIES", True), - ] - ) + options.extend([self.define("HDF5_USE_STATIC_LIBRARIES", True)]) if "+openmp" in spec: - options.extend( - [ - self.define("OPENMP", True), - ] - ) + options.extend([self.define("OPENMP", True)]) return options diff --git a/var/spack/repos/builtin/packages/openfoam-org/package.py b/var/spack/repos/builtin/packages/openfoam-org/package.py index 046650bd74..8ff1e4654f 100644 --- a/var/spack/repos/builtin/packages/openfoam-org/package.py +++ b/var/spack/repos/builtin/packages/openfoam-org/package.py @@ -307,9 +307,7 @@ class OpenfoamOrg(Package): } if "+metis" in spec: - self.etc_config["metis"] = { - "METIS_ARCH_PATH": spec["metis"].prefix, - } + self.etc_config["metis"] = {"METIS_ARCH_PATH": spec["metis"].prefix} # Write prefs files according to the configuration. # Only need prefs.sh for building, but install both for end-users diff --git a/var/spack/repos/builtin/packages/openfoam/package.py b/var/spack/repos/builtin/packages/openfoam/package.py index 67fb2a73ba..becd46044a 100644 --- a/var/spack/repos/builtin/packages/openfoam/package.py +++ b/var/spack/repos/builtin/packages/openfoam/package.py @@ -495,7 +495,7 @@ class Openfoam(Package): "(FOAM|WM)_.*USER_.*", ], whitelist=[ # Whitelist these - "MPI_ARCH_PATH", # Can be required for compilation + "MPI_ARCH_PATH" # Can be required for compilation ], ) @@ -569,7 +569,7 @@ class Openfoam(Package): # Avoid WM_PROJECT_INST_DIR for ThirdParty # This modification is non-critical edits = { - "WM_THIRD_PARTY_DIR": r"$WM_PROJECT_DIR/ThirdParty #SPACK: No separate third-party", + "WM_THIRD_PARTY_DIR": r"$WM_PROJECT_DIR/ThirdParty #SPACK: No separate third-party" } rewrite_environ_files( # etc/{bashrc,cshrc} edits, posix=join_path("etc", "bashrc"), cshell=join_path("etc", "cshrc") @@ -720,14 +720,10 @@ class Openfoam(Package): } if "+kahip" in spec: - self.etc_config["kahip"] = { - "KAHIP_ARCH_PATH": spec["kahip"].prefix, - } + self.etc_config["kahip"] = {"KAHIP_ARCH_PATH": spec["kahip"].prefix} if "+metis" in spec: - self.etc_config["metis"] = { - "METIS_ARCH_PATH": spec["metis"].prefix, - } + self.etc_config["metis"] = {"METIS_ARCH_PATH": spec["metis"].prefix} # ParaView_INCLUDE_DIR is not used in 1812, but has no ill-effect if "+paraview" in spec: @@ -789,9 +785,7 @@ class Openfoam(Package): mkdirp(self.projectdir) # Filtering: bashrc, cshrc - edits = { - "WM_PROJECT_DIR": self.projectdir, - } + edits = {"WM_PROJECT_DIR": self.projectdir} etc_dir = join_path(self.projectdir, "etc") rewrite_environ_files( # Adjust etc/bashrc and etc/cshrc edits, posix=join_path(etc_dir, "bashrc"), cshell=join_path(etc_dir, "cshrc") diff --git a/var/spack/repos/builtin/packages/openldap/package.py b/var/spack/repos/builtin/packages/openldap/package.py index 8cf42cb525..eb1b5ae20e 100644 --- a/var/spack/repos/builtin/packages/openldap/package.py +++ b/var/spack/repos/builtin/packages/openldap/package.py @@ -62,11 +62,7 @@ class Openldap(AutotoolsPackage): # Ref: https://www.linuxfromscratch.org/blfs/view/svn/server/openldap.html @when("+client_only") def configure_args(self): - args = [ - "CPPFLAGS=-D_GNU_SOURCE", - "--disable-debug", - "--disable-slapd", - ] + args = ["CPPFLAGS=-D_GNU_SOURCE", "--disable-debug", "--disable-slapd"] args += self.with_or_without("cyrus-sasl", variant="sasl") args += self.enable_or_disable("static") args += self.enable_or_disable("shared") diff --git a/var/spack/repos/builtin/packages/openlibm/package.py b/var/spack/repos/builtin/packages/openlibm/package.py index b2f4381537..4172641577 100644 --- a/var/spack/repos/builtin/packages/openlibm/package.py +++ b/var/spack/repos/builtin/packages/openlibm/package.py @@ -28,7 +28,5 @@ class Openlibm(MakefilePackage): make(*args) def install(self, spec, prefix): - args = [ - "prefix={0}".format(prefix), - ] + args = ["prefix={0}".format(prefix)] make("install", *args) diff --git a/var/spack/repos/builtin/packages/openmpi/package.py b/var/spack/repos/builtin/packages/openmpi/package.py index 0d4ff14144..d9112884c3 100644 --- a/var/spack/repos/builtin/packages/openmpi/package.py +++ b/var/spack/repos/builtin/packages/openmpi/package.py @@ -952,11 +952,7 @@ class Openmpi(AutotoolsPackage, CudaPackage): config_args.extend(self.enable_or_disable("memchecker")) if spec.satisfies("+memchecker", strict=True): - config_args.extend( - [ - "--enable-debug", - ] - ) + config_args.extend(["--enable-debug"]) # Package dependencies for dep in ["libevent", "lustre", "pmix", "singularity", "valgrind", "zlib"]: diff --git a/var/spack/repos/builtin/packages/openscenegraph/package.py b/var/spack/repos/builtin/packages/openscenegraph/package.py index d0629d5caf..273c91fa2b 100644 --- a/var/spack/repos/builtin/packages/openscenegraph/package.py +++ b/var/spack/repos/builtin/packages/openscenegraph/package.py @@ -79,11 +79,6 @@ class Openscenegraph(CMakePackage): # NOTE: This is necessary in order to allow OpenSceneGraph to compile # despite containing a number of implicit bool to int conversions. if spec.satisfies("%gcc"): - args.extend( - [ - "-DCMAKE_C_FLAGS=-fpermissive", - "-DCMAKE_CXX_FLAGS=-fpermissive", - ] - ) + args.extend(["-DCMAKE_C_FLAGS=-fpermissive", "-DCMAKE_CXX_FLAGS=-fpermissive"]) return args diff --git a/var/spack/repos/builtin/packages/openspeedshop-utils/package.py b/var/spack/repos/builtin/packages/openspeedshop-utils/package.py index d2ab1df988..f1ffaa0898 100644 --- a/var/spack/repos/builtin/packages/openspeedshop-utils/package.py +++ b/var/spack/repos/builtin/packages/openspeedshop-utils/package.py @@ -207,7 +207,6 @@ class OpenspeedshopUtils(CMakePackage): ) else: - # Appends base options to cmake_args self.set_defaultbase_cmake_options(spec, cmake_args) cmake_args.extend( diff --git a/var/spack/repos/builtin/packages/openspeedshop/package.py b/var/spack/repos/builtin/packages/openspeedshop/package.py index 5f1a74bac8..ae4e733d59 100644 --- a/var/spack/repos/builtin/packages/openspeedshop/package.py +++ b/var/spack/repos/builtin/packages/openspeedshop/package.py @@ -187,7 +187,6 @@ class Openspeedshop(CMakePackage): cmake_options.extend(cray_login_node_options) def cmake_args(self): - spec = self.spec compile_flags = "-O2 -g -Wall" @@ -215,7 +214,6 @@ class Openspeedshop(CMakePackage): cmake_args.extend(["-DCBTF_ARGONAVIS_DIR=%s" % spec["cbtf-argonavis"].prefix]) else: - # Appends base options to cmake_args self.set_defaultbase_cmake_options(spec, cmake_args) guitype = self.spec.variants["gui"].value diff --git a/var/spack/repos/builtin/packages/openssl/package.py b/var/spack/repos/builtin/packages/openssl/package.py index 5c3d57ce34..87b5997eed 100644 --- a/var/spack/repos/builtin/packages/openssl/package.py +++ b/var/spack/repos/builtin/packages/openssl/package.py @@ -400,11 +400,7 @@ class Openssl(Package): # Uses Fake Autotools, should subclass Package ] if spec.satisfies("platform=windows"): base_args.extend( - [ - 'CC="%s"' % os.environ.get("CC"), - 'CXX="%s"' % os.environ.get("CXX"), - "VC-WIN64A", - ] + ['CC="%s"' % os.environ.get("CC"), 'CXX="%s"' % os.environ.get("CXX"), "VC-WIN64A"] ) if spec.satisfies("~shared"): base_args.append("no-shared") diff --git a/var/spack/repos/builtin/packages/ophidia-analytics-framework/package.py b/var/spack/repos/builtin/packages/ophidia-analytics-framework/package.py index 256bd193c5..df667080a8 100644 --- a/var/spack/repos/builtin/packages/ophidia-analytics-framework/package.py +++ b/var/spack/repos/builtin/packages/ophidia-analytics-framework/package.py @@ -12,10 +12,7 @@ class OphidiaAnalyticsFramework(AutotoolsPackage): homepage = "https://github.com/OphidiaBigData/ophidia-analytics-framework" url = "https://github.com/OphidiaBigData/ophidia-analytics-framework/archive/refs/tags/v1.7.1.tar.gz" maintainers("eldoo", "SoniaScard") - version( - "1.7.1", - sha256="565050b90ce1cefc59136c835a335ca7981fec792df7a1ee9309b24c05b275d6", - ) + version("1.7.1", sha256="565050b90ce1cefc59136c835a335ca7981fec792df7a1ee9309b24c05b275d6") depends_on("autoconf", type="build") depends_on("automake", type="build") diff --git a/var/spack/repos/builtin/packages/ophidia-primitives/package.py b/var/spack/repos/builtin/packages/ophidia-primitives/package.py index deb6b0aaaf..65004e3077 100644 --- a/var/spack/repos/builtin/packages/ophidia-primitives/package.py +++ b/var/spack/repos/builtin/packages/ophidia-primitives/package.py @@ -12,10 +12,7 @@ class OphidiaPrimitives(AutotoolsPackage): homepage = "https://github.com/OphidiaBigData/ophidia-primitives" url = "https://github.com/OphidiaBigData/ophidia-primitives/archive/refs/tags/v1.7.1.tar.gz" maintainers("eldoo", "SoniaScard") - version( - "1.7.1", - sha256="efec5248dca8fb766abcd536344eefbe2e970fb551f03454a968e59e2df69116", - ) + version("1.7.1", sha256="efec5248dca8fb766abcd536344eefbe2e970fb551f03454a968e59e2df69116") depends_on("autoconf", type="build") depends_on("automake", type="build") diff --git a/var/spack/repos/builtin/packages/ophidia-server/package.py b/var/spack/repos/builtin/packages/ophidia-server/package.py index 8a69576ed4..30af696c19 100644 --- a/var/spack/repos/builtin/packages/ophidia-server/package.py +++ b/var/spack/repos/builtin/packages/ophidia-server/package.py @@ -12,10 +12,7 @@ class OphidiaServer(AutotoolsPackage): homepage = "https://github.com/SoniaScard/ophidia-server" url = "https://github.com/SoniaScard/ophidia-server/archive/refs/tags/v1.7.2.tar.gz" maintainers("eldoo", "SoniaScard") - version( - "1.7.2", - sha256="452587775343b266bbb5adcfeee64e7f7e9a9bbfcb2133646a831ae3e74348be", - ) + version("1.7.2", sha256="452587775343b266bbb5adcfeee64e7f7e9a9bbfcb2133646a831ae3e74348be") depends_on("autoconf", type="build") depends_on("automake", type="build") diff --git a/var/spack/repos/builtin/packages/osg-ca-certs/package.py b/var/spack/repos/builtin/packages/osg-ca-certs/package.py index 72f2e13ecc..d000336f99 100644 --- a/var/spack/repos/builtin/packages/osg-ca-certs/package.py +++ b/var/spack/repos/builtin/packages/osg-ca-certs/package.py @@ -25,7 +25,7 @@ class OsgCaCerts(Package): "igtf_version": "1.117", "osg_sha256": "41e12c05aedb4df729bf326318cc29b9b79eb097564fd68c6af2e1448ec74f75", "igtf_sha256": "130d4d95cd65d01d2db250ee24c539341e3adc899b7eff1beafef1ba4674807d", - }, + } ] for release in releases: diff --git a/var/spack/repos/builtin/packages/papyrus/package.py b/var/spack/repos/builtin/packages/papyrus/package.py index 307d72969c..fc958b6ec9 100644 --- a/var/spack/repos/builtin/packages/papyrus/package.py +++ b/var/spack/repos/builtin/packages/papyrus/package.py @@ -72,7 +72,6 @@ class Papyrus(CMakePackage): ] for example in example_list: - test_dir = join_path(self.test_suite.current_test_cache_dir, "kv", "tests", example) test_example = "test{0}.c".format(example) diff --git a/var/spack/repos/builtin/packages/parallel-netcdf/package.py b/var/spack/repos/builtin/packages/parallel-netcdf/package.py index 879787eab1..10df11203b 100644 --- a/var/spack/repos/builtin/packages/parallel-netcdf/package.py +++ b/var/spack/repos/builtin/packages/parallel-netcdf/package.py @@ -115,12 +115,7 @@ class ParallelNetcdf(AutotoolsPackage): args += self.enable_or_disable("cxx") args += self.enable_or_disable("fortran") - flags = { - "CFLAGS": [], - "CXXFLAGS": [], - "FFLAGS": [], - "FCFLAGS": [], - } + flags = {"CFLAGS": [], "CXXFLAGS": [], "FFLAGS": [], "FCFLAGS": []} if "+pic" in self.spec: flags["CFLAGS"].append(self.compiler.cc_pic_flag) diff --git a/var/spack/repos/builtin/packages/parallel/package.py b/var/spack/repos/builtin/packages/parallel/package.py index 7ddbf13ff7..929aca733c 100644 --- a/var/spack/repos/builtin/packages/parallel/package.py +++ b/var/spack/repos/builtin/packages/parallel/package.py @@ -45,10 +45,5 @@ class Parallel(AutotoolsPackage, GNUMirrorPackage): with working_dir("src"): match = "^#!/usr/bin/env perl|^#!/usr/bin/perl.*" substitute = "#!{perl}".format(perl=perl) - files = [ - "parallel", - "niceload", - "parcat", - "sql", - ] + files = ["parallel", "niceload", "parcat", "sql"] filter_file(match, substitute, *files, **kwargs) diff --git a/var/spack/repos/builtin/packages/parallelio/package.py b/var/spack/repos/builtin/packages/parallelio/package.py index 1d840b9fca..b6baf73174 100644 --- a/var/spack/repos/builtin/packages/parallelio/package.py +++ b/var/spack/repos/builtin/packages/parallelio/package.py @@ -63,17 +63,9 @@ class Parallelio(CMakePackage): define("PIO_ENABLE_EXAMPLES", False), ] if spec.satisfies("+pnetcdf"): - args.extend( - [ - define("PnetCDF_C_PATH", spec["parallel-netcdf"].prefix), - ] - ) + args.extend([define("PnetCDF_C_PATH", spec["parallel-netcdf"].prefix)]) if spec.satisfies("+fortran"): - args.extend( - [ - define("NetCDF_Fortran_PATH", spec["netcdf-fortran"].prefix), - ] - ) + args.extend([define("NetCDF_Fortran_PATH", spec["netcdf-fortran"].prefix)]) if spec.satisfies("+mpi"): env["CC"] = spec["mpi"].mpicc env["FC"] = spec["mpi"].mpifc diff --git a/var/spack/repos/builtin/packages/paraview/package.py b/var/spack/repos/builtin/packages/paraview/package.py index 702f9b800c..aed59960bc 100644 --- a/var/spack/repos/builtin/packages/paraview/package.py +++ b/var/spack/repos/builtin/packages/paraview/package.py @@ -472,11 +472,7 @@ class Paraview(CMakePackage, CudaPackage, ROCmPackage): # The assumed qt version changed to QT5 (as of paraview 5.2.1), # so explicitly specify which QT major version is actually being used if "+qt" in spec: - cmake_args.extend( - [ - "-DPARAVIEW_QT_VERSION=%s" % spec["qt"].version[0], - ] - ) + cmake_args.extend(["-DPARAVIEW_QT_VERSION=%s" % spec["qt"].version[0]]) if "+fortran" in spec: cmake_args.append("-DPARAVIEW_USE_FORTRAN:BOOL=ON") @@ -563,10 +559,7 @@ class Paraview(CMakePackage, CudaPackage, ROCmPackage): if "darwin" in spec.architecture: cmake_args.extend( - [ - "-DVTK_USE_X:BOOL=OFF", - "-DPARAVIEW_DO_UNIX_STYLE_INSTALLS:BOOL=ON", - ] + ["-DVTK_USE_X:BOOL=OFF", "-DPARAVIEW_DO_UNIX_STYLE_INSTALLS:BOOL=ON"] ) if "+kits" in spec: diff --git a/var/spack/repos/builtin/packages/pdftk/package.py b/var/spack/repos/builtin/packages/pdftk/package.py index 01284dae2e..85e93902cf 100644 --- a/var/spack/repos/builtin/packages/pdftk/package.py +++ b/var/spack/repos/builtin/packages/pdftk/package.py @@ -30,7 +30,6 @@ class Pdftk(MakefilePackage): # https://www.pdflabs.com/docs/install-pdftk-on-redhat-or-centos/ def edit(self, spec, prefix): - # ------ Fix install directory in main Makefile makefile = FileFilter(join_path("pdftk", "Makefile.Base")) makefile.filter("/usr/local/bin", spec.prefix.bin) diff --git a/var/spack/repos/builtin/packages/pegtl/package.py b/var/spack/repos/builtin/packages/pegtl/package.py index e6c03ab3f7..8384ed9128 100644 --- a/var/spack/repos/builtin/packages/pegtl/package.py +++ b/var/spack/repos/builtin/packages/pegtl/package.py @@ -33,7 +33,6 @@ class Pegtl(CMakePackage): patch(patch_url, sha256=patch_checksum, level=0, when="@2.1.4:2.8.3") def cmake_args(self): - args = [] if self.run_tests: args.extend(["-DPEGTL_BUILD_EXAMPLES=ON", "-DPEGTL_BUILD_TESTS=ON"]) diff --git a/var/spack/repos/builtin/packages/perl-fth/package.py b/var/spack/repos/builtin/packages/perl-fth/package.py index e629426a60..d2a68a4d80 100644 --- a/var/spack/repos/builtin/packages/perl-fth/package.py +++ b/var/spack/repos/builtin/packages/perl-fth/package.py @@ -113,10 +113,7 @@ class PerlFth(Package): fthfile.filter("#!/usr/bin/env perl", mstr, backup=False) # Adds a Makefile with an rsync rule - makefile_inc = [ - "RSYNC_OPTS = -avuzL", - "RSYNC = rsync", - ] + makefile_inc = ["RSYNC_OPTS = -avuzL", "RSYNC = rsync"] makefile_inc.append("install:") makefile_inc.append("\t$(RSYNC) $(RSYNC_OPTS) . %s" % prefix) makefile_inc.append("") diff --git a/var/spack/repos/builtin/packages/perl/package.py b/var/spack/repos/builtin/packages/perl/package.py index 0e2e4a0202..429530d564 100644 --- a/var/spack/repos/builtin/packages/perl/package.py +++ b/var/spack/repos/builtin/packages/perl/package.py @@ -52,38 +52,14 @@ class Perl(Package): # Perl doesn't use Autotools, it should subclass Package sha256="e26085af8ac396f62add8a533c3a0ea8c8497d836f0689347ac5abd7b7a4e00a", preferred=True, ) - version( - "5.34.1", - sha256="357951a491b0ba1ce3611263922feec78ccd581dddc24a446b033e25acf242a1", - ) - version( - "5.34.0", - sha256="551efc818b968b05216024fb0b727ef2ad4c100f8cb6b43fab615fa78ae5be9a", - ) - version( - "5.32.1", - sha256="03b693901cd8ae807231b1787798cf1f2e0b8a56218d07b7da44f784a7caeb2c", - ) - version( - "5.32.0", - sha256="efeb1ce1f10824190ad1cadbcccf6fdb8a5d37007d0100d2d9ae5f2b5900c0b4", - ) - version( - "5.30.3", - sha256="32e04c8bb7b1aecb2742a7f7ac0eabac100f38247352a73ad7fa104e39e7406f", - ) - version( - "5.30.2", - sha256="66db7df8a91979eb576fac91743644da878244cf8ee152f02cd6f5cd7a731689", - ) - version( - "5.30.1", - sha256="bf3d25571ff1ee94186177c2cdef87867fd6a14aa5a84f0b1fb7bf798f42f964", - ) - version( - "5.30.0", - sha256="851213c754d98ccff042caa40ba7a796b2cee88c5325f121be5cbb61bbf975f2", - ) + version("5.34.1", sha256="357951a491b0ba1ce3611263922feec78ccd581dddc24a446b033e25acf242a1") + version("5.34.0", sha256="551efc818b968b05216024fb0b727ef2ad4c100f8cb6b43fab615fa78ae5be9a") + version("5.32.1", sha256="03b693901cd8ae807231b1787798cf1f2e0b8a56218d07b7da44f784a7caeb2c") + version("5.32.0", sha256="efeb1ce1f10824190ad1cadbcccf6fdb8a5d37007d0100d2d9ae5f2b5900c0b4") + version("5.30.3", sha256="32e04c8bb7b1aecb2742a7f7ac0eabac100f38247352a73ad7fa104e39e7406f") + version("5.30.2", sha256="66db7df8a91979eb576fac91743644da878244cf8ee152f02cd6f5cd7a731689") + version("5.30.1", sha256="bf3d25571ff1ee94186177c2cdef87867fd6a14aa5a84f0b1fb7bf798f42f964") + version("5.30.0", sha256="851213c754d98ccff042caa40ba7a796b2cee88c5325f121be5cbb61bbf975f2") # End of life releases version("5.28.0", sha256="7e929f64d4cb0e9d1159d4a59fc89394e27fa1f7004d0836ca0d514685406ea8") @@ -394,7 +370,6 @@ class Perl(Package): # Perl doesn't use Autotools, it should subclass Package # If system perl is used through packages.yaml # there cannot be extensions. if dependent_spec.package.is_extension: - # perl extension builds can have a global perl # executable function module.perl = self.spec["perl"].command diff --git a/var/spack/repos/builtin/packages/pexsi/package.py b/var/spack/repos/builtin/packages/pexsi/package.py index cb4a118e82..47a550c103 100644 --- a/var/spack/repos/builtin/packages/pexsi/package.py +++ b/var/spack/repos/builtin/packages/pexsi/package.py @@ -39,7 +39,6 @@ class Pexsi(MakefilePackage): parallel = False def edit(self, spec, prefix): - substitutions = [ ("@MPICC", self.spec["mpi"].mpicc), ("@MPICXX_LIB", self.spec["mpi:cxx"].libs.joined()), @@ -79,7 +78,6 @@ class Pexsi(MakefilePackage): make("-C", "fortran") def install(self, spec, prefix): - # 'make install' does not exist, despite what documentation says mkdirp(self.prefix.lib) diff --git a/var/spack/repos/builtin/packages/pfunit/package.py b/var/spack/repos/builtin/packages/pfunit/package.py index 193496f786..b61007eb5c 100644 --- a/var/spack/repos/builtin/packages/pfunit/package.py +++ b/var/spack/repos/builtin/packages/pfunit/package.py @@ -117,11 +117,7 @@ class Pfunit(CMakePackage): msg="CMake 3.25.0 has a bug with pFUnit. Please use another version.", ) - conflicts( - "%gcc@:8.3.9", - when="@4.0.0:", - msg="pFUnit requires GCC 8.4.0 or newer", - ) + conflicts("%gcc@:8.3.9", when="@4.0.0:", msg="pFUnit requires GCC 8.4.0 or newer") patch("mpi-test.patch", when="+use_comm_world") diff --git a/var/spack/repos/builtin/packages/pgplot/package.py b/var/spack/repos/builtin/packages/pgplot/package.py index 01a3531836..45863c19fa 100644 --- a/var/spack/repos/builtin/packages/pgplot/package.py +++ b/var/spack/repos/builtin/packages/pgplot/package.py @@ -49,7 +49,6 @@ class Pgplot(MakefilePackage): depends_on("libpng", when="+png") def edit(self, spec, prefix): - libs = "" if "+X" in spec: libs += " " + self.spec["libx11"].libs.ld_flags diff --git a/var/spack/repos/builtin/packages/piranha/package.py b/var/spack/repos/builtin/packages/piranha/package.py index 1f07d49151..c346ba1b27 100644 --- a/var/spack/repos/builtin/packages/piranha/package.py +++ b/var/spack/repos/builtin/packages/piranha/package.py @@ -39,7 +39,4 @@ class Piranha(CMakePackage): depends_on("mpfr") # Could also be built against mpir def cmake_args(self): - return [ - self.define_from_variant("BUILD_PYRANHA", "python"), - "-DBUILD_TESTS:BOOL=ON", - ] + return [self.define_from_variant("BUILD_PYRANHA", "python"), "-DBUILD_TESTS:BOOL=ON"] diff --git a/var/spack/repos/builtin/packages/pixman/package.py b/var/spack/repos/builtin/packages/pixman/package.py index cdb795256c..55b5bf090e 100644 --- a/var/spack/repos/builtin/packages/pixman/package.py +++ b/var/spack/repos/builtin/packages/pixman/package.py @@ -59,10 +59,7 @@ class Pixman(AutotoolsPackage): return find_libraries("libpixman-1", self.prefix, shared=True, recursive=True) def configure_args(self): - args = [ - "--enable-libpng", - "--disable-gtk", - ] + args = ["--enable-libpng", "--disable-gtk"] if sys.platform == "darwin": args.append("--disable-mmx") diff --git a/var/spack/repos/builtin/packages/plplot/package.py b/var/spack/repos/builtin/packages/plplot/package.py index 9b7dda666e..d210cadc8c 100644 --- a/var/spack/repos/builtin/packages/plplot/package.py +++ b/var/spack/repos/builtin/packages/plplot/package.py @@ -72,22 +72,16 @@ class Plplot(CMakePackage): "-DTCL_LIBRARY={0}".format( LibraryList( find_libraries( - "libtcl*", - self.spec["tcl"].prefix, - shared=True, - recursive=True, + "libtcl*", self.spec["tcl"].prefix, shared=True, recursive=True ) - ), + ) ), "-DTCL_STUB_LIBRARY={0}".format( LibraryList( find_libraries( - "libtclstub*", - self.spec["tcl"].prefix, - shared=False, - recursive=True, + "libtclstub*", self.spec["tcl"].prefix, shared=False, recursive=True ) - ), + ) ), ] else: diff --git a/var/spack/repos/builtin/packages/plumed/package.py b/var/spack/repos/builtin/packages/plumed/package.py index e7063638c1..3fd553e743 100644 --- a/var/spack/repos/builtin/packages/plumed/package.py +++ b/var/spack/repos/builtin/packages/plumed/package.py @@ -167,7 +167,6 @@ class Plumed(AutotoolsPackage): parallel = False def apply_patch(self, other): - # The name of MD engines differ slightly from the ones used in Spack format_strings = collections.defaultdict(lambda: "{0.name}-{0.version}") format_strings["espresso"] = "q{0.name}-{0.version}" diff --git a/var/spack/repos/builtin/packages/podman/package.py b/var/spack/repos/builtin/packages/podman/package.py index fcc9f39b18..18d9f01081 100644 --- a/var/spack/repos/builtin/packages/podman/package.py +++ b/var/spack/repos/builtin/packages/podman/package.py @@ -60,9 +60,7 @@ class Podman(Package): ) # Use the podman install prefix as fallback path for finding container.conf filter_file( - r"/usr", - self.prefix, - "vendor/github.com/containers/common/pkg/config/config.go", + r"/usr", self.prefix, "vendor/github.com/containers/common/pkg/config/config.go" ) def install(self, spec, prefix): diff --git a/var/spack/repos/builtin/packages/poppler/package.py b/var/spack/repos/builtin/packages/poppler/package.py index 1f2fb00dba..b0a266a9b0 100644 --- a/var/spack/repos/builtin/packages/poppler/package.py +++ b/var/spack/repos/builtin/packages/poppler/package.py @@ -105,21 +105,9 @@ class Poppler(CMakePackage): args.append("-DENABLE_CPP=OFF") if "+glib" in spec: - args.extend( - [ - "-DENABLE_GLIB=ON", - "-DWITH_GLIB=ON", - "-DWITH_Cairo=ON", - ] - ) + args.extend(["-DENABLE_GLIB=ON", "-DWITH_GLIB=ON", "-DWITH_Cairo=ON"]) else: - args.extend( - [ - "-DENABLE_GLIB=OFF", - "-DWITH_GLIB=OFF", - "-DWITH_Cairo=OFF", - ] - ) + args.extend(["-DENABLE_GLIB=OFF", "-DWITH_GLIB=OFF", "-DWITH_Cairo=OFF"]) if "+gobject" in spec: args.append("-DENABLE_GOBJECT_INTROSPECTION=ON") diff --git a/var/spack/repos/builtin/packages/ppopen-appl-amr-fdm/package.py b/var/spack/repos/builtin/packages/ppopen-appl-amr-fdm/package.py index e05393700c..24d6718288 100644 --- a/var/spack/repos/builtin/packages/ppopen-appl-amr-fdm/package.py +++ b/var/spack/repos/builtin/packages/ppopen-appl-amr-fdm/package.py @@ -27,10 +27,7 @@ class PpopenApplAmrFdm(MakefilePackage): mkdirp("bin") mkdirp("lib") mkdirp("include") - fflags = [ - "-O3", - "-I.", - ] + fflags = ["-O3", "-I."] makefile_in = FileFilter("Makefile.in") makefile_in.filter("^PREFIX +=.*", "PREFIX = {0}".format(prefix)) makefile_in.filter("^INCDIR +=.*", "INCDIR = {0}/include".format(self.build_directory)) diff --git a/var/spack/repos/builtin/packages/prank/package.py b/var/spack/repos/builtin/packages/prank/package.py index 96b1034d51..367b54a5af 100644 --- a/var/spack/repos/builtin/packages/prank/package.py +++ b/var/spack/repos/builtin/packages/prank/package.py @@ -21,7 +21,6 @@ class Prank(Package): def install(self, spec, prefix): with working_dir("src"): - filter_file("gcc", "{0}".format(spack_cc), "Makefile", string=True) filter_file("g++", "{0}".format(spack_cxx), "Makefile", string=True) if not spec.target.family == "x86_64": diff --git a/var/spack/repos/builtin/packages/precice/package.py b/var/spack/repos/builtin/packages/precice/package.py index f6d68b2f18..7c47b7b32a 100644 --- a/var/spack/repos/builtin/packages/precice/package.py +++ b/var/spack/repos/builtin/packages/precice/package.py @@ -107,9 +107,7 @@ class Precice(CMakePackage): return on return off - cmake_args = [ - "-DBUILD_SHARED_LIBS:BOOL=%s" % variant_bool("+shared"), - ] + cmake_args = ["-DBUILD_SHARED_LIBS:BOOL=%s" % variant_bool("+shared")] cmake_args.append("-D%s:BOOL=%s" % (mpi_option, variant_bool("+mpi"))) diff --git a/var/spack/repos/builtin/packages/prism/package.py b/var/spack/repos/builtin/packages/prism/package.py index 42a44c29a1..1bc67ffa83 100644 --- a/var/spack/repos/builtin/packages/prism/package.py +++ b/var/spack/repos/builtin/packages/prism/package.py @@ -31,15 +31,7 @@ class Prism(MakefilePackage): for f in ["prism", "xprism"]: filter_file("^PRISM_DIR.*", "", "bin/{0}".format(f)) - dirs = [ - "bin", - "classes", - "dtds", - "etc", - "include", - "images", - "lib", - ] + dirs = ["bin", "classes", "dtds", "etc", "include", "images", "lib"] for d in dirs: install_tree(d, join_path(prefix, d)) diff --git a/var/spack/repos/builtin/packages/prrte/package.py b/var/spack/repos/builtin/packages/prrte/package.py index 2e237061f1..8e37370eef 100644 --- a/var/spack/repos/builtin/packages/prrte/package.py +++ b/var/spack/repos/builtin/packages/prrte/package.py @@ -43,7 +43,6 @@ class Prrte(AutotoolsPackage): perl("autogen.pl") def configure_args(self): - spec = self.spec config_args = ["--enable-shared", "--enable-static"] diff --git a/var/spack/repos/builtin/packages/pvm/package.py b/var/spack/repos/builtin/packages/pvm/package.py index d18513dc89..bcefdb1a13 100644 --- a/var/spack/repos/builtin/packages/pvm/package.py +++ b/var/spack/repos/builtin/packages/pvm/package.py @@ -39,7 +39,6 @@ class Pvm(MakefilePackage): env["PVM_ROOT"] = self.stage.source_path def patch(self): - pvm_arch = self.pvm_arch(self.stage.source_path) if "+fpic" in self.spec: @@ -49,14 +48,10 @@ class Pvm(MakefilePackage): def setup_build_environment(self, env): tirpc = self.spec["libtirpc"].prefix - env.prepend_path( - "SPACK_INCLUDE_DIRS", - tirpc.include.tirpc, - ) + env.prepend_path("SPACK_INCLUDE_DIRS", tirpc.include.tirpc) env.set("SPACK_LDLIBS", "-ltirpc") def install(self, spec, prefix): - install_tree("bin", prefix.bin) install_tree("include", prefix.include) install_tree("lib", prefix.lib) diff --git a/var/spack/repos/builtin/packages/py-chainer/package.py b/var/spack/repos/builtin/packages/py-chainer/package.py index 05c77a5c55..f174960c9f 100644 --- a/var/spack/repos/builtin/packages/py-chainer/package.py +++ b/var/spack/repos/builtin/packages/py-chainer/package.py @@ -57,21 +57,10 @@ class PyChainer(PythonPackage): mnist_file = join_path(mnist_dir, "train_mnist.py") mpi_name = self.spec["mpi"].prefix.bin.mpirun python_exe = self.spec["python"].command.path - opts = [ - "-n", - "4", - python_exe, - mnist_file, - "-o", - test_dir, - ] + opts = ["-n", "4", python_exe, mnist_file, "-o", test_dir] env["OMP_NUM_THREADS"] = "4" - self.run_test( - mpi_name, - options=opts, - work_dir=test_dir, - ) + self.run_test(mpi_name, options=opts, work_dir=test_dir) # check results json_open = open(join_path(test_dir, "log"), "r") diff --git a/var/spack/repos/builtin/packages/py-darshan/package.py b/var/spack/repos/builtin/packages/py-darshan/package.py index e2db6349c8..2176d50354 100644 --- a/var/spack/repos/builtin/packages/py-darshan/package.py +++ b/var/spack/repos/builtin/packages/py-darshan/package.py @@ -14,14 +14,8 @@ class PyDarshan(PythonPackage): maintainers("jeanbez", "shanedsnyder") - version( - "3.4.2.0", - sha256="eb00eb758c96899c0d523b71eb00caa3b967509c27fd504c579ac8c9b521845c", - ) - version( - "3.4.1.0", - sha256="41a033ebac6fcd0ca05b8ccf07e11191286dee923ec334b876a7ec8e8a6add84", - ) + version("3.4.2.0", sha256="eb00eb758c96899c0d523b71eb00caa3b967509c27fd504c579ac8c9b521845c") + version("3.4.1.0", sha256="41a033ebac6fcd0ca05b8ccf07e11191286dee923ec334b876a7ec8e8a6add84") version("3.4.0.1", sha256="0142fc7c0b12a9e5c22358aa26cca7083d28af42aeea7dfcc5698c56b6aee6b7") depends_on("python@3.6:", type=("build", "run")) diff --git a/var/spack/repos/builtin/packages/py-galaxy2cwl/package.py b/var/spack/repos/builtin/packages/py-galaxy2cwl/package.py index 37653eb679..cb8c9657ce 100644 --- a/var/spack/repos/builtin/packages/py-galaxy2cwl/package.py +++ b/var/spack/repos/builtin/packages/py-galaxy2cwl/package.py @@ -13,10 +13,7 @@ class PyGalaxy2cwl(PythonPackage): homepage = "https://github.com/workflowhub-eu/galaxy2cwl" url = "https://github.com/workflowhub-eu/galaxy2cwl/archive/refs/tags/0.1.4.tar.gz" - version( - "0.1.4", - sha256="ceb9024a7bf74c874be216c943cc97343563b1ec78f85fd3ec5b482c64350290", - ) + version("0.1.4", sha256="ceb9024a7bf74c874be216c943cc97343563b1ec78f85fd3ec5b482c64350290") depends_on("py-setuptools", type="build") diff --git a/var/spack/repos/builtin/packages/py-lightning-utilities/package.py b/var/spack/repos/builtin/packages/py-lightning-utilities/package.py index 28cd080338..2b5eb3d058 100644 --- a/var/spack/repos/builtin/packages/py-lightning-utilities/package.py +++ b/var/spack/repos/builtin/packages/py-lightning-utilities/package.py @@ -15,8 +15,7 @@ class PyLightningUtilities(PythonPackage): maintainers("adamjstewart") version( - "0.6.0.post0", - sha256="6f02cfe59e6576487e709a0e66e07671563bde9e21b40e1c567918e4d753278c", + "0.6.0.post0", sha256="6f02cfe59e6576487e709a0e66e07671563bde9e21b40e1c567918e4d753278c" ) version("0.5.0", sha256="01ef5b7fd50a8b54b849d8621720a65c36c91b374933a8384fb2be3d86cfa8f1") version("0.4.2", sha256="dc6696ab180117f7e97b5488dac1d77765ab891022f7521a97a39e10d362bdb8") diff --git a/var/spack/repos/builtin/packages/py-llnl-sina/package.py b/var/spack/repos/builtin/packages/py-llnl-sina/package.py index 062be68e54..3bec899480 100644 --- a/var/spack/repos/builtin/packages/py-llnl-sina/package.py +++ b/var/spack/repos/builtin/packages/py-llnl-sina/package.py @@ -24,12 +24,7 @@ class PyLlnlSina(PythonPackage): git = "https://github.com/LLNL/Sina.git" # notify when the package is updated. - maintainers( - "HaluskaR", - "estebanpauli", - "murray55", - "doutriaux1", - ) + maintainers("HaluskaR", "estebanpauli", "murray55", "doutriaux1") version("1.11.0", tag="v1.11.0") version("1.10.0", tag="v1.10.0") diff --git a/var/spack/repos/builtin/packages/py-mariadb/package.py b/var/spack/repos/builtin/packages/py-mariadb/package.py index 6f630e42d9..55435a499e 100644 --- a/var/spack/repos/builtin/packages/py-mariadb/package.py +++ b/var/spack/repos/builtin/packages/py-mariadb/package.py @@ -12,8 +12,7 @@ class PyMariadb(PythonPackage): pypi = "mariadb/mariadb-1.1.5.post3.tar.gz" version( - "1.1.5.post3", - sha256="f9336dd4cb3207e621933bb5221f33fac0d7184db64dc44c70531430f4ecdcee", + "1.1.5.post3", sha256="f9336dd4cb3207e621933bb5221f33fac0d7184db64dc44c70531430f4ecdcee" ) version( "1.0.10", diff --git a/var/spack/repos/builtin/packages/py-parsl/package.py b/var/spack/repos/builtin/packages/py-parsl/package.py index 4a66387dc5..efc2e8bd53 100644 --- a/var/spack/repos/builtin/packages/py-parsl/package.py +++ b/var/spack/repos/builtin/packages/py-parsl/package.py @@ -18,11 +18,7 @@ class PyParsl(PythonPackage): version("1.1.0", sha256="6a623d3550329f028775950d23a2cafcb0f82b199f15940180410604aa5d102c") - variant( - "monitoring", - default=False, - description="enable live monitoring", - ) + variant("monitoring", default=False, description="enable live monitoring") # See https://parsl.readthedocs.io/en/stable/userguide/monitoring.html depends_on("python@3.6:", type=("build", "run")) diff --git a/var/spack/repos/builtin/packages/py-pybind11/package.py b/var/spack/repos/builtin/packages/py-pybind11/package.py index 2b650c0b1e..180a1c1590 100644 --- a/var/spack/repos/builtin/packages/py-pybind11/package.py +++ b/var/spack/repos/builtin/packages/py-pybind11/package.py @@ -104,9 +104,7 @@ class CMakeBuilder(spack.build_systems.cmake.CMakeBuilder): # test include helper points to right location python = self.spec["python"].command py_inc = python( - "-c", - "import pybind11 as py; print(py.get_include())", - output=str, + "-c", "import pybind11 as py; print(py.get_include())", output=str ).strip() for inc in [py_inc, self.prefix.include]: inc_file = join_path(inc, "pybind11", "pybind11.h") diff --git a/var/spack/repos/builtin/packages/py-pyfr/package.py b/var/spack/repos/builtin/packages/py-pyfr/package.py index b48339ec16..7cbfe6ab71 100644 --- a/var/spack/repos/builtin/packages/py-pyfr/package.py +++ b/var/spack/repos/builtin/packages/py-pyfr/package.py @@ -22,18 +22,9 @@ class PyPyfr(PythonPackage, CudaPackage, ROCmPackage): version("master", branch="master") # pypi releases - version( - "1.15.0", - sha256="6a634b9d32447f45d3c24c9de0ed620a0a0a781be7cc5e57b1c1bf44a4650d8d", - ) - version( - "1.14.0", - sha256="ebf40ce0896cce9ac802e03fd9430b5be30ea837c31224531a6d5fd68f820766", - ) - version( - "1.13.0", - sha256="ac6ecec738d4e23799ab8c50dea9bdbd7d37bc971bd33f22720c5a230b8e7b2f", - ) + version("1.15.0", sha256="6a634b9d32447f45d3c24c9de0ed620a0a0a781be7cc5e57b1c1bf44a4650d8d") + version("1.14.0", sha256="ebf40ce0896cce9ac802e03fd9430b5be30ea837c31224531a6d5fd68f820766") + version("1.13.0", sha256="ac6ecec738d4e23799ab8c50dea9bdbd7d37bc971bd33f22720c5a230b8e7b2f") variant("metis", default=True, description="Metis for mesh partitioning") variant("scotch", default=False, description="Scotch for mesh partitioning") diff --git a/var/spack/repos/builtin/packages/py-pykokkos-base/package.py b/var/spack/repos/builtin/packages/py-pykokkos-base/package.py index f6885ca1b6..6ad164bfc0 100644 --- a/var/spack/repos/builtin/packages/py-pykokkos-base/package.py +++ b/var/spack/repos/builtin/packages/py-pykokkos-base/package.py @@ -22,9 +22,7 @@ class PyPykokkosBase(CMakePackage, PythonExtension): version("0.0.3", commit="4fe4421ac624ba2efe1eee265153e690622a18a5", submodules=False) variant( - "layouts", - default=True, - description="Build Kokkos View/DynRankView with layout variants", + "layouts", default=True, description="Build Kokkos View/DynRankView with layout variants" ) variant( "memory_traits", diff --git a/var/spack/repos/builtin/packages/py-tensorflow-datasets/package.py b/var/spack/repos/builtin/packages/py-tensorflow-datasets/package.py index 51d7d232d2..1ad767902d 100644 --- a/var/spack/repos/builtin/packages/py-tensorflow-datasets/package.py +++ b/var/spack/repos/builtin/packages/py-tensorflow-datasets/package.py @@ -13,10 +13,7 @@ class PyTensorflowDatasets(PythonPackage): homepage = "https://github.com/tensorflow/datasets" pypi = "tensorflow-datasets/tensorflow-datasets-4.4.0.tar.gz" - version( - "4.4.0", - sha256="3e95a61dec1fdb7b05dabc0dbed1b531e13d6c6fd362411423d0a775e5e9b960", - ) + version("4.4.0", sha256="3e95a61dec1fdb7b05dabc0dbed1b531e13d6c6fd362411423d0a775e5e9b960") depends_on("python@3.6:", type=("build", "run")) depends_on("py-setuptools", type="build") diff --git a/var/spack/repos/builtin/packages/py-tensorflow/package.py b/var/spack/repos/builtin/packages/py-tensorflow/package.py index d0358962fc..61128029d1 100644 --- a/var/spack/repos/builtin/packages/py-tensorflow/package.py +++ b/var/spack/repos/builtin/packages/py-tensorflow/package.py @@ -604,10 +604,7 @@ class PyTensorflow(Package, CudaPackage, ROCmPackage, PythonExtension): # Please specify which gcc nvcc should use as the host compiler env.set("GCC_HOST_COMPILER_PATH", spack_cc) - cuda_paths = [ - spec["cuda"].prefix, - spec["cudnn"].prefix, - ] + cuda_paths = [spec["cuda"].prefix, spec["cudnn"].prefix] # Do you wish to build TensorFlow with TensorRT support? if "+tensorrt" in spec: diff --git a/var/spack/repos/builtin/packages/py-trimesh/package.py b/var/spack/repos/builtin/packages/py-trimesh/package.py index 4062438029..13b5d2e268 100644 --- a/var/spack/repos/builtin/packages/py-trimesh/package.py +++ b/var/spack/repos/builtin/packages/py-trimesh/package.py @@ -12,14 +12,8 @@ class PyTrimesh(PythonPackage): homepage = "https://github.com/mikedh/trimesh" pypi = "trimesh/trimesh-2.38.10.tar.gz" - version( - "3.17.1", - sha256="025bb2fa3a2e87bdd6873f11db45a7ca19216f2f8b6aed29140fca57e32c298e", - ) - version( - "2.38.10", - sha256="866e73ea35641ff2af73867c891d7f9b90c75ccb8a3c1e8e06e16ff9af1f8c64", - ) + version("3.17.1", sha256="025bb2fa3a2e87bdd6873f11db45a7ca19216f2f8b6aed29140fca57e32c298e") + version("2.38.10", sha256="866e73ea35641ff2af73867c891d7f9b90c75ccb8a3c1e8e06e16ff9af1f8c64") variant( "easy", diff --git a/var/spack/repos/builtin/packages/python/package.py b/var/spack/repos/builtin/packages/python/package.py index 419e5b8c7b..e52e5bc87a 100644 --- a/var/spack/repos/builtin/packages/python/package.py +++ b/var/spack/repos/builtin/packages/python/package.py @@ -14,10 +14,7 @@ from shutil import copy from typing import Dict, List import llnl.util.tty as tty -from llnl.util.filesystem import ( - is_nonsymlink_exe_with_shebang, - path_contains_subdirectory, -) +from llnl.util.filesystem import is_nonsymlink_exe_with_shebang, path_contains_subdirectory from llnl.util.lang import dedupe from spack.build_environment import dso_suffix, stat_suffix @@ -874,13 +871,7 @@ print(json.dumps(config)) win_bin_dir = self.config_vars["BINDIR"] win_root_dir = self.config_vars["prefix"] - directories = [ - libdir, - frameworkprefix, - macos_developerdir, - win_bin_dir, - win_root_dir, - ] + directories = [libdir, frameworkprefix, macos_developerdir, win_bin_dir, win_root_dir] # The Python shipped with Xcode command line tools isn't in any of these locations for subdir in ["lib", "lib64"]: @@ -914,18 +905,14 @@ print(json.dumps(config)) shared_libs = [] else: shared_libs = [self.config_vars["LDLIBRARY"]] - shared_libs += [ - "{}python{}.{}".format(lib_prefix, py_version, dso_suffix), - ] + shared_libs += ["{}python{}.{}".format(lib_prefix, py_version, dso_suffix)] # Like LDLIBRARY for Python on Mac OS, LIBRARY may refer to an un-linkable object file_extension_static = os.path.splitext(self.config_vars["LIBRARY"])[-1] if file_extension_static == "": static_libs = [] else: static_libs = [self.config_vars["LIBRARY"]] - static_libs += [ - "{}python{}.{}".format(lib_prefix, py_version, stat_suffix), - ] + static_libs += ["{}python{}.{}".format(lib_prefix, py_version, stat_suffix)] # The +shared variant isn't reliable, as `spack external find` currently can't # detect it. If +shared, prefer the shared libraries, but check for static if diff --git a/var/spack/repos/builtin/packages/qmcpack/package.py b/var/spack/repos/builtin/packages/qmcpack/package.py index fe27405fc6..323aea003c 100644 --- a/var/spack/repos/builtin/packages/qmcpack/package.py +++ b/var/spack/repos/builtin/packages/qmcpack/package.py @@ -393,7 +393,6 @@ class Qmcpack(CMakePackage, CudaPackage): # but still does not install nexus, manual, etc. So, there is no compelling # reason to use QMCPACK's built-in version at this time. def install(self, spec, prefix): - # create top-level directory mkdirp(prefix) diff --git a/var/spack/repos/builtin/packages/qoz/package.py b/var/spack/repos/builtin/packages/qoz/package.py index 746677e561..03d811a0ad 100644 --- a/var/spack/repos/builtin/packages/qoz/package.py +++ b/var/spack/repos/builtin/packages/qoz/package.py @@ -21,8 +21,5 @@ class Qoz(CMakePackage): depends_on("pkgconfig") def cmake_args(self): - args = [ - "-DQoZ_USE_BUNDLED_ZSTD=OFF", - "-DQoZ_DEBUG_TIMINGS=OFF", - ] + args = ["-DQoZ_USE_BUNDLED_ZSTD=OFF", "-DQoZ_DEBUG_TIMINGS=OFF"] return args diff --git a/var/spack/repos/builtin/packages/qrupdate/package.py b/var/spack/repos/builtin/packages/qrupdate/package.py index 47db85bba7..d0554cb26f 100644 --- a/var/spack/repos/builtin/packages/qrupdate/package.py +++ b/var/spack/repos/builtin/packages/qrupdate/package.py @@ -40,7 +40,6 @@ class Qrupdate(MakefilePackage, SourceforgePackage): # The Makefile does not take the simple "make" rule def build(self, spec, prefix): - lapack_blas = spec["lapack"].libs + spec["blas"].libs make_args = [ diff --git a/var/spack/repos/builtin/packages/qt-base/package.py b/var/spack/repos/builtin/packages/qt-base/package.py index 0f069807e3..2d7d959d4a 100644 --- a/var/spack/repos/builtin/packages/qt-base/package.py +++ b/var/spack/repos/builtin/packages/qt-base/package.py @@ -235,13 +235,9 @@ class QtBase(QtPackage): ("textmarkdownreader", False), ] with when("platform=linux"): - sys_features += [ - ("xcb_xinput", True), - ] + sys_features += [("xcb_xinput", True)] if "+network" in spec: - sys_features += [ - ("proxies", True), - ] + sys_features += [("proxies", True)] for k, v in sys_features: define("FEATURE_system_" + k, v) diff --git a/var/spack/repos/builtin/packages/qt/package.py b/var/spack/repos/builtin/packages/qt/package.py index c7a11ae118..af553b615f 100644 --- a/var/spack/repos/builtin/packages/qt/package.py +++ b/var/spack/repos/builtin/packages/qt/package.py @@ -578,7 +578,7 @@ class Qt(Package): [ # NIS is deprecated in more recent glibc, # but qt-5.6.3 does not recognize this option - "-no-nis", + "-no-nis" ] ) @@ -698,12 +698,7 @@ class Qt(Package): config_args.append("-no-feature-getentropy") if "~webkit" in spec: - config_args.extend( - [ - "-skip", - "webengine" if version >= Version("5.6") else "qtwebkit", - ] - ) + config_args.extend(["-skip", "webengine" if version >= Version("5.6") else "qtwebkit"]) if spec.satisfies("@5.7"): config_args.extend(["-skip", "virtualkeyboard"]) @@ -743,12 +738,7 @@ class Qt(Package): # These options are only valid if 'multimedia' is enabled, i.e. # +opengl is selected. Force them to be off on macOS, but let other # platforms decide for themselves. - config_args.extend( - [ - "-no-pulseaudio", - "-no-alsa", - ] - ) + config_args.extend(["-no-pulseaudio", "-no-alsa"]) if spec.satisfies("platform=darwin target=aarch64:"): # https://www.qt.io/blog/qt-on-apple-silicon diff --git a/var/spack/repos/builtin/packages/quantum-espresso/package.py b/var/spack/repos/builtin/packages/quantum-espresso/package.py index 557477cd24..374d4ec3e2 100644 --- a/var/spack/repos/builtin/packages/quantum-espresso/package.py +++ b/var/spack/repos/builtin/packages/quantum-espresso/package.py @@ -80,11 +80,7 @@ class QuantumEspresso(CMakePackage, Package): # Add Cuda Fortran support # depends on NVHPC compiler, not directly on CUDA toolkit with when("%nvhpc"): - variant( - "cuda", - default=False, - description="Build with CUDA Fortran", - ) + variant("cuda", default=False, description="Build with CUDA Fortran") with when("+cuda"): # GPUs are enabled since v6.6 conflicts("@:6.5") @@ -535,7 +531,6 @@ class GenericBuilder(spack.build_systems.generic.GenericBuilder): options.append("--with-libxc-prefix={0}".format(spec["libxc"].prefix)) if "+elpa" in spec: - # Spec for elpa elpa = spec["elpa"] diff --git a/var/spack/repos/builtin/packages/r3d/package.py b/var/spack/repos/builtin/packages/r3d/package.py index 01604a9681..f0f06f63f1 100644 --- a/var/spack/repos/builtin/packages/r3d/package.py +++ b/var/spack/repos/builtin/packages/r3d/package.py @@ -42,10 +42,7 @@ class R3d(CMakePackage): @when("@:2019-04-24") def build(self, spec, prefix): - - make_args = [ - "CC={0}".format(spack_cc), - ] + make_args = ["CC={0}".format(spack_cc)] make("libr3d.a", *make_args) if "+test" in spec: @@ -54,7 +51,6 @@ class R3d(CMakePackage): @when("@:2019-04-24") def install(self, spec, prefix): - # R3D does not have an install target so create our own here. mkdirp(prefix.include) my_headers = find(".", "*.h", recursive=False) @@ -65,7 +61,6 @@ class R3d(CMakePackage): if "+test" in spec: with working_dir("tests"): - # R3D does not have an install target so create our own here. mkdirp(prefix.test) install("r2d_unit_tests", prefix.test) diff --git a/var/spack/repos/builtin/packages/racket/package.py b/var/spack/repos/builtin/packages/racket/package.py index 692882ea3f..8a72c5433d 100644 --- a/var/spack/repos/builtin/packages/racket/package.py +++ b/var/spack/repos/builtin/packages/racket/package.py @@ -34,7 +34,6 @@ class Racket(MakefilePackage): class MakefileBuilder(spack.build_systems.makefile.MakefileBuilder): - build_directory = "src" def toggle(self, spec, variant): diff --git a/var/spack/repos/builtin/packages/redis-plus-plus/package.py b/var/spack/repos/builtin/packages/redis-plus-plus/package.py index 4e3fe70fea..f8a5714e9d 100644 --- a/var/spack/repos/builtin/packages/redis-plus-plus/package.py +++ b/var/spack/repos/builtin/packages/redis-plus-plus/package.py @@ -16,12 +16,7 @@ class RedisPlusPlus(CMakePackage): maintainers("lpottier") - variant( - "cxxstd", - values=("11", "14", "17"), - default="14", - description="C++ standard used", - ) + variant("cxxstd", values=("11", "14", "17"), default="14", description="C++ standard used") variant("shared", default=True, description="Enables the build of a shared library") variant("static", default=True, description="Enables the build of a static library") variant( @@ -44,7 +39,6 @@ class RedisPlusPlus(CMakePackage): conflicts("+tls", when="+static", msg="Static libraries cannot be built with TLS support.") def cmake_args(self): - cxxstd = self.spec.variants["cxxstd"].value use_fpic = ("+static" in self.spec) and ("+fpic" in self.spec) diff --git a/var/spack/repos/builtin/packages/redis/package.py b/var/spack/repos/builtin/packages/redis/package.py index c259034eb6..0c7396fea6 100644 --- a/var/spack/repos/builtin/packages/redis/package.py +++ b/var/spack/repos/builtin/packages/redis/package.py @@ -63,10 +63,7 @@ class Redis(MakefilePackage): def build_targets(self): use_tls = "yes" if "+tls" in self.spec else "no" use_systemd = "yes" if "+systemd" in self.spec else "no" - return [ - "BUILD_TLS={0}".format(use_tls), - "USE_SYSTEMD={0}".format(use_systemd), - ] + return ["BUILD_TLS={0}".format(use_tls), "USE_SYSTEMD={0}".format(use_systemd)] @property def install_targets(self): diff --git a/var/spack/repos/builtin/packages/relion/package.py b/var/spack/repos/builtin/packages/relion/package.py index 8f6c579e0c..2dad54051c 100644 --- a/var/spack/repos/builtin/packages/relion/package.py +++ b/var/spack/repos/builtin/packages/relion/package.py @@ -116,11 +116,7 @@ class Relion(CMakePackage, CudaPackage): if carch == "none": raise ValueError("Must select a value for cuda_arch") else: - args += [ - "-DCUDA=ON", - "-DCudaTexture=ON", - "-DCUDA_ARCH=%s" % (carch), - ] + args += ["-DCUDA=ON", "-DCudaTexture=ON", "-DCUDA_ARCH=%s" % (carch)] return args diff --git a/var/spack/repos/builtin/packages/revbayes/package.py b/var/spack/repos/builtin/packages/revbayes/package.py index 9adffcbd86..7a23a2c429 100644 --- a/var/spack/repos/builtin/packages/revbayes/package.py +++ b/var/spack/repos/builtin/packages/revbayes/package.py @@ -52,12 +52,7 @@ class Revbayes(CMakePackage): def cmake_args(self): args = [] if "+mpi" in self.spec: - args.extend( - [ - self.define("MPI", "ON"), - self.define("RB_EXEC_NAME", "rb-mpi"), - ] - ) + args.extend([self.define("MPI", "ON"), self.define("RB_EXEC_NAME", "rb-mpi")]) return args @run_before("cmake") diff --git a/var/spack/repos/builtin/packages/rmgdft/package.py b/var/spack/repos/builtin/packages/rmgdft/package.py index a23d90dd6b..ede5fc0e45 100644 --- a/var/spack/repos/builtin/packages/rmgdft/package.py +++ b/var/spack/repos/builtin/packages/rmgdft/package.py @@ -91,7 +91,6 @@ class Rmgdft(CMakePackage): return args def install(self, spec, prefix): - # create top-level directories mkdirp(prefix.bin) mkdirp(prefix.share.tests.RMG) diff --git a/var/spack/repos/builtin/packages/rocalution/package.py b/var/spack/repos/builtin/packages/rocalution/package.py index da955d1685..c089cc1da8 100644 --- a/var/spack/repos/builtin/packages/rocalution/package.py +++ b/var/spack/repos/builtin/packages/rocalution/package.py @@ -115,11 +115,7 @@ class Rocalution(CMakePackage): ) depends_on("cmake@3.5:", type="build") - for ver in [ - "3.5.0", - "3.7.0", - "3.8.0", - ]: + for ver in ["3.5.0", "3.7.0", "3.8.0"]: depends_on("hip@" + ver, when="@" + ver) depends_on("rocprim@" + ver, when="@" + ver) for tgt in itertools.chain(["auto"], amdgpu_targets): diff --git a/var/spack/repos/builtin/packages/rocfft/package.py b/var/spack/repos/builtin/packages/rocfft/package.py index d8987f0170..63aca05616 100644 --- a/var/spack/repos/builtin/packages/rocfft/package.py +++ b/var/spack/repos/builtin/packages/rocfft/package.py @@ -176,9 +176,7 @@ class Rocfft(CMakePackage): return ver def cmake_args(self): - args = [ - self.define("BUILD_CLIENTS_TESTS", self.run_tests), - ] + args = [self.define("BUILD_CLIENTS_TESTS", self.run_tests)] tgt = self.spec.variants["amdgpu_target"] if "auto" not in tgt: diff --git a/var/spack/repos/builtin/packages/rocm-openmp-extras/package.py b/var/spack/repos/builtin/packages/rocm-openmp-extras/package.py index 109add2977..3792e96b88 100644 --- a/var/spack/repos/builtin/packages/rocm-openmp-extras/package.py +++ b/var/spack/repos/builtin/packages/rocm-openmp-extras/package.py @@ -180,61 +180,17 @@ class RocmOpenmpExtras(Package): version("5.2.0", sha256=versions_dict["5.2.0"]["aomp"]) version("5.1.3", sha256=versions_dict["5.1.3"]["aomp"]) version("5.1.0", sha256=versions_dict["5.1.0"]["aomp"]) - version( - "5.0.2", - sha256=versions_dict["5.0.2"]["aomp"], - deprecated=True, - ) - version( - "5.0.0", - sha256=versions_dict["5.0.0"]["aomp"], - deprecated=True, - ) - version( - "4.5.2", - sha256=versions_dict["4.5.2"]["aomp"], - deprecated=True, - ) - version( - "4.5.0", - sha256=versions_dict["4.5.0"]["aomp"], - deprecated=True, - ) - version( - "4.3.1", - sha256=versions_dict["4.3.1"]["aomp"], - deprecated=True, - ) - version( - "4.3.0", - sha256=versions_dict["4.3.0"]["aomp"], - deprecated=True, - ) - version( - "4.2.0", - sha256=versions_dict["4.2.0"]["aomp"], - deprecated=True, - ) - version( - "4.1.0", - sha256=versions_dict["4.1.0"]["aomp"], - deprecated=True, - ) - version( - "4.0.0", - sha256=versions_dict["4.0.0"]["aomp"], - deprecated=True, - ) - version( - "3.10.0", - sha256=versions_dict["3.10.0"]["aomp"], - deprecated=True, - ) - version( - "3.9.0", - sha256=versions_dict["3.9.0"]["aomp"], - deprecated=True, - ) + version("5.0.2", sha256=versions_dict["5.0.2"]["aomp"], deprecated=True) + version("5.0.0", sha256=versions_dict["5.0.0"]["aomp"], deprecated=True) + version("4.5.2", sha256=versions_dict["4.5.2"]["aomp"], deprecated=True) + version("4.5.0", sha256=versions_dict["4.5.0"]["aomp"], deprecated=True) + version("4.3.1", sha256=versions_dict["4.3.1"]["aomp"], deprecated=True) + version("4.3.0", sha256=versions_dict["4.3.0"]["aomp"], deprecated=True) + version("4.2.0", sha256=versions_dict["4.2.0"]["aomp"], deprecated=True) + version("4.1.0", sha256=versions_dict["4.1.0"]["aomp"], deprecated=True) + version("4.0.0", sha256=versions_dict["4.0.0"]["aomp"], deprecated=True) + version("3.10.0", sha256=versions_dict["3.10.0"]["aomp"], deprecated=True) + version("3.9.0", sha256=versions_dict["3.9.0"]["aomp"], deprecated=True) depends_on("cmake@3:", type="build") depends_on("py-setuptools", type="build") diff --git a/var/spack/repos/builtin/packages/rocmlir/package.py b/var/spack/repos/builtin/packages/rocmlir/package.py index 0e1b14789c..47f2e8ac93 100644 --- a/var/spack/repos/builtin/packages/rocmlir/package.py +++ b/var/spack/repos/builtin/packages/rocmlir/package.py @@ -46,11 +46,7 @@ class Rocmlir(CMakePackage): depends_on("half") depends_on("pkgconfig", type="build") - for ver in [ - "5.3.0", - "5.4.0", - "5.4.3", - ]: + for ver in ["5.3.0", "5.4.0", "5.4.3"]: depends_on("hip@" + ver, when="@" + ver) depends_on("llvm-amdgpu@" + ver, when="@" + ver) depends_on("hsa-rocr-dev@" + ver, when="@" + ver) diff --git a/var/spack/repos/builtin/packages/roms/package.py b/var/spack/repos/builtin/packages/roms/package.py index 1e61aebc90..cd3cd7bd81 100644 --- a/var/spack/repos/builtin/packages/roms/package.py +++ b/var/spack/repos/builtin/packages/roms/package.py @@ -95,7 +95,6 @@ class Roms(MakefilePackage): filter_file(r"\sFREEFLAGS\s:=.*", "FREEFLAGS := -ffree-form", make_aocc) def edit(self, spec, prefix): - # ROMS doesn't have support for AOCC out of the box # Support extended to AOCC from below steps if "%aocc" in self.spec: @@ -130,7 +129,6 @@ class Roms(MakefilePackage): makefile.filter(r"\sUSE_DEBUG\s[?]=.*", "USE_DEBUG = on") def setup_build_environment(self, spack_env): - spec = self.spec netcdf_include = spec["netcdf-fortran"].prefix.include diff --git a/var/spack/repos/builtin/packages/root/package.py b/var/spack/repos/builtin/packages/root/package.py index ef3f925c19..76136c1865 100644 --- a/var/spack/repos/builtin/packages/root/package.py +++ b/var/spack/repos/builtin/packages/root/package.py @@ -177,10 +177,7 @@ class Root(CMakePackage): "vmc", when="@:6.25", default=False, description="Enable the Virtual Monte Carlo interface" ) variant( - "webgui", - default=True, - description="Enable web-based UI components of ROOT", - when="+root7", + "webgui", default=True, description="Enable web-based UI components of ROOT", when="+root7" ) variant("x", default=True, description="Enable set of graphical options") variant("xml", default=True, description="Enable XML parser interface") @@ -575,12 +572,7 @@ class Root(CMakePackage): if sys.platform == "darwin" and self.compiler.cc == "gcc": cflags = "-D__builtin_unreachable=__builtin_trap" - options.extend( - [ - define("CMAKE_C_FLAGS", cflags), - define("CMAKE_CXX_FLAGS", cflags), - ] - ) + options.extend([define("CMAKE_C_FLAGS", cflags), define("CMAKE_CXX_FLAGS", cflags)]) # Method for selecting C++ standard depends on ROOT version if self.spec.satisfies("@6.18.00:"): diff --git a/var/spack/repos/builtin/packages/rose/package.py b/var/spack/repos/builtin/packages/rose/package.py index c7b327011b..11ccc9d7e7 100644 --- a/var/spack/repos/builtin/packages/rose/package.py +++ b/var/spack/repos/builtin/packages/rose/package.py @@ -94,11 +94,7 @@ class Rose(AutotoolsPackage): variant("tools", default=False, description="Build a selection of ROSE based tools") - variant( - "mvapich2_backend", - default=False, - description="Enable mvapich2 backend compiler", - ) + variant("mvapich2_backend", default=False, description="Enable mvapich2 backend compiler") depends_on("mvapich2", when="+mvapich2_backend") variant("binanalysis", default=False, description="Enable binary analysis tooling") @@ -117,11 +113,7 @@ class Rose(AutotoolsPackage): variant("z3", default=False, description="Enable z3 theorem prover") depends_on("z3", when="+z3") - variant( - "edg_source", - default=False, - description="Use the EDG C/C++ frontend source code", - ) + variant("edg_source", default=False, description="Use the EDG C/C++ frontend source code") depends_on("git", when="+edg_source") # ------------------------------------------------------------------------ @@ -224,7 +216,6 @@ class Rose(AutotoolsPackage): # $ srun -n1 spack install rose # with working_dir(self.build_directory): - # Compile librose make("core") @@ -254,7 +245,6 @@ class Rose(AutotoolsPackage): def install(self, spec, prefix): with working_dir(self.build_directory): - # Compile and Install librose make("install-core") diff --git a/var/spack/repos/builtin/packages/routinator/package.py b/var/spack/repos/builtin/packages/routinator/package.py index 910335d0fc..72fadec466 100644 --- a/var/spack/repos/builtin/packages/routinator/package.py +++ b/var/spack/repos/builtin/packages/routinator/package.py @@ -14,10 +14,7 @@ class Routinator(Package): maintainers("aweits") - version( - "0.11.2", - sha256="00f825c53168592da0285e8dbd228018e77248d458214a2c0f86cd0ca45438f5", - ) + version("0.11.2", sha256="00f825c53168592da0285e8dbd228018e77248d458214a2c0f86cd0ca45438f5") depends_on("rust@1.56:") diff --git a/var/spack/repos/builtin/packages/rtags/package.py b/var/spack/repos/builtin/packages/rtags/package.py index 8045870028..5aa38a362a 100644 --- a/var/spack/repos/builtin/packages/rtags/package.py +++ b/var/spack/repos/builtin/packages/rtags/package.py @@ -27,8 +27,5 @@ class Rtags(CMakePackage): patch("add_string_iterator_erase_compile_check.patch", when="@2.12") def cmake_args(self): - args = [ - "-DCMAKE_EXPORT_COMPILE_COMMANDS=1", - "-DRTAGS_NO_ELISP_FILES=1", - ] + args = ["-DCMAKE_EXPORT_COMPILE_COMMANDS=1", "-DRTAGS_NO_ELISP_FILES=1"] return args diff --git a/var/spack/repos/builtin/packages/rust/package.py b/var/spack/repos/builtin/packages/rust/package.py index 6b133a03aa..410da6b70d 100644 --- a/var/spack/repos/builtin/packages/rust/package.py +++ b/var/spack/repos/builtin/packages/rust/package.py @@ -183,9 +183,7 @@ class Rust(Package): {"platform": "cray", "target": "aarch64:"}, ], "x86_64-apple-darwin": [{"platform": "darwin", "target": "x86_64:"}], - "aarch64-apple-darwin": [ - {"platform": "darwin", "target": "aarch64:"}, - ], + "aarch64-apple-darwin": [{"platform": "darwin", "target": "aarch64:"}], } # Specifies the strings which represent a pre-release Rust version. These diff --git a/var/spack/repos/builtin/packages/salmon/package.py b/var/spack/repos/builtin/packages/salmon/package.py index 3b2ea28de1..fbc9224640 100644 --- a/var/spack/repos/builtin/packages/salmon/package.py +++ b/var/spack/repos/builtin/packages/salmon/package.py @@ -113,8 +113,6 @@ class Salmon(CMakePackage): filter_file("curl -k.*", "", "scripts/fetchPufferfish.sh") def cmake_args(self): - args = [ - "-DBOOST_ROOT=%s" % self.spec["boost"].prefix, - ] + args = ["-DBOOST_ROOT=%s" % self.spec["boost"].prefix] return args diff --git a/var/spack/repos/builtin/packages/sambamba/package.py b/var/spack/repos/builtin/packages/sambamba/package.py index d07890c3e7..2c771f5232 100644 --- a/var/spack/repos/builtin/packages/sambamba/package.py +++ b/var/spack/repos/builtin/packages/sambamba/package.py @@ -17,11 +17,7 @@ class Sambamba(Package): depends_on("ldc~shared", type=("build", "link")) depends_on("python", type="build") - resource( - name="undeaD", - git="https://github.com/dlang/undeaD.git", - tag="v1.0.7", - ) + resource(name="undeaD", git="https://github.com/dlang/undeaD.git", tag="v1.0.7") patch("Makefile.patch") parallel = False diff --git a/var/spack/repos/builtin/packages/sbml/package.py b/var/spack/repos/builtin/packages/sbml/package.py index df7e79826e..5d7ed286de 100644 --- a/var/spack/repos/builtin/packages/sbml/package.py +++ b/var/spack/repos/builtin/packages/sbml/package.py @@ -84,10 +84,7 @@ class Sbml(CMakePackage): args.append(self.define_from_variant("WITH_CPP_NAMESPACE", "cpp")) if "+python" in spec: args.extend( - [ - "-DWITH_PYTHON:BOOL=ON", - "-DWITH_PYTHON_INCLUDE:PATH=%s" % spec["python"].prefix, - ] + ["-DWITH_PYTHON:BOOL=ON", "-DWITH_PYTHON_INCLUDE:PATH=%s" % spec["python"].prefix] ) else: args.append("-DWITH_PYTHON:BOOL=OFF") diff --git a/var/spack/repos/builtin/packages/scalpel/package.py b/var/spack/repos/builtin/packages/scalpel/package.py index 66393c4bfe..acbf58ee8e 100644 --- a/var/spack/repos/builtin/packages/scalpel/package.py +++ b/var/spack/repos/builtin/packages/scalpel/package.py @@ -74,11 +74,7 @@ class Scalpel(MakefilePackage, SourceforgePackage): for f in files: install(f, destdir) - dirs = [ - "Text", - "MLDBM", - "Parallel", - ] + dirs = ["Text", "MLDBM", "Parallel"] for d in dirs: install_tree(d, join_path(destdir, d)) diff --git a/var/spack/repos/builtin/packages/scantailor/package.py b/var/spack/repos/builtin/packages/scantailor/package.py index 182a4ce224..ff696710bd 100644 --- a/var/spack/repos/builtin/packages/scantailor/package.py +++ b/var/spack/repos/builtin/packages/scantailor/package.py @@ -18,10 +18,7 @@ class Scantailor(CMakePackage): homepage = "https://www.scantailor.org" url = "https://github.com/trufanov-nok/scantailor/archive/0.2.7.tar.gz" - version( - "0.2.7", - sha256="3e27647621d43638888a268902f8fa098b06a70a5da5d0623b1c11220a367910", - ) + version("0.2.7", sha256="3e27647621d43638888a268902f8fa098b06a70a5da5d0623b1c11220a367910") depends_on("qt@5:") depends_on("libjpeg") diff --git a/var/spack/repos/builtin/packages/scotch/package.py b/var/spack/repos/builtin/packages/scotch/package.py index 2c5d14138e..6f4c576be5 100644 --- a/var/spack/repos/builtin/packages/scotch/package.py +++ b/var/spack/repos/builtin/packages/scotch/package.py @@ -85,7 +85,6 @@ class Scotch(CMakePackage, MakefilePackage): @property def libs(self): - shared = "+shared" in self.spec libraries = ["libscotch", "libscotcherr"] zlibs = [] @@ -130,12 +129,7 @@ class MakefileBuilder(spack.build_systems.makefile.MakefileBuilder): def edit(self, pkg, spec, prefix): makefile_inc = [] - cflags = [ - "-O3", - "-DCOMMON_RANDOM_FIXED_SEED", - "-DSCOTCH_DETERMINISTIC", - "-DSCOTCH_RENAME", - ] + cflags = ["-O3", "-DCOMMON_RANDOM_FIXED_SEED", "-DSCOTCH_DETERMINISTIC", "-DSCOTCH_RENAME"] if "+int64" in self.spec: # SCOTCH_Num typedef: size of integers in arguments diff --git a/var/spack/repos/builtin/packages/seacas/package.py b/var/spack/repos/builtin/packages/seacas/package.py index 31670193bc..270ea25f02 100644 --- a/var/spack/repos/builtin/packages/seacas/package.py +++ b/var/spack/repos/builtin/packages/seacas/package.py @@ -286,10 +286,7 @@ class Seacas(CMakePackage): # ##################### Dependencies ########################## # Always need NetCDF-C options.extend( - [ - define("TPL_ENABLE_Netcdf", True), - define("NetCDF_ROOT", spec["netcdf-c"].prefix), - ] + [define("TPL_ENABLE_Netcdf", True), define("NetCDF_ROOT", spec["netcdf-c"].prefix)] ) if "+parmetis" in spec: @@ -323,10 +320,7 @@ class Seacas(CMakePackage): ) else: options.extend( - [ - define("TPL_ENABLE_METIS", False), - define("TPL_ENABLE_ParMETIS", False), - ] + [define("TPL_ENABLE_METIS", False), define("TPL_ENABLE_ParMETIS", False)] ) options.append(from_variant("TPL_ENABLE_Matio", "matio")) diff --git a/var/spack/repos/builtin/packages/serenity-libint/package.py b/var/spack/repos/builtin/packages/serenity-libint/package.py index 6c7d7ed677..11b8a51efa 100644 --- a/var/spack/repos/builtin/packages/serenity-libint/package.py +++ b/var/spack/repos/builtin/packages/serenity-libint/package.py @@ -19,7 +19,5 @@ class SerenityLibint(CMakePackage): depends_on("gmp+cxx") def cmake_args(self): - args = [ - self.define("BUILD_SHARED_LIBS", True), - ] + args = [self.define("BUILD_SHARED_LIBS", True)] return args diff --git a/var/spack/repos/builtin/packages/serenity/package.py b/var/spack/repos/builtin/packages/serenity/package.py index 3327770b92..9b71f9896f 100644 --- a/var/spack/repos/builtin/packages/serenity/package.py +++ b/var/spack/repos/builtin/packages/serenity/package.py @@ -39,7 +39,6 @@ class Serenity(CMakePackage): extends("python", when="+python") def patch(self): - filter_file( "include(CMakeParseArguments)", 'message(FATAL_ERROR "Tried to download a dependency")', diff --git a/var/spack/repos/builtin/packages/serialbox/package.py b/var/spack/repos/builtin/packages/serialbox/package.py index a0f53cad75..def3f21260 100644 --- a/var/spack/repos/builtin/packages/serialbox/package.py +++ b/var/spack/repos/builtin/packages/serialbox/package.py @@ -109,15 +109,8 @@ class Serialbox(CMakePackage): query2libraries = { tuple(): ["libSerialboxCore"], - ("c", "fortran"): [ - "libSerialboxFortran", - "libSerialboxC", - "libSerialboxCore", - ], - ("c",): [ - "libSerialboxC", - "libSerialboxCore", - ], + ("c", "fortran"): ["libSerialboxFortran", "libSerialboxC", "libSerialboxCore"], + ("c",): ["libSerialboxC", "libSerialboxCore"], ("fortran",): ["libSerialboxFortran", "libSerialboxC", "libSerialboxCore"], } diff --git a/var/spack/repos/builtin/packages/sfcgal/package.py b/var/spack/repos/builtin/packages/sfcgal/package.py index f73c5f4601..59bc6e70c5 100644 --- a/var/spack/repos/builtin/packages/sfcgal/package.py +++ b/var/spack/repos/builtin/packages/sfcgal/package.py @@ -37,7 +37,4 @@ class Sfcgal(CMakePackage): # It seems viewer is discontinued as of v1.3.0 # https://github.com/Oslandia/SFCGAL/releases/tag/v1.3.0 # Also, see https://github.com/Oslandia/SFCGAL-viewer - return [ - self.define("BUILD_SHARED_LIBS", True), - self.define("SFCGAL_BUILD_VIEWER", False), - ] + return [self.define("BUILD_SHARED_LIBS", True), self.define("SFCGAL_BUILD_VIEWER", False)] diff --git a/var/spack/repos/builtin/packages/sfcio/package.py b/var/spack/repos/builtin/packages/sfcio/package.py index 4e8018ab40..60ddd75dab 100644 --- a/var/spack/repos/builtin/packages/sfcio/package.py +++ b/var/spack/repos/builtin/packages/sfcio/package.py @@ -15,12 +15,7 @@ class Sfcio(CMakePackage): homepage = "https://noaa-emc.github.io/NCEPLIBS-sfcio" url = "https://github.com/NOAA-EMC/NCEPLIBS-sfcio/archive/refs/tags/v1.4.1.tar.gz" - maintainers( - "t-brown", - "AlexanderRichert-NOAA", - "Hang-Lei-NOAA", - "edwardhartnett", - ) + maintainers("t-brown", "AlexanderRichert-NOAA", "Hang-Lei-NOAA", "edwardhartnett") version("1.4.1", sha256="d9f900cf18ec1a839b4128c069b1336317ffc682086283443354896746b89c59") diff --git a/var/spack/repos/builtin/packages/shapeit4/package.py b/var/spack/repos/builtin/packages/shapeit4/package.py index b5ebe23d98..7219e844a7 100644 --- a/var/spack/repos/builtin/packages/shapeit4/package.py +++ b/var/spack/repos/builtin/packages/shapeit4/package.py @@ -23,7 +23,6 @@ class Shapeit4(MakefilePackage): depends_on("xz") def edit(self, spec, prefix): - makefile = FileFilter("makefile") makefile.filter("CXX=.*", "CXX = c++") @@ -49,7 +48,6 @@ class Shapeit4(MakefilePackage): ) def install(self, spec, prefix): - install_tree("bin", prefix.bin) install_tree("test", join_path(self.prefix, "test")) install_tree("docs", join_path(self.prefix, "docs")) diff --git a/var/spack/repos/builtin/packages/shellcheck/package.py b/var/spack/repos/builtin/packages/shellcheck/package.py index 17c32c8e85..869c3ab53d 100644 --- a/var/spack/repos/builtin/packages/shellcheck/package.py +++ b/var/spack/repos/builtin/packages/shellcheck/package.py @@ -13,7 +13,7 @@ _versions = { "linux-aarch64": "179c579ef3481317d130adebede74a34dbbc2df961a70916dd4039ebf0735fae", "linux-armv6hf": "03deed9ded9dd66434ccf9649815bcde7d275d6c9f6dcf665b83391673512c75", "linux-x86_64": "700324c6dd0ebea0117591c6cc9d7350d9c7c5c287acbad7630fa17b1d4d9e2f", - }, + } } diff --git a/var/spack/repos/builtin/packages/sigio/package.py b/var/spack/repos/builtin/packages/sigio/package.py index 8cd8d50be2..241154dde9 100644 --- a/var/spack/repos/builtin/packages/sigio/package.py +++ b/var/spack/repos/builtin/packages/sigio/package.py @@ -15,12 +15,7 @@ class Sigio(CMakePackage): homepage = "https://noaa-emc.github.io/NCEPLIBS-sigio" url = "https://github.com/NOAA-EMC/NCEPLIBS-sigio/archive/refs/tags/v2.3.2.tar.gz" - maintainers( - "t-brown", - "AlexanderRichert-NOAA", - "Hang-Lei-NOAA", - "edwardhartnett", - ) + maintainers("t-brown", "AlexanderRichert-NOAA", "Hang-Lei-NOAA", "edwardhartnett") version("2.3.2", sha256="333f3cf3a97f97103cbafcafc2ad89b24faa55b1332a98adc1637855e8a5b613") diff --git a/var/spack/repos/builtin/packages/silo/package.py b/var/spack/repos/builtin/packages/silo/package.py index d93e723176..23a04f6f09 100644 --- a/var/spack/repos/builtin/packages/silo/package.py +++ b/var/spack/repos/builtin/packages/silo/package.py @@ -190,13 +190,11 @@ class Silo(AutotoolsPackage): if is_system_path(zlib_prefix): config_args.append("--with-zlib=yes") else: - config_args.append( - "--with-zlib=%s,%s" % (zlib_prefix.include, zlib_prefix.lib), - ) + config_args.append("--with-zlib=%s,%s" % (zlib_prefix.include, zlib_prefix.lib)) if "+hdf5" in spec: config_args.append( - "--with-hdf5=%s,%s" % (spec["hdf5"].prefix.include, spec["hdf5"].prefix.lib), + "--with-hdf5=%s,%s" % (spec["hdf5"].prefix.include, spec["hdf5"].prefix.lib) ) if "+silex" in spec: diff --git a/var/spack/repos/builtin/packages/simgrid/package.py b/var/spack/repos/builtin/packages/simgrid/package.py index 800af27a0f..c21ef353ab 100644 --- a/var/spack/repos/builtin/packages/simgrid/package.py +++ b/var/spack/repos/builtin/packages/simgrid/package.py @@ -133,7 +133,6 @@ class Simgrid(CMakePackage): ) def setup_dependent_package(self, module, dep_spec): - if self.spec.satisfies("+smpi"): self.spec.smpicc = join_path(self.prefix.bin, "smpicc") self.spec.smpicxx = join_path(self.prefix.bin, "smpicxx") @@ -141,7 +140,6 @@ class Simgrid(CMakePackage): self.spec.smpif77 = join_path(self.prefix.bin, "smpiff") def cmake_args(self): - spec = self.spec args = [] diff --git a/var/spack/repos/builtin/packages/simple-dftd3/package.py b/var/spack/repos/builtin/packages/simple-dftd3/package.py index ad3b08b02b..ce7f0074c9 100644 --- a/var/spack/repos/builtin/packages/simple-dftd3/package.py +++ b/var/spack/repos/builtin/packages/simple-dftd3/package.py @@ -35,7 +35,6 @@ class SimpleDftd3(MesonPackage): extends("python", when="+python") def meson_args(self): - return [ "-Dopenmp={0}".format(str("+openmp" in self.spec).lower()), "-Dpython={0}".format(str("+python" in self.spec).lower()), diff --git a/var/spack/repos/builtin/packages/simplemoc/package.py b/var/spack/repos/builtin/packages/simplemoc/package.py index 8fd4fc4be8..20eaebd995 100644 --- a/var/spack/repos/builtin/packages/simplemoc/package.py +++ b/var/spack/repos/builtin/packages/simplemoc/package.py @@ -28,7 +28,6 @@ class Simplemoc(MakefilePackage): @property def build_targets(self): - targets = [] cflags = "-std=gnu99" diff --git a/var/spack/repos/builtin/packages/sina/package.py b/var/spack/repos/builtin/packages/sina/package.py index 82ffe0b986..87ea4f1485 100644 --- a/var/spack/repos/builtin/packages/sina/package.py +++ b/var/spack/repos/builtin/packages/sina/package.py @@ -14,11 +14,7 @@ class Sina(CachedCMakePackage): homepage = "https://github.com/LLNL/Sina" url = "https://github.com/LLNL/Sina/releases/download/v1.10.0/sina-cpp-1.10.0.tar.gz" - maintainers( - "estebanpauli", - "HaluskaR", - "murray55", - ) + maintainers("estebanpauli", "HaluskaR", "murray55") version("1.11.0", sha256="a080f6583101696a6354940f00646ef892e1b2f8fc3f1b1907ba1c3ade6d4b47") version("1.10.0", sha256="b34379ce8cc5eca5a0f16893053fac75be14c2109d1beed4c6d48e11f9b281c7") diff --git a/var/spack/repos/builtin/packages/slurm/package.py b/var/spack/repos/builtin/packages/slurm/package.py index 629ea969d2..33c88f39d5 100644 --- a/var/spack/repos/builtin/packages/slurm/package.py +++ b/var/spack/repos/builtin/packages/slurm/package.py @@ -168,7 +168,6 @@ class Slurm(AutotoolsPackage): return (wrapper_flags, None, flags) def configure_args(self): - spec = self.spec args = [ diff --git a/var/spack/repos/builtin/packages/sonlib/package.py b/var/spack/repos/builtin/packages/sonlib/package.py index d6b231c248..a3c268b0fb 100644 --- a/var/spack/repos/builtin/packages/sonlib/package.py +++ b/var/spack/repos/builtin/packages/sonlib/package.py @@ -25,7 +25,6 @@ class Sonlib(MakefilePackage): version("2020-04-01", commit="7ebe2ede05a6ee366d93a7a993db69a99943a68f") def setup_build_environment(self, env): - binpath = os.path.join(self.stage.source_path, "bin") libpath = os.path.join(self.stage.source_path, "lib") @@ -33,7 +32,6 @@ class Sonlib(MakefilePackage): env.set("LIBDIR", libpath) def build(self, spec, prefix): - binpath = os.path.join(self.stage.source_path, "bin") libpath = os.path.join(self.stage.source_path, "lib") @@ -43,6 +41,5 @@ class Sonlib(MakefilePackage): make() def install(self, spec, prefix): - install_tree("bin", prefix.bin) install_tree("lib", prefix.lib) diff --git a/var/spack/repos/builtin/packages/sp/package.py b/var/spack/repos/builtin/packages/sp/package.py index 1e32a21abf..3751a731d9 100644 --- a/var/spack/repos/builtin/packages/sp/package.py +++ b/var/spack/repos/builtin/packages/sp/package.py @@ -14,12 +14,7 @@ class Sp(CMakePackage): homepage = "https://noaa-emc.github.io/NCEPLIBS-sp" url = "https://github.com/NOAA-EMC/NCEPLIBS-sp/archive/refs/tags/v2.3.3.tar.gz" - maintainers( - "t-brown", - "AlexanderRichert-NOAA", - "edwardhartnett", - "Hang-Lei-NOAA", - ) + maintainers("t-brown", "AlexanderRichert-NOAA", "edwardhartnett", "Hang-Lei-NOAA") version("2.3.3", sha256="c0d465209e599de3c0193e65671e290e9f422f659f1da928505489a3edeab99f") diff --git a/var/spack/repos/builtin/packages/spectrum-mpi/package.py b/var/spack/repos/builtin/packages/spectrum-mpi/package.py index e0ed8642d7..ea5c29d322 100644 --- a/var/spack/repos/builtin/packages/spectrum-mpi/package.py +++ b/var/spack/repos/builtin/packages/spectrum-mpi/package.py @@ -62,7 +62,7 @@ class SpectrumMpi(BundlePackage): siblings = os.listdir(dirname) compilers_found = {} for compiler_suite in compiler_suites.values(): - for (compiler_class, compiler_name) in compiler_suite.items(): + for compiler_class, compiler_name in compiler_suite.items(): if compiler_name in siblings: # Get the real name of the compiler full_exe = os.path.join(dirname, compiler_name) diff --git a/var/spack/repos/builtin/packages/spiner/package.py b/var/spack/repos/builtin/packages/spiner/package.py index dd127717c2..74ce0b2ce1 100644 --- a/var/spack/repos/builtin/packages/spiner/package.py +++ b/var/spack/repos/builtin/packages/spiner/package.py @@ -37,11 +37,7 @@ class Spiner(CMakePackage, CudaPackage): # When overriding/overloading varaints, the last variant is always used, except for # "when" clauses. Therefore, call the whens FIRST then the non-whens. # https://spack.readthedocs.io/en/latest/packaging_guide.html#overriding-variants - variant( - "kokkos", - default=False, - description="Enable kokkos", - ) + variant("kokkos", default=False, description="Enable kokkos") variant("openmp", default=False, description="Enable openmp kokkos backend") variant("hdf5", default=False, description="Enable hdf5") diff --git a/var/spack/repos/builtin/packages/sqlcipher/package.py b/var/spack/repos/builtin/packages/sqlcipher/package.py index 524feaae99..501166e190 100644 --- a/var/spack/repos/builtin/packages/sqlcipher/package.py +++ b/var/spack/repos/builtin/packages/sqlcipher/package.py @@ -26,12 +26,7 @@ class Sqlcipher(AutotoolsPackage): version("3.4.2", sha256="69897a5167f34e8a84c7069f1b283aba88cdfa8ec183165c4a5da2c816cfaadb") depends_on("openssl") - depends_on( - "tcl", - type=[ - "build", - ], - ) + depends_on("tcl", type=["build"]) depends_on("zlib") def configure_args(self): diff --git a/var/spack/repos/builtin/packages/starpu/package.py b/var/spack/repos/builtin/packages/starpu/package.py index 44ac7dd94e..1be08ff8aa 100644 --- a/var/spack/repos/builtin/packages/starpu/package.py +++ b/var/spack/repos/builtin/packages/starpu/package.py @@ -104,11 +104,7 @@ class Starpu(AutotoolsPackage): def configure_args(self): spec = self.spec - config_args = [ - "--disable-build-doc", - "--enable-blas-lib=none", - "--disable-mlr", - ] + config_args = ["--disable-build-doc", "--enable-blas-lib=none", "--disable-mlr"] # add missing lib for simgrid static compilation, # already fixed since StarPU 1.2.1 diff --git a/var/spack/repos/builtin/packages/strumpack/package.py b/var/spack/repos/builtin/packages/strumpack/package.py index a1a3d4111b..525a5a46ba 100644 --- a/var/spack/repos/builtin/packages/strumpack/package.py +++ b/var/spack/repos/builtin/packages/strumpack/package.py @@ -131,11 +131,7 @@ class Strumpack(CMakePackage, CudaPackage, ROCmPackage): "-DCMAKE_Fortran_COMPILER=%s" % spec["mpi"].mpifc, ] ) - args.extend( - [ - self.define_from_variant("STRUMPACK_C_INTERFACE", "c_interface"), - ] - ) + args.extend([self.define_from_variant("STRUMPACK_C_INTERFACE", "c_interface")]) if "+cuda" in spec: args.extend( diff --git a/var/spack/repos/builtin/packages/suite-sparse/package.py b/var/spack/repos/builtin/packages/suite-sparse/package.py index d1eba4d710..8d9a12c466 100644 --- a/var/spack/repos/builtin/packages/suite-sparse/package.py +++ b/var/spack/repos/builtin/packages/suite-sparse/package.py @@ -211,10 +211,7 @@ class SuiteSparse(Package): # Intel TBB in SuiteSparseQR if "+tbb" in spec: - make_args += [ - "SPQR_CONFIG=-DHAVE_TBB", - "TBB=%s" % spec["tbb"].libs.ld_flags, - ] + make_args += ["SPQR_CONFIG=-DHAVE_TBB", "TBB=%s" % spec["tbb"].libs.ld_flags] if "@5.3:" in spec: # Without CMAKE_LIBRARY_PATH defined, the CMake file in the diff --git a/var/spack/repos/builtin/packages/sundials/package.py b/var/spack/repos/builtin/packages/sundials/package.py index 73fd03cd4e..a4a0592386 100644 --- a/var/spack/repos/builtin/packages/sundials/package.py +++ b/var/spack/repos/builtin/packages/sundials/package.py @@ -479,10 +479,7 @@ class Sundials(CMakePackage, CudaPackage, ROCmPackage): if "+superlu-mt" in spec: if spec.satisfies("@3:"): args.extend( - [ - define("BLAS_ENABLE", True), - define("BLAS_LIBRARIES", spec["blas"].libs), - ] + [define("BLAS_ENABLE", True), define("BLAS_LIBRARIES", spec["blas"].libs)] ) args.extend( [ diff --git a/var/spack/repos/builtin/packages/superlu-mt/package.py b/var/spack/repos/builtin/packages/superlu-mt/package.py index 4186cf76b4..b27c289a8a 100644 --- a/var/spack/repos/builtin/packages/superlu-mt/package.py +++ b/var/spack/repos/builtin/packages/superlu-mt/package.py @@ -104,11 +104,7 @@ class SuperluMt(Package): ) if "+int64" in spec: - config.extend( - [ - "CFLAGS += -D_LONGINT", - ] - ) + config.extend(["CFLAGS += -D_LONGINT"]) if "+pic" in spec: config.extend( diff --git a/var/spack/repos/builtin/packages/sysstat/package.py b/var/spack/repos/builtin/packages/sysstat/package.py index 1d4a6e4144..6f242b9c70 100644 --- a/var/spack/repos/builtin/packages/sysstat/package.py +++ b/var/spack/repos/builtin/packages/sysstat/package.py @@ -28,9 +28,6 @@ class Sysstat(AutotoolsPackage): env.append_flags("conf_dir", self.spec.prefix.etc.sysconfig) def configure_args(self): - args = [ - "--disable-pcp", - "--disable-file-attr", - ] + args = ["--disable-pcp", "--disable-file-attr"] return args diff --git a/var/spack/repos/builtin/packages/tamaas/package.py b/var/spack/repos/builtin/packages/tamaas/package.py index b5ca305c17..f09c098852 100644 --- a/var/spack/repos/builtin/packages/tamaas/package.py +++ b/var/spack/repos/builtin/packages/tamaas/package.py @@ -74,8 +74,6 @@ class Tamaas(SConsPackage): ] if spec.satisfies("+python"): - args += [ - "PYBIND11_ROOT={}".format(spec["py-pybind11"].prefix), - ] + args += ["PYBIND11_ROOT={}".format(spec["py-pybind11"].prefix)] return args diff --git a/var/spack/repos/builtin/packages/tasmanian/package.py b/var/spack/repos/builtin/packages/tasmanian/package.py index 4607e83c98..02f971b13a 100644 --- a/var/spack/repos/builtin/packages/tasmanian/package.py +++ b/var/spack/repos/builtin/packages/tasmanian/package.py @@ -193,9 +193,7 @@ class Tasmanian(CMakePackage, CudaPackage, ROCmPackage): # using the tests copied from <prefix>/share/Tasmanian/testing cmake_dir = self.test_suite.current_test_cache_dir.testing - options = [ - cmake_dir, - ] + options = [cmake_dir] if "+rocm" in self.spec: options.append( "-DAMDDeviceLibs_DIR=" diff --git a/var/spack/repos/builtin/packages/tau/package.py b/var/spack/repos/builtin/packages/tau/package.py index 6902ce16ef..3e759814ea 100644 --- a/var/spack/repos/builtin/packages/tau/package.py +++ b/var/spack/repos/builtin/packages/tau/package.py @@ -142,7 +142,6 @@ class Tau(Package): filter_compiler_wrappers("Makefile.tau*", relative_root="lib64") def set_compiler_options(self, spec): - useropt = ["-O2 -g", self.rpath_args] ########## diff --git a/var/spack/repos/builtin/packages/texinfo/package.py b/var/spack/repos/builtin/packages/texinfo/package.py index b111c628eb..e9e5e95adc 100644 --- a/var/spack/repos/builtin/packages/texinfo/package.py +++ b/var/spack/repos/builtin/packages/texinfo/package.py @@ -38,10 +38,7 @@ class Texinfo(AutotoolsPackage, GNUMirrorPackage): depends_on("gettext") # sanity check - sanity_check_is_file = [ - join_path("bin", "info"), - join_path("bin", "makeinfo"), - ] + sanity_check_is_file = [join_path("bin", "info"), join_path("bin", "makeinfo")] # Fix unescaped braces in regexps. # Ref: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=898994 diff --git a/var/spack/repos/builtin/packages/texlive/package.py b/var/spack/repos/builtin/packages/texlive/package.py index 0ff3d09da6..138134f202 100644 --- a/var/spack/repos/builtin/packages/texlive/package.py +++ b/var/spack/repos/builtin/packages/texlive/package.py @@ -235,18 +235,9 @@ class Texlive(AutotoolsPackage): releases = cls.releases releases.extend( [ - { - "version": "20180414", - "year": "2018", - }, - { - "version": "20170524", - "year": "2017", - }, - { - "version": "20130530", - "year": "2013", - }, + {"version": "20180414", "year": "2018"}, + {"version": "20170524", "year": "2017"}, + {"version": "20130530", "year": "2013"}, ] ) # tex indicates the year only diff --git a/var/spack/repos/builtin/packages/tfel/package.py b/var/spack/repos/builtin/packages/tfel/package.py index d3f461dedd..cfbd22f6dd 100644 --- a/var/spack/repos/builtin/packages/tfel/package.py +++ b/var/spack/repos/builtin/packages/tfel/package.py @@ -133,7 +133,6 @@ class Tfel(CMakePackage): conflicts("%gcc@:7", when="@4:") def cmake_args(self): - args = [] args.append("-DUSE_EXTERNAL_COMPILER_FLAGS=ON") diff --git a/var/spack/repos/builtin/packages/timemory/package.py b/var/spack/repos/builtin/packages/timemory/package.py index b580d09fce..dec4e27cb2 100644 --- a/var/spack/repos/builtin/packages/timemory/package.py +++ b/var/spack/repos/builtin/packages/timemory/package.py @@ -61,15 +61,9 @@ class Timemory(CMakePackage, PythonExtension): variant("vtune", default=False, description="Enable VTune support") variant("upcxx", default=False, description="Enable UPC++ support") variant("gotcha", default=False, description="Enable GOTCHA support") + variant("likwid", default=False, description="Enable LIKWID CPU marker API support (perfmon)") variant( - "likwid", - default=False, - description="Enable LIKWID CPU marker API support (perfmon)", - ) - variant( - "likwid_nvmon", - default=False, - description="Enable LIKWID GPU marker API support (nvmon)", + "likwid_nvmon", default=False, description="Enable LIKWID GPU marker API support (nvmon)" ) variant("caliper", default=False, description="Enable Caliper support") variant("dyninst", default=False, description="Build dynamic instrumentation tools") @@ -172,16 +166,10 @@ class Timemory(CMakePackage, PythonExtension): "but larger memory consumption", ) variant( - "mpip_library", - default=False, - description="Build stand-alone timemory-mpip GOTCHA library", + "mpip_library", default=False, description="Build stand-alone timemory-mpip GOTCHA library" ) variant("ompt", default=False, description=("Enable OpenMP tools support")) - variant( - "ompt_library", - default=False, - description="Build stand-alone timemory-ompt library", - ) + variant("ompt_library", default=False, description="Build stand-alone timemory-ompt library") variant("allinea_map", default=False, description="Enable Allinea ARM-MAP support") variant( "require_packages", @@ -244,25 +232,17 @@ class Timemory(CMakePackage, PythonExtension): msg="+kokkos_build_config requires +tools+kokkos_tools", ) conflicts( - "tls_model=local-dynamic", - when="+python", - msg="+python require tls_model=global-dynamic", + "tls_model=local-dynamic", when="+python", msg="+python require tls_model=global-dynamic" ) conflicts( - "tls_model=initial-exec", - when="+python", - msg="+python require tls_model=global-dynamic", + "tls_model=initial-exec", when="+python", msg="+python require tls_model=global-dynamic" ) conflicts( - "tls_model=local-exec", - when="+python", - msg="+python require tls_model=global-dynamic", + "tls_model=local-exec", when="+python", msg="+python require tls_model=global-dynamic" ) conflicts("+nccl", when="~gotcha", msg="+nccl requires +gotcha") conflicts( - "+nccl", - when="~shared~static", - msg="+nccl requires building shared or static libraries", + "+nccl", when="~shared~static", msg="+nccl requires building shared or static libraries" ) conflicts("+mpip_library", when="~mpi", msg="+mpip_library requires +mpi") conflicts("+mpip_library", when="~gotcha", msg="+mpip_library requires +gotcha") diff --git a/var/spack/repos/builtin/packages/totalview/package.py b/var/spack/repos/builtin/packages/totalview/package.py index 326c8db104..437e9b2466 100644 --- a/var/spack/repos/builtin/packages/totalview/package.py +++ b/var/spack/repos/builtin/packages/totalview/package.py @@ -249,7 +249,6 @@ class Totalview(Package): # Run install script for totalview (which automatically installs memoryscape) with working_dir("./totalview.{0}".format(self.version)): - install_cmd = which("./Install") arg_list.extend(["-install", "totalview"]) # TotalView automatically installs Memoryscape, so no need to add diff --git a/var/spack/repos/builtin/packages/tracy-client/package.py b/var/spack/repos/builtin/packages/tracy-client/package.py index 56b3c84a29..0d3e3e9fe5 100644 --- a/var/spack/repos/builtin/packages/tracy-client/package.py +++ b/var/spack/repos/builtin/packages/tracy-client/package.py @@ -16,20 +16,10 @@ class TracyClient(CMakePackage): version("master", git="https://github.com/wolfpld/tracy.git", branch="master") version("0.9", sha256="93a91544e3d88f3bc4c405bad3dbc916ba951cdaadd5fcec1139af6fa56e6bfc") - version( - "0.8.2", - sha256="4784eddd89c17a5fa030d408392992b3da3c503c872800e9d3746d985cfcc92a", - ) - version( - "0.8.1", - sha256="004992012b2dc879a9f6d143cbf94d7ea30e88135db3ef08951605d214892891", - ) + version("0.8.2", sha256="4784eddd89c17a5fa030d408392992b3da3c503c872800e9d3746d985cfcc92a") + version("0.8.1", sha256="004992012b2dc879a9f6d143cbf94d7ea30e88135db3ef08951605d214892891") - variant( - "shared", - default=True, - description="Build the client library as a shared library", - ) + variant("shared", default=True, description="Build the client library as a shared library") tracy_options = { "enable": (True, "Enable profiling"), @@ -38,10 +28,7 @@ class TracyClient(CMakePackage): "no_callstack": (False, "Disable all callstack related functionality"), "no_callstack_inlines": (False, "Disables the inline functions in callstacks"), "only_localhost": (False, "Only listen on the localhost interface"), - "no_broadcast": ( - False, - "Disable client discovery by broadcast to local network", - ), + "no_broadcast": (False, "Disable client discovery by broadcast to local network"), "only_ipv4": ( False, "Tracy will only accept connections on IPv4 addresses (disable IPv6)", @@ -61,10 +48,7 @@ class TracyClient(CMakePackage): False, "Enable delayed initialization of the library (init on first call)", ), - "manual_lifetime": ( - False, - "Enable the manual lifetime management of the profile", - ), + "manual_lifetime": (False, "Enable the manual lifetime management of the profile"), "fibers": (False, "Enable fibers support"), "no_crash_handler": (False, "Disable crash handling"), "timer_fallback": (False, "Use lower resolution timers"), diff --git a/var/spack/repos/builtin/packages/tracy/package.py b/var/spack/repos/builtin/packages/tracy/package.py index 4246dc966b..572e5d879b 100644 --- a/var/spack/repos/builtin/packages/tracy/package.py +++ b/var/spack/repos/builtin/packages/tracy/package.py @@ -16,14 +16,8 @@ class Tracy(MakefilePackage): version("master", git="https://github.com/wolfpld/tracy.git", branch="master") version("0.9", sha256="93a91544e3d88f3bc4c405bad3dbc916ba951cdaadd5fcec1139af6fa56e6bfc") - version( - "0.8.2", - sha256="4784eddd89c17a5fa030d408392992b3da3c503c872800e9d3746d985cfcc92a", - ) - version( - "0.8.1", - sha256="004992012b2dc879a9f6d143cbf94d7ea30e88135db3ef08951605d214892891", - ) + version("0.8.2", sha256="4784eddd89c17a5fa030d408392992b3da3c503c872800e9d3746d985cfcc92a") + version("0.8.1", sha256="004992012b2dc879a9f6d143cbf94d7ea30e88135db3ef08951605d214892891") depends_on("capstone") depends_on("dbus") @@ -41,11 +35,5 @@ class Tracy(MakefilePackage): def install(self, spec, prefix): mkdir(prefix.bin) - install( - join_path(self.build_directory, "capture/build/unix/capture-release"), - prefix.bin, - ) - install( - join_path(self.build_directory, "profiler/build/unix/Tracy-release"), - prefix.bin, - ) + install(join_path(self.build_directory, "capture/build/unix/capture-release"), prefix.bin) + install(join_path(self.build_directory, "profiler/build/unix/Tracy-release"), prefix.bin) diff --git a/var/spack/repos/builtin/packages/trexio/package.py b/var/spack/repos/builtin/packages/trexio/package.py index bf63932b89..0909a2be97 100644 --- a/var/spack/repos/builtin/packages/trexio/package.py +++ b/var/spack/repos/builtin/packages/trexio/package.py @@ -36,7 +36,6 @@ class Trexio(AutotoolsPackage): # Append -lhdf5_hl to LIBS when hdf5 variant is activated # or use --without-hdf5 option otherwise. def configure_args(self): - config_args = [] if "+hdf5" in self.spec: config_args.append("LIBS=-lhdf5_hl") diff --git a/var/spack/repos/builtin/packages/trilinos/package.py b/var/spack/repos/builtin/packages/trilinos/package.py index 2e4213b1f4..dd3ddac5ab 100644 --- a/var/spack/repos/builtin/packages/trilinos/package.py +++ b/var/spack/repos/builtin/packages/trilinos/package.py @@ -722,9 +722,7 @@ class Trilinos(CMakePackage, CudaPackage, ROCmPackage): libs = depspec.libs try: options.extend( - [ - define(trilinos_name + "_INCLUDE_DIRS", depspec.headers.directories), - ] + [define(trilinos_name + "_INCLUDE_DIRS", depspec.headers.directories)] ) except NoHeadersError: # Handle case were depspec does not have headers @@ -813,11 +811,7 @@ class Trilinos(CMakePackage, CudaPackage, ROCmPackage): ) if spec.satisfies("^superlu-dist@4.0:"): - options.extend( - [ - define("HAVE_SUPERLUDIST_LUSTRUCTINIT_2ARG", True), - ] - ) + options.extend([define("HAVE_SUPERLUDIST_LUSTRUCTINIT_2ARG", True)]) if spec.satisfies("^parallel-netcdf"): options.extend( @@ -841,10 +835,7 @@ class Trilinos(CMakePackage, CudaPackage, ROCmPackage): float_s = spec.variants["float"].value options.extend( - [ - define("Teuchos_ENABLE_COMPLEX", complex_s), - define("Teuchos_ENABLE_FLOAT", float_s), - ] + [define("Teuchos_ENABLE_COMPLEX", complex_s), define("Teuchos_ENABLE_FLOAT", float_s)] ) if "+tpetra +explicit_template_instantiation" in spec: diff --git a/var/spack/repos/builtin/packages/ufs-utils/package.py b/var/spack/repos/builtin/packages/ufs-utils/package.py index 2a6d01b9bf..4102250132 100644 --- a/var/spack/repos/builtin/packages/ufs-utils/package.py +++ b/var/spack/repos/builtin/packages/ufs-utils/package.py @@ -15,12 +15,7 @@ class UfsUtils(CMakePackage): homepage = "https://noaa-emcufs-utils.readthedocs.io/en/latest/" url = "https://github.com/NOAA-EMC/UFS_UTILS/archive/refs/tags/ufs_utils_1_6_0.tar.gz" - maintainers( - "t-brown", - "edwardhartnett", - "AlexanderRichert-NOAA", - "Hang-Lei-NOAA", - ) + maintainers("t-brown", "edwardhartnett", "AlexanderRichert-NOAA", "Hang-Lei-NOAA") version("1_6_0", sha256="829ba4b50162e4202f96ec92a65b9fa824f71db65d2b63b70822db07d061cd92") diff --git a/var/spack/repos/builtin/packages/unuran/package.py b/var/spack/repos/builtin/packages/unuran/package.py index 58d80219e7..cf8f705161 100644 --- a/var/spack/repos/builtin/packages/unuran/package.py +++ b/var/spack/repos/builtin/packages/unuran/package.py @@ -30,7 +30,6 @@ class Unuran(AutotoolsPackage): depends_on("rngstreams", when="+rngstreams") def configure_args(self): - spec = self.spec args = [ diff --git a/var/spack/repos/builtin/packages/vasp/package.py b/var/spack/repos/builtin/packages/vasp/package.py index f58df54d11..aa70138c80 100644 --- a/var/spack/repos/builtin/packages/vasp/package.py +++ b/var/spack/repos/builtin/packages/vasp/package.py @@ -66,7 +66,6 @@ class Vasp(MakefilePackage): parallel = False def edit(self, spec, prefix): - if "%gcc" in spec: if "+openmp" in spec: make_include = join_path("arch", "makefile.include.linux_gnu_omp") diff --git a/var/spack/repos/builtin/packages/vecgeom/package.py b/var/spack/repos/builtin/packages/vecgeom/package.py index c19159c9e9..890ae3aa0d 100644 --- a/var/spack/repos/builtin/packages/vecgeom/package.py +++ b/var/spack/repos/builtin/packages/vecgeom/package.py @@ -140,11 +140,6 @@ class Vecgeom(CMakePackage, CudaPackage): ) if spec.satisfies("@:0.5.2"): - args.extend( - [ - define("USOLIDS", True), - define("USOLIDS_VECGEOM", True), - ] - ) + args.extend([define("USOLIDS", True), define("USOLIDS_VECGEOM", True)]) return args diff --git a/var/spack/repos/builtin/packages/viennarna/package.py b/var/spack/repos/builtin/packages/viennarna/package.py index cc793a619b..9091afc9d9 100644 --- a/var/spack/repos/builtin/packages/viennarna/package.py +++ b/var/spack/repos/builtin/packages/viennarna/package.py @@ -35,7 +35,6 @@ class Viennarna(AutotoolsPackage): return url.format(version.up_to(2).underscored, version) def configure_args(self): - args = self.enable_or_disable("sse") args += self.with_or_without("python") args += self.with_or_without("perl") diff --git a/var/spack/repos/builtin/packages/vtk/package.py b/var/spack/repos/builtin/packages/vtk/package.py index f4dd565094..f44e0645d5 100644 --- a/var/spack/repos/builtin/packages/vtk/package.py +++ b/var/spack/repos/builtin/packages/vtk/package.py @@ -209,10 +209,7 @@ class Vtk(CMakePackage): # spack-built versions whenever possible but there are exceptions. if spec.satisfies("@:8"): cmake_args.extend( - [ - "-DVTK_USE_SYSTEM_LIBRARIES:BOOL=ON", - "-DVTK_USE_SYSTEM_LIBHARU=OFF", - ] + ["-DVTK_USE_SYSTEM_LIBRARIES:BOOL=ON", "-DVTK_USE_SYSTEM_LIBHARU=OFF"] ) if spec.satisfies("@:8.0"): cmake_args.append("-DVTK_USE_SYSTEM_GL2PS=OFF") diff --git a/var/spack/repos/builtin/packages/w3emc/package.py b/var/spack/repos/builtin/packages/w3emc/package.py index 935632afea..ac613a1f44 100644 --- a/var/spack/repos/builtin/packages/w3emc/package.py +++ b/var/spack/repos/builtin/packages/w3emc/package.py @@ -15,12 +15,7 @@ class W3emc(CMakePackage): homepage = "https://noaa-emc.github.io/NCEPLIBS-w3emc/" url = "https://github.com/NOAA-EMC/NCEPLIBS-w3emc/archive/refs/tags/v2.9.0.tar.gz" - maintainers( - "t-brown", - "AlexanderRichert-NOAA", - "Hang-Lei-NOAA", - "edwardhartnett", - ) + maintainers("t-brown", "AlexanderRichert-NOAA", "Hang-Lei-NOAA", "edwardhartnett") version("2.9.3", sha256="9ca1b08dd13dfbad4a955257ae0cf38d2e300ccd8d983606212bc982370a29bc") version("2.9.2", sha256="eace811a1365f69b85fdf2bcd93a9d963ba72de5a7111e6fa7c0e6578b69bfbc") diff --git a/var/spack/repos/builtin/packages/w3nco/package.py b/var/spack/repos/builtin/packages/w3nco/package.py index 13e9137c58..8be3d33488 100644 --- a/var/spack/repos/builtin/packages/w3nco/package.py +++ b/var/spack/repos/builtin/packages/w3nco/package.py @@ -16,11 +16,6 @@ class W3nco(CMakePackage): homepage = "https://noaa-emc.github.io/NCEPLIBS/NCEPLIBS-w3nco/" url = "https://github.com/NOAA-EMC/NCEPLIBS-w3nco/archive/refs/tags/v2.4.1.tar.gz" - maintainers( - "t-brown", - "AlexanderRichert-NOAA", - "Hang-Lei-NOAA", - "edwardhartnett", - ) + maintainers("t-brown", "AlexanderRichert-NOAA", "Hang-Lei-NOAA", "edwardhartnett") version("2.4.1", sha256="48b06e0ea21d3d0fd5d5c4e7eb50b081402567c1bff6c4abf4fd4f3669070139") diff --git a/var/spack/repos/builtin/packages/wannier90/package.py b/var/spack/repos/builtin/packages/wannier90/package.py index c98fbd8de6..a354f7a2f1 100644 --- a/var/spack/repos/builtin/packages/wannier90/package.py +++ b/var/spack/repos/builtin/packages/wannier90/package.py @@ -63,7 +63,6 @@ class Wannier90(MakefilePackage): return abspath def edit(self, spec, prefix): - lapack = self.spec["lapack"].libs blas = self.spec["blas"].libs mpi = self.spec["mpi"].libs @@ -81,9 +80,7 @@ class Wannier90(MakefilePackage): filter_file(key, value, self.makefile_name) if self.spec.satisfies("%gcc@10:"): - fflags = [ - "-fallow-argument-mismatch", - ] + fflags = ["-fallow-argument-mismatch"] filter_file(r"(^FCOPTS=.*)", r"\1 {0}".format(" ".join(fflags)), self.makefile_name) if "@:2 +shared" in self.spec: diff --git a/var/spack/repos/builtin/packages/wget/package.py b/var/spack/repos/builtin/packages/wget/package.py index 27e79db810..1f1784ff1a 100644 --- a/var/spack/repos/builtin/packages/wget/package.py +++ b/var/spack/repos/builtin/packages/wget/package.py @@ -57,10 +57,7 @@ class Wget(AutotoolsPackage, GNUMirrorPackage): def configure_args(self): spec = self.spec - args = [ - "--with-ssl={0}".format(spec.variants["ssl"].value), - "--without-included-regex", - ] + args = ["--with-ssl={0}".format(spec.variants["ssl"].value), "--without-included-regex"] if "+zlib" in spec: args.append("--with-zlib") diff --git a/var/spack/repos/builtin/packages/wgrib2/package.py b/var/spack/repos/builtin/packages/wgrib2/package.py index 34a552ffc3..4cd400c992 100644 --- a/var/spack/repos/builtin/packages/wgrib2/package.py +++ b/var/spack/repos/builtin/packages/wgrib2/package.py @@ -15,12 +15,7 @@ class Wgrib2(MakefilePackage): homepage = "https://www.cpc.ncep.noaa.gov/products/wesley/wgrib2" url = "https://www.ftp.cpc.ncep.noaa.gov/wd51we/wgrib2/wgrib2.tgz.v2.0.8" - maintainers( - "t-brown", - "AlexanderRichert-NOAA", - "Hang-Lei-NOAA", - "edwardhartnett", - ) + maintainers("t-brown", "AlexanderRichert-NOAA", "Hang-Lei-NOAA", "edwardhartnett") version( "3.1.1", @@ -155,7 +150,6 @@ class Wgrib2(MakefilePackage): makefile.filter(r"^%s=.*" % makefile_option, "{}={}".format(makefile_option, value)) def setup_build_environment(self, env): - if self.spec.compiler.name in "intel": comp_sys = "intel_linux" elif self.spec.compiler.name in ["gcc", "clang", "apple-clang"]: @@ -164,7 +158,6 @@ class Wgrib2(MakefilePackage): env.set("COMP_SYS", comp_sys) def build(self, spec, prefix): - # Get source files for netCDF4 builds if self.spec.satisfies("+netcdf4"): with working_dir(self.build_directory): diff --git a/var/spack/repos/builtin/packages/wrf-io/package.py b/var/spack/repos/builtin/packages/wrf-io/package.py index bb238f862f..71e85be873 100644 --- a/var/spack/repos/builtin/packages/wrf-io/package.py +++ b/var/spack/repos/builtin/packages/wrf-io/package.py @@ -16,12 +16,7 @@ class WrfIo(CMakePackage): homepage = "https://noaa-emc.github.io/NCEPLIBS-wrf_io" url = "https://github.com/NOAA-EMC/NCEPLIBS-wrf_io/archive/refs/tags/v1.2.0.tar.gz" - maintainers( - "t-brown", - "AlexanderRichert-NOAA", - "Hang-Lei-NOAA", - "edwardhartnett", - ) + maintainers("t-brown", "AlexanderRichert-NOAA", "Hang-Lei-NOAA", "edwardhartnett") version("1.2.0", sha256="000cf5294a2c68460085258186e1f36c86d3d0d9c433aa969a0f92736b745617") diff --git a/var/spack/repos/builtin/packages/wrf/package.py b/var/spack/repos/builtin/packages/wrf/package.py index 1cf811dcb9..f197d9b956 100644 --- a/var/spack/repos/builtin/packages/wrf/package.py +++ b/var/spack/repos/builtin/packages/wrf/package.py @@ -93,11 +93,7 @@ class Wrf(Package): url="https://github.com/wrf-model/WRF/archive/V3.9.1.1.tar.gz", ) - variant( - "build_type", - default="dmpar", - values=("serial", "smpar", "dmpar", "dm+sm"), - ) + variant("build_type", default="dmpar", values=("serial", "smpar", "dmpar", "dm+sm")) variant( "nesting", default="basic", @@ -121,11 +117,7 @@ class Wrf(Package): "em_scm_xy", ), ) - variant( - "pnetcdf", - default=True, - description="Parallel IO support through Pnetcdf library", - ) + variant("pnetcdf", default=True, description="Parallel IO support through Pnetcdf library") variant("chem", default=False, description="Enable WRF-Chem", when="@4:") variant("netcdf_classic", default=False, description="Use NetCDF without HDF5 compression") @@ -255,7 +247,6 @@ class Wrf(Package): filter_file("^#!/bin/csh", "#!/usr/bin/env csh", *files) def answer_configure_question(self, outputbuf): - # Platform options question: if "Please select from among the following" in outputbuf: options = collect_platform_options(outputbuf) @@ -323,7 +314,6 @@ class Wrf(Package): config.filter("^DM_CC.*mpicc", "DM_CC = {0}".format(self.spec["mpi"].mpicc)) def configure(self, spec, prefix): - # Remove broken default options... self.do_configure_fixup() @@ -403,7 +393,6 @@ class Wrf(Package): return False def build(self, spec, prefix): - result = self.run_compile_script() if not result: diff --git a/var/spack/repos/builtin/packages/xsbench/package.py b/var/spack/repos/builtin/packages/xsbench/package.py index 4ef593e4a2..4e152807cc 100644 --- a/var/spack/repos/builtin/packages/xsbench/package.py +++ b/var/spack/repos/builtin/packages/xsbench/package.py @@ -46,7 +46,6 @@ class Xsbench(MakefilePackage, CudaPackage): @property def build_targets(self): - targets = [] cflags = "" diff --git a/var/spack/repos/builtin/packages/xyce/package.py b/var/spack/repos/builtin/packages/xyce/package.py index cdcc489834..51062dc8f3 100644 --- a/var/spack/repos/builtin/packages/xyce/package.py +++ b/var/spack/repos/builtin/packages/xyce/package.py @@ -105,7 +105,6 @@ class Xyce(CMakePackage): # Issue #1712 forces explicitly enumerating blas packages to propagate variants with when("+pymi_static_tpls"): - # BLAS depends_on("openblas~shared", when="^openblas") depends_on("netlib-lapack~shared", when="^netlib-lapack~external-blas") diff --git a/var/spack/repos/builtin/packages/yambo/package.py b/var/spack/repos/builtin/packages/yambo/package.py index d84ee743da..95a61ca46e 100644 --- a/var/spack/repos/builtin/packages/yambo/package.py +++ b/var/spack/repos/builtin/packages/yambo/package.py @@ -87,7 +87,6 @@ class Yambo(AutotoolsPackage): return "--enable-open-mp" if activated else "--disable-open-mp" def configure_args(self): - args = [ # As of version 4.2.1 there are hard-coded paths that make # the build process fail if the target prefix is not the diff --git a/var/spack/repos/builtin/packages/zoltan/package.py b/var/spack/repos/builtin/packages/zoltan/package.py index 9af9503b48..98322f8078 100644 --- a/var/spack/repos/builtin/packages/zoltan/package.py +++ b/var/spack/repos/builtin/packages/zoltan/package.py @@ -88,10 +88,7 @@ class Zoltan(AutotoolsPackage): self.get_config_flag("f90interface", "fortran"), self.get_config_flag("mpi", "mpi"), ] - config_cflags = [ - "-O0" if "+debug" in spec else "-O3", - "-g" if "+debug" in spec else "", - ] + config_cflags = ["-O0" if "+debug" in spec else "-O3", "-g" if "+debug" in spec else ""] config_ldflags = [] # PGI runtime libraries diff --git a/var/spack/repos/tutorial/packages/hdf5/package.py b/var/spack/repos/tutorial/packages/hdf5/package.py index dd9192a9ca..0fceeef891 100644 --- a/var/spack/repos/tutorial/packages/hdf5/package.py +++ b/var/spack/repos/tutorial/packages/hdf5/package.py @@ -284,11 +284,7 @@ class Hdf5(CMakePackage): "libhdf5_java", "libhdf5", ], - ("cxx", "hl"): [ - "libhdf5_hl_cpp", - "libhdf5_hl", - "libhdf5", - ], + ("cxx", "hl"): ["libhdf5_hl_cpp", "libhdf5_hl", "libhdf5"], ("fortran", "hl"): [ "libhdf5_hl_fortran", "libhdf5_hl_f90cstub", @@ -297,29 +293,11 @@ class Hdf5(CMakePackage): "libhdf5_f90cstub", "libhdf5", ], - ("hl",): [ - "libhdf5_hl", - "libhdf5", - ], - ("cxx", "fortran"): [ - "libhdf5_fortran", - "libhdf5_f90cstub", - "libhdf5_cpp", - "libhdf5", - ], - ("cxx",): [ - "libhdf5_cpp", - "libhdf5", - ], - ("fortran",): [ - "libhdf5_fortran", - "libhdf5_f90cstub", - "libhdf5", - ], - ("java",): [ - "libhdf5_java", - "libhdf5", - ], + ("hl",): ["libhdf5_hl", "libhdf5"], + ("cxx", "fortran"): ["libhdf5_fortran", "libhdf5_f90cstub", "libhdf5_cpp", "libhdf5"], + ("cxx",): ["libhdf5_cpp", "libhdf5"], + ("fortran",): ["libhdf5_fortran", "libhdf5_f90cstub", "libhdf5"], + ("java",): ["libhdf5_java", "libhdf5"], } # Turn the query into the appropriate key diff --git a/var/spack/repos/tutorial/packages/netlib-lapack/package.py b/var/spack/repos/tutorial/packages/netlib-lapack/package.py index 471382047b..ff98d722e3 100644 --- a/var/spack/repos/tutorial/packages/netlib-lapack/package.py +++ b/var/spack/repos/tutorial/packages/netlib-lapack/package.py @@ -88,16 +88,9 @@ class NetlibLapack(CMakePackage): query_parameters = self.spec.last_query.extra_parameters query2libraries = { tuple(): ["libblas"], - ("c", "fortran"): [ - "libcblas", - "libblas", - ], - ("c",): [ - "libcblas", - ], - ("fortran",): [ - "libblas", - ], + ("c", "fortran"): ["libcblas", "libblas"], + ("c",): ["libcblas"], + ("fortran",): ["libblas"], } key = tuple(sorted(query_parameters)) libraries = query2libraries[key] |