diff options
author | iarspider <iarspider@gmail.com> | 2019-12-11 19:04:45 +0100 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2019-12-11 12:04:45 -0600 |
commit | bb3bae4baedafc90cef8ae605aaf2565bb4083c7 (patch) | |
tree | 7e3069c270a5b9e52a949178d7d0f1dd40eaf92a | |
parent | ec3d9798994453c1e15f9bab072318a518de26b7 (diff) | |
download | spack-bb3bae4baedafc90cef8ae605aaf2565bb4083c7.tar.gz spack-bb3bae4baedafc90cef8ae605aaf2565bb4083c7.tar.bz2 spack-bb3bae4baedafc90cef8ae605aaf2565bb4083c7.tar.xz spack-bb3bae4baedafc90cef8ae605aaf2565bb4083c7.zip |
Fix py-pathos source file extension (#14080)
* Fix py-pathos source file extension
* PEP-8 fix
* Add version 0.2.3 to spack
* Update package.py
-rw-r--r-- | var/spack/repos/builtin/packages/py-pathos/package.py | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/py-pathos/package.py b/var/spack/repos/builtin/packages/py-pathos/package.py index 73930a0303..2597a4ae47 100644 --- a/var/spack/repos/builtin/packages/py-pathos/package.py +++ b/var/spack/repos/builtin/packages/py-pathos/package.py @@ -10,14 +10,25 @@ class PyPathos(PythonPackage): """Parallel graph management and execution in heterogeneous computing """ homepage = "https://github.com/uqfoundation/pathos" - url = "https://pypi.io/packages/source/p/pathos/pathos-0.2.0.zip" + url = "https://pypi.io/packages/source/p/pathos/pathos-0.2.3.tar.gz" + version('0.2.3', sha256='954c5b0a8b257c375e35d311c65fa62a210a3d65269195557de38418ac9f61f9') version('0.2.0', sha256='2f4e67e7914c95fb0cce766bab173eb2c5860ee420108fa183099557ac2e50e9') depends_on('python@2.6:2.8,3.1:') depends_on('py-setuptools@0.6:', type='build') - depends_on('py-multiprocess@0.70.4:', type=('build', 'run')) - depends_on('py-pox@0.2.2:', type=('build', 'run')) - depends_on('py-ppft@1.6.4.5:', type=('build', 'run')) - depends_on('py-dill@0.2.5:', type=('build', 'run')) + depends_on('py-multiprocess@0.70.7:', type=('build', 'run')) + depends_on('py-pox@0.2.5:', type=('build', 'run')) + depends_on('py-ppft@1.6.4.9:', type=('build', 'run')) + depends_on('py-dill@0.2.9:', type=('build', 'run')) + + def url_for_version(self, version): + url = self.url.rsplit('/', 1)[0] + if version >= Version('0.2.2'): + url += '/pathos-{0}.tar.gz' + else: + url += '/pathos-{0}.zip' + + url = url.format(version) + return url |