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.mock/packages/view-dir-dir/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.mock/packages/view-dir-dir/package.py')
-rw-r--r-- | var/spack/repos/builtin.mock/packages/view-dir-dir/package.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/var/spack/repos/builtin.mock/packages/view-dir-dir/package.py b/var/spack/repos/builtin.mock/packages/view-dir-dir/package.py index e0cece6d54..43fc51882c 100644 --- a/var/spack/repos/builtin.mock/packages/view-dir-dir/package.py +++ b/var/spack/repos/builtin.mock/packages/view-dir-dir/package.py @@ -10,14 +10,15 @@ from spack.package import * class ViewDirDir(Package): """Installs a <prefix>/bin/x where x is a dir, in contrast to view-dir-file.""" + homepage = "http://www.spack.org" url = "http://www.spack.org/downloads/aml-1.0.tar.gz" has_code = False - version('0.1.0', sha256='cc89a8768693f1f11539378b21cdca9f0ce3fc5cb564f9b3e4154a051dcea69b') + version("0.1.0", sha256="cc89a8768693f1f11539378b21cdca9f0ce3fc5cb564f9b3e4154a051dcea69b") def install(self, spec, prefix): - os.mkdir(os.path.join(prefix, 'bin')) - os.mkdir(os.path.join(prefix, 'bin', 'x')) - with open(os.path.join(prefix, 'bin', 'x', 'file_in_dir'), 'wb') as f: - f.write(b'hello world') + os.mkdir(os.path.join(prefix, "bin")) + os.mkdir(os.path.join(prefix, "bin", "x")) + with open(os.path.join(prefix, "bin", "x", "file_in_dir"), "wb") as f: + f.write(b"hello world") |