diff options
author | iarspider <iarspider@gmail.com> | 2020-02-20 06:11:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-19 23:11:49 -0600 |
commit | 4d62dda17ae9cbbb025a4a7b5536c47bc18a0aa4 (patch) | |
tree | 0dc5a845a0de1bb072f4671083763835e1971f59 /var | |
parent | a02aadb4db467ade9d9a6bf1534b5695ecf8990f (diff) | |
download | spack-4d62dda17ae9cbbb025a4a7b5536c47bc18a0aa4.tar.gz spack-4d62dda17ae9cbbb025a4a7b5536c47bc18a0aa4.tar.bz2 spack-4d62dda17ae9cbbb025a4a7b5536c47bc18a0aa4.tar.xz spack-4d62dda17ae9cbbb025a4a7b5536c47bc18a0aa4.zip |
Add extra version of py-multiprocess (#15043)
* Add extra version of py-multiprocess
* Update dependency version
* Add url_for_version
* Flake-8
* Update package.py
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-multiprocess/package.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-multiprocess/package.py b/var/spack/repos/builtin/packages/py-multiprocess/package.py index beaa083061..97a58a905d 100644 --- a/var/spack/repos/builtin/packages/py-multiprocess/package.py +++ b/var/spack/repos/builtin/packages/py-multiprocess/package.py @@ -12,6 +12,7 @@ class PyMultiprocess(PythonPackage): homepage = "https://github.com/uqfoundation/multiprocess" url = "https://pypi.io/packages/source/m/multiprocess/multiprocess-0.70.5.zip" + version('0.70.7', sha256='3394f1fbd0d87112690a877e49eb7917d851ee8d822294d522dd4deae12febdb') version('0.70.5', sha256='c4c196f3c4561dc1d78139c3e73709906a222d2fc166ef3eef895d8623df7267') version('0.70.4', sha256='a692c6dc8392c25b29391abb58a9fbdc1ac38bca73c6f27d787774201e68e12c') @@ -19,3 +20,14 @@ class PyMultiprocess(PythonPackage): depends_on('py-setuptools@0.6:', type='build') depends_on('py-dill@0.2.6:', type=('build', 'run')) + depends_on('py-dill@0.2.9:', type=('build', 'run'), when='@0.70.7:') + + def url_for_version(self, version): + url = self.url.rsplit('/', 1)[0] + if version >= Version('0.70.7'): + url += '/multiprocess-{0}.tar.gz' + else: + url += '/multiprocess-{0}.zip' + + url = url.format(version) + return url |