summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriarspider <iarspider@gmail.com>2021-12-09 23:26:18 +0100
committerGitHub <noreply@github.com>2021-12-09 15:26:18 -0700
commit74f4c73c24da3c35a21cc6a0029e1638e356f544 (patch)
tree771e6407853df3121379470f8c51a8e3ecb1cd59
parent9445b931ec1eea1093fadc951e5feecc40a50c61 (diff)
downloadspack-74f4c73c24da3c35a21cc6a0029e1638e356f544.tar.gz
spack-74f4c73c24da3c35a21cc6a0029e1638e356f544.tar.bz2
spack-74f4c73c24da3c35a21cc6a0029e1638e356f544.tar.xz
spack-74f4c73c24da3c35a21cc6a0029e1638e356f544.zip
Add py-climate (#27879)
* fixing bugs in spack monitor updates to installer.py did not account for spack monitor, so as currently implemented there are three cases of failure that spack monitor will not account for. To fix this we add additional hooks, including an on cancel and also do a custom action on concretization fail. Signed-off-by: vsoch <vsoch@users.noreply.github.com> * New package: py-climate * Revert "fixing bugs in spack monitor" This reverts commit bf7f6bf0e39109a315a0d9286150c669d055c21c. * Flake-8 * Update package.py * Update package.py Co-authored-by: vsoch <vsoch@users.noreply.github.com>
-rw-r--r--var/spack/repos/builtin/packages/py-climate/package.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-climate/package.py b/var/spack/repos/builtin/packages/py-climate/package.py
new file mode 100644
index 0000000000..f207537f94
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-climate/package.py
@@ -0,0 +1,27 @@
+# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class PyClimate(PythonPackage):
+ """Command line arguments parsing"""
+
+ homepage = "https://pypi.org/project/climate/"
+ url = 'https://pypi.io/packages/py3/c/climate/climate-0.1.0-py3-none-any.whl'
+
+ version('0.1.0', sha256='01026c764b34d8204b8f527a730ef667fa5827fca765993ff1ed3e9dab2c11ae', expand=False)
+
+ depends_on('python@3.7:3', type=('build', 'run'))
+ depends_on('py-wheel', type='build')
+ depends_on('py-pip', type='build')
+
+ phases = ['install']
+
+ # copied from py-azureml-core
+ def install(self, spec, prefix):
+ pip = which('pip')
+ pip('install', '--no-deps', self.stage.archive_file,
+ '--prefix={0}'.format(prefix))