diff options
author | iarspider <iarspider@gmail.com> | 2022-10-06 00:32:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-05 16:32:56 -0600 |
commit | 143faeee0e1279906e0dc18d912338da83b8d151 (patch) | |
tree | 561ce9c653fed2c9f597165042ae3c87f44a8b9e | |
parent | b4df99376de1881d4210d064adf00084cb2b7415 (diff) | |
download | spack-143faeee0e1279906e0dc18d912338da83b8d151.tar.gz spack-143faeee0e1279906e0dc18d912338da83b8d151.tar.bz2 spack-143faeee0e1279906e0dc18d912338da83b8d151.tar.xz spack-143faeee0e1279906e0dc18d912338da83b8d151.zip |
Add checksum for py-distlib 0.3.6 (#33009)
* Add checksum for py-distlib 0.3.6
* Update package.py
* Update package.py
* Update package.py
-rw-r--r-- | var/spack/repos/builtin/packages/py-distlib/package.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/py-distlib/package.py b/var/spack/repos/builtin/packages/py-distlib/package.py index bf3d529d97..385ff4cbf8 100644 --- a/var/spack/repos/builtin/packages/py-distlib/package.py +++ b/var/spack/repos/builtin/packages/py-distlib/package.py @@ -10,10 +10,21 @@ class PyDistlib(PythonPackage): """Distribution utilities""" homepage = "https://bitbucket.org/pypa/distlib" - pypi = "distlib/distlib-0.3.3.zip" + pypi = "distlib/distlib-0.3.6.tar.gz" + version("0.3.6", sha256="14bad2d9b04d3a36127ac97f30b12a19268f211063d8f8ee4f47108896e11b46") version("0.3.4", sha256="e4b58818180336dc9c529bfb9a0b58728ffc09ad92027a3f30b7cd91e3458579") version("0.3.3", sha256="d982d0751ff6eaaab5e2ec8e691d949ee80eddf01a62eaa96ddb11531fe16b05") # pip silently replaces distutils with setuptools depends_on("py-setuptools", type="build") + depends_on("py-setuptools@44:", when="@0.3.6:", type="build") + depends_on("py-wheel@0.29.0:", when="@0.3.6:", type="build") + + def url_for_version(self, version): + url = "https://files.pythonhosted.org/packages/source/d/distlib/distlib-{0}.{1}" + if version >= Version("0.3.5"): + ext = "tar.gz" + else: + ext = "zip" + return url.format(version, ext) |