summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin.mock/packages/hash-test1/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin.mock/packages/hash-test1/package.py')
-rw-r--r--var/spack/repos/builtin.mock/packages/hash-test1/package.py31
1 files changed, 15 insertions, 16 deletions
diff --git a/var/spack/repos/builtin.mock/packages/hash-test1/package.py b/var/spack/repos/builtin.mock/packages/hash-test1/package.py
index 14d125a3e0..0f717006f0 100644
--- a/var/spack/repos/builtin.mock/packages/hash-test1/package.py
+++ b/var/spack/repos/builtin.mock/packages/hash-test1/package.py
@@ -9,30 +9,29 @@ from spack.package import *
class HashTest1(Package):
- """Used to test package hashing
- """
+ """Used to test package hashing"""
homepage = "http://www.hashtest1.org"
url = "http://www.hashtest1.org/downloads/hashtest1-1.1.tar.bz2"
- version('1.1', 'a' * 32)
- version('1.2', 'b' * 32)
- version('1.3', 'c' * 32)
- version('1.4', 'd' * 32)
- version('1.5', 'd' * 32)
- version('1.6', 'e' * 32)
- version('1.7', 'f' * 32)
+ version("1.1", "a" * 32)
+ version("1.2", "b" * 32)
+ version("1.3", "c" * 32)
+ version("1.4", "d" * 32)
+ version("1.5", "d" * 32)
+ version("1.6", "e" * 32)
+ version("1.7", "f" * 32)
- patch('patch1.patch', when="@1.1")
- patch('patch2.patch', when="@1.4")
+ patch("patch1.patch", when="@1.1")
+ patch("patch2.patch", when="@1.4")
- variant('variantx', default=False, description='Test variant X')
- variant('varianty', default=False, description='Test variant Y')
+ variant("variantx", default=False, description="Test variant X")
+ variant("varianty", default=False, description="Test variant Y")
def setup_dependent_build_environment(self, env, dependent_spec):
pass
- @when('@:1.4')
+ @when("@:1.4")
def install(self, spec, prefix):
print("install 1")
os.listdir(os.getcwd())
@@ -40,13 +39,13 @@ class HashTest1(Package):
# sanity_check_prefix requires something in the install directory
mkdirp(prefix.bin)
- @when('@1.5:')
+ @when("@1.5:")
def install(self, spec, prefix):
os.listdir(os.getcwd())
# sanity_check_prefix requires something in the install directory
mkdirp(prefix.bin)
- @when('@1.5,1.6')
+ @when("@1.5,1.6")
def extra_phase(self, spec, prefix):
pass