diff options
author | iarspider <iarspider@gmail.com> | 2019-12-11 21:05:14 +0100 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2019-12-11 14:05:14 -0600 |
commit | aac45154fd1683fefc34e58d9bacfadcdc8dc0d8 (patch) | |
tree | be6787ec3b29f3513f3b4476d124bd6244b4d6e9 /var | |
parent | d07e988fbcd7698a7776e71aecb7eaabdbdb05be (diff) | |
download | spack-aac45154fd1683fefc34e58d9bacfadcdc8dc0d8.tar.gz spack-aac45154fd1683fefc34e58d9bacfadcdc8dc0d8.tar.bz2 spack-aac45154fd1683fefc34e58d9bacfadcdc8dc0d8.tar.xz spack-aac45154fd1683fefc34e58d9bacfadcdc8dc0d8.zip |
Fix py-ppft source extension (#14077)
* Fix py-ppft source extension
* PEP-8 fix
* Update package.py
* Apply suggestions from code review
Co-Authored-By: Adam J. Stewart <ajstewart426@gmail.com>
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-ppft/package.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/py-ppft/package.py b/var/spack/repos/builtin/packages/py-ppft/package.py index 49fa256cdc..917fd21c91 100644 --- a/var/spack/repos/builtin/packages/py-ppft/package.py +++ b/var/spack/repos/builtin/packages/py-ppft/package.py @@ -10,8 +10,9 @@ class PyPpft(PythonPackage): """Distributed and parallel python """ homepage = "https://github.com/uqfoundation/ppft" - url = "https://pypi.io/packages/source/p/ppft/ppft-1.6.4.7.1.zip" + url = "https://pypi.io/packages/source/p/ppft/ppft-1.6.4.9.tar.gz" + version('1.6.4.9', sha256='5537b00afb7b247da0f59cc57ee5680178be61c8b2e21b5a0672b70a3d247791') version('1.6.4.7.1', sha256='f94b26491b4a36adc975fc51dba7568089a24756007a3a4ef3414a98d7337651') version('1.6.4.6', sha256='92d09061f5425634c43dbf99c5558f2cf2a2e1e351929f8da7e85f4649c11095') version('1.6.4.5', sha256='d47da9d2e553848b75727ce7c510f9e149965d5c68f9fc56c774a7c6a3d18214') @@ -21,3 +22,13 @@ class PyPpft(PythonPackage): depends_on('py-setuptools@0.6:', type='build') depends_on('py-six@1.7.3:', type=('build', 'run')) depends_on('py-dill@0.2.6:', type=('build', 'run')) + + def url_for_version(self, version): + url = "https://pypi.io/packages/source/p/ppft/" + if version >= Version('1.6.4.8'): + url += 'ppft-{0}.tar.gz' + else: + url += 'ppft-{0}.zip' + + url = url.format(version) + return url |