Skip to content

Commit

Permalink
py-frozendict: patch up for Python 3.11
Browse files Browse the repository at this point in the history
See also Marco-Sulla/python-frozendict#68, rely on a pure Python
implementation when 3.11+ is used.
  • Loading branch information
matz-e committed Jan 22, 2024
1 parent 91ff20c commit 1151a4f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions var/spack/repos/builtin/packages/py-frozendict/package.py
Expand Up @@ -14,8 +14,14 @@ class PyFrozendict(PythonPackage):

license("LGPL-3.0-only")

version("2.3.10", sha256="aadc83510ce82751a0bb3575231f778bc37cbb373f5f05a52b888e26cbb92f79")
version("2.3.4", sha256="15b4b18346259392b0d27598f240e9390fafbff882137a9c48a1e0104fb17f78")
version("1.2", sha256="774179f22db2ef8a106e9c38d4d1f8503864603db08de2e33be5b778230f6e45")

depends_on("python@3.6:", type=("build", "run"))
depends_on("py-setuptools", type="build")

def setup_build_environment(self, env):
# C extension is not supported for 3.11+
if self.spec.satisfies("^python@3.11:"):
env.set("FROZENDICT_PURE_PY", "1")

0 comments on commit 1151a4f

Please sign in to comment.