Skip to content

Commit a1d319a

Browse files
committed
py-frozendict: patch up for Python 3.11
See also Marco-Sulla/python-frozendict#68, rely on a pure Python implementation when 3.11+ is used.
1 parent edc8a5f commit a1d319a

File tree

1 file changed

+6
-0
lines changed
  • var/spack/repos/builtin/packages/py-frozendict

1 file changed

+6
-0
lines changed

var/spack/repos/builtin/packages/py-frozendict/package.py

+6
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,14 @@ class PyFrozendict(PythonPackage):
1414

1515
license("LGPL-3.0-only")
1616

17+
version("2.3.10", sha256="aadc83510ce82751a0bb3575231f778bc37cbb373f5f05a52b888e26cbb92f79")
1718
version("2.3.4", sha256="15b4b18346259392b0d27598f240e9390fafbff882137a9c48a1e0104fb17f78")
1819
version("1.2", sha256="774179f22db2ef8a106e9c38d4d1f8503864603db08de2e33be5b778230f6e45")
1920

2021
depends_on("[email protected]:", type=("build", "run"))
2122
depends_on("py-setuptools", type="build")
23+
24+
def setup_build_environment(self, env):
25+
# C extension is not supported for 3.11+
26+
if self.spec.satisfies("^[email protected]:"):
27+
env.set("FROZENDICT_PURE_PY", "1")

0 commit comments

Comments
 (0)