diff options
-rw-r--r-- | var/spack/repos/builtin/packages/py-dill/package.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/py-dill/package.py b/var/spack/repos/builtin/packages/py-dill/package.py index 49bac9470e..a828f760a0 100644 --- a/var/spack/repos/builtin/packages/py-dill/package.py +++ b/var/spack/repos/builtin/packages/py-dill/package.py @@ -10,8 +10,9 @@ class PyDill(PythonPackage): """Serialize all of python """ homepage = "https://github.com/uqfoundation/dill" - url = "https://pypi.io/packages/source/d/dill/dill-0.2.6.zip" + url = "https://pypi.io/packages/source/d/dill/dill-0.2.7.tar.gz" + version('0.2.7', sha256='ddda0107e68e4eb1772a9f434f62a513c080c7171bd0dd6fb65d992788509812') version('0.2.6', sha256='6c1ccca68be483fa8c66e85a89ffc850206c26373aa77a97b83d8d0994e7f1fd') version('0.2.5', sha256='e82b3db7b9d962911c9c2d5cf2bb4a04f43933f505a624fb7dc5f68b949f0a5c') version('0.2.4', sha256='db68929eef0e886055d6bcd86f830141c1f653ddbf5d081c086e9d1c45efb334') @@ -23,3 +24,14 @@ class PyDill(PythonPackage): depends_on('python@2.5:2.8,3.1:') depends_on('py-setuptools@0.6:', type='build') + + def url_for_version(self, version): + url = "https://pypi.io/packages/source/d/dill/" + + if version >= Version('0.2.7'): + url += 'dill-{0}.tar.gz' + else: + url += 'dill-{0}.zip' + + url = url.format(version) + return url |