Skip to content

Commit

Permalink
Update multiprocess (spack#24634)
Browse files Browse the repository at this point in the history
* Update multiprocess

* Add build and run
  • Loading branch information
schmitts authored Jul 12, 2021
1 parent 872785d commit 1784b05
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion var/spack/repos/builtin/packages/py-multiprocess/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,24 @@ class PyMultiprocess(PythonPackage):
homepage = "https://github.com/uqfoundation/multiprocess"
pypi = "multiprocess/multiprocess-0.70.5.zip"

version('0.70.12.2', sha256='206bb9b97b73f87fec1ed15a19f8762950256aa84225450abc7150d02855a083')
version('0.70.9', sha256='9fd5bd990132da77e73dec6e9613408602a4612e1d73caf2e2b813d2b61508e5')
version('0.70.7', sha256='3394f1fbd0d87112690a877e49eb7917d851ee8d822294d522dd4deae12febdb')
version('0.70.5', sha256='c4c196f3c4561dc1d78139c3e73709906a222d2fc166ef3eef895d8623df7267')
version('0.70.4', sha256='a692c6dc8392c25b29391abb58a9fbdc1ac38bca73c6f27d787774201e68e12c')

depends_on('python@2.5:2.8,3.1:', type=('build', 'run'))
depends_on('python@2.7:2.8,3.6:', when='@0.70.12.2:', type=('build', 'run'))

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:')
depends_on('py-dill@0.3.1:', type=('build', 'run'), when='@0.70.9:')
depends_on('py-dill@0.3.4:', type=('build', 'run'), when='@0.70.12.2:')

def url_for_version(self, version):
url = self.url.rsplit('/', 1)[0]
if version >= Version('0.70.7'):
if Version('0.70.12.2') > version >= Version('0.70.7'):
url += '/multiprocess-{0}.tar.gz'
else:
url += '/multiprocess-{0}.zip'
Expand Down

0 comments on commit 1784b05

Please sign in to comment.