summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAndrew W Elble <aweits@rit.edu>2021-02-16 15:17:22 -0500
committerGitHub <noreply@github.com>2021-02-16 20:17:22 +0000
commitaed52d7e7961a7d9a8a9650b882601d067691308 (patch)
tree76b7491b99d01ca2749d6d10d3e61c148830ea57 /var
parent67874420c78eb986282ea4e0f531d66929c1de70 (diff)
downloadspack-aed52d7e7961a7d9a8a9650b882601d067691308.tar.gz
spack-aed52d7e7961a7d9a8a9650b882601d067691308.tar.bz2
spack-aed52d7e7961a7d9a8a9650b882601d067691308.tar.xz
spack-aed52d7e7961a7d9a8a9650b882601d067691308.zip
py-typing: new version, avoid issues with newer versions of python (#21684)
* py-typing: new version, avoid issues with newer versions of python https://pypi.org/project/typing/ "For package maintainers, it is preferred to use typing;python_version<"3.5" if your package requires it to support earlier Python versions." * update conflict version / more message detail * change the depends_on, leave a comment suggesting correct usage
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-typing/package.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/py-typing/package.py b/var/spack/repos/builtin/packages/py-typing/package.py
index ef88df584e..7b9d339fdc 100644
--- a/var/spack/repos/builtin/packages/py-typing/package.py
+++ b/var/spack/repos/builtin/packages/py-typing/package.py
@@ -13,10 +13,15 @@ class PyTyping(PythonPackage):
homepage = "https://docs.python.org/3/library/typing.html"
pypi = "typing/typing-3.7.4.1.tar.gz"
+ version('3.7.4.3', sha256='1187fb9c82fd670d10aa07bbb6cfcfe4bdda42d6fab8d5134f04e8c4d0b71cc9')
version('3.7.4.1', sha256='91dfe6f3f706ee8cc32d38edbbf304e9b7583fb37108fef38229617f8b3eba23')
version('3.6.6', sha256='4027c5f6127a6267a435201981ba156de91ad0d1d98e9ddc2aa173453453492d')
version('3.6.4', sha256='d400a9344254803a2368533e4533a4200d21eb7b6b729c173bc38201a74db3f2')
version('3.6.1', sha256='c36dec260238e7464213dcd50d4b5ef63a507972f5780652e835d0228d0edace')
- depends_on('python@2.7:2.8,3.4:', type=('build', 'run'))
+ # Don't use this with new versions of python (3.5+)
+ # python 3.7 and later will actively not import
+ # https://github.com/python/typing/issues/573
+ # _abc_registry now private https://bugs.python.org/issue31333
+ depends_on('python@2.7:2.8,3.4:3.6', type=('build', 'run'))
depends_on('py-setuptools', type='build')