diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2022-07-30 15:19:18 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2022-07-31 13:29:20 -0700 |
commit | f52f6e99dbf1131886a80112b8c79dfc414afb7c (patch) | |
tree | 05cb7d64b2395922f2f24683da49f472075be12c /var/spack/repos/builtin/packages/opam/package.py | |
parent | 549ba1ed32372c67fc57271cde3797d58b7dec6e (diff) | |
download | spack-f52f6e99dbf1131886a80112b8c79dfc414afb7c.tar.gz spack-f52f6e99dbf1131886a80112b8c79dfc414afb7c.tar.bz2 spack-f52f6e99dbf1131886a80112b8c79dfc414afb7c.tar.xz spack-f52f6e99dbf1131886a80112b8c79dfc414afb7c.zip |
black: reformat entire repository with black
Diffstat (limited to 'var/spack/repos/builtin/packages/opam/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/opam/package.py | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/var/spack/repos/builtin/packages/opam/package.py b/var/spack/repos/builtin/packages/opam/package.py index 8139213bed..66741f206f 100644 --- a/var/spack/repos/builtin/packages/opam/package.py +++ b/var/spack/repos/builtin/packages/opam/package.py @@ -9,48 +9,48 @@ from spack.package import * class Opam(AutotoolsPackage): """OPAM: OCaml Package Manager - OPAM is a source-based package manager for OCaml. It supports - multiple simultaneous compiler installations, flexible package - constraints, and a Git-friendly development workflow.""" + OPAM is a source-based package manager for OCaml. It supports + multiple simultaneous compiler installations, flexible package + constraints, and a Git-friendly development workflow.""" homepage = "https://opam.ocaml.org/" - url = "https://github.com/ocaml/opam/releases/download/1.2.2/opam-full-1.2.2.tar.gz" + url = "https://github.com/ocaml/opam/releases/download/1.2.2/opam-full-1.2.2.tar.gz" - maintainers = ['scemama'] + maintainers = ["scemama"] - version('2.0.6', sha256='7c4bff5e5f3628ad00c53ee1b044ced8128ffdcfbb7582f8773fb433e12e07f4') - version('2.0.5', sha256='776c7e64d6e24c2ef1efd1e6a71d36e007645efae94eaf860c05c1929effc76f') - version('2.0.4', sha256='debfb828b400fb511ca290f1bfc928db91cad74ec1ccbddcfdbfeff26f7099e5') - version('2.0.3', sha256='0589da4da184584a5445d59385009536534f60bc0e27772245b2f49e5fa8f0e2') - version('2.0.2', sha256='eeb99fdda4b10ad3467a700fa4d1dfedb30714837d18d2faf1ef9c87d94cf0bc') - version('2.0.1', sha256='81f7f1b661a0c1e04642fe02d0bea5524b32aa2cbed0ecf9b18d7145324ed97c') - version('2.0.0', sha256='9dad4fcb4f53878c9daa6285d8456ccc671e21bfa71544d1f926fb8a63bfed25') - version('1.2.2', sha256='15e617179251041f4bf3910257bbb8398db987d863dd3cfc288bdd958de58f00') - version('1.2.1', sha256='f210ece7a2def34b486c9ccfb75de8febd64487b2ea4a14a7fa0358f37eacc3b') + version("2.0.6", sha256="7c4bff5e5f3628ad00c53ee1b044ced8128ffdcfbb7582f8773fb433e12e07f4") + version("2.0.5", sha256="776c7e64d6e24c2ef1efd1e6a71d36e007645efae94eaf860c05c1929effc76f") + version("2.0.4", sha256="debfb828b400fb511ca290f1bfc928db91cad74ec1ccbddcfdbfeff26f7099e5") + version("2.0.3", sha256="0589da4da184584a5445d59385009536534f60bc0e27772245b2f49e5fa8f0e2") + version("2.0.2", sha256="eeb99fdda4b10ad3467a700fa4d1dfedb30714837d18d2faf1ef9c87d94cf0bc") + version("2.0.1", sha256="81f7f1b661a0c1e04642fe02d0bea5524b32aa2cbed0ecf9b18d7145324ed97c") + version("2.0.0", sha256="9dad4fcb4f53878c9daa6285d8456ccc671e21bfa71544d1f926fb8a63bfed25") + version("1.2.2", sha256="15e617179251041f4bf3910257bbb8398db987d863dd3cfc288bdd958de58f00") + version("1.2.1", sha256="f210ece7a2def34b486c9ccfb75de8febd64487b2ea4a14a7fa0358f37eacc3b") # OCaml 4.10.0 has removed the -safe-string flag, which is necessary # for OPAM 1i (see docstring of setup_build_environment). - depends_on('ocaml@:4.09.0', type='build', when='@:1.2.2') - depends_on('ocaml', type='build', when='@2.0.0:') + depends_on("ocaml@:4.09.0", type="build", when="@:1.2.2") + depends_on("ocaml", type="build", when="@2.0.0:") parallel = False - sanity_check_is_file = ['bin/opam'] + sanity_check_is_file = ["bin/opam"] - @when('@:1.2.2') + @when("@:1.2.2") def setup_build_environment(self, env): - ''' In OCaml <4.06.1, the default was -safe-string=0, and this has + """In OCaml <4.06.1, the default was -safe-string=0, and this has changed in OCaml >=4.06.1. OPAM version 1 was written before 4.06.1 was released, so OPAM <2.0 assumes mutable strings and requires the safe-string=0 flag. This is not true with OPAM >=2.0, so the flag - should not be set.''' + should not be set.""" # Environment variable setting taken from # https://github.com/Homebrew/homebrew-core/blob/master/Formula/opam.rb - env.set('OCAMLPARAM', 'safe-string=0,_') # OCaml 4.06.0 compat + env.set("OCAMLPARAM", "safe-string=0,_") # OCaml 4.06.0 compat def build(self, spec, prefix): - make('lib-ext') + make("lib-ext") make() - if spec.satisfies('@:1.2.2'): - make('man') + if spec.satisfies("@:1.2.2"): + make("man") |