Cap cython<3 (#4001)

I added tools/constraints.txt and set it into the PIP_CONSTRAINT environment variable.
This commit is contained in:
Hood Chatham 2023-07-19 08:47:05 +02:00 committed by GitHub
parent 7814fd6788
commit ec05ccd762
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 0 deletions

View File

@ -53,6 +53,8 @@ export PYODIDE_BASE_URL?=./
# Brotli compression.
export PYODIDE_ZIP_COMPRESSION_LEVEL?=6
export PIP_CONSTRAINT=$(PYODIDE_ROOT)/tools/constraints.txt
# For packages that depend on numpy.
# TODO: maybe move this somewhere else?
export NUMPY_LIB=$(HOSTSITEPACKAGES)/numpy/

View File

@ -37,6 +37,7 @@ BUILD_VARS: set[str] = {
"PATH",
"PKG_CONFIG_PATH",
"PLATFORM_TRIPLET",
"PIP_CONSTRAINT",
"PYMAJOR",
"PYMICRO",
"PYMINOR",

View File

@ -57,6 +57,7 @@ def _copy_wasm_libs(
Path("dist/pyodide-lock.json"),
Path("dist/python"),
Path("dist/python_stdlib.zip"),
Path("tools/constraints.txt"),
]
to_copy.extend(
x.relative_to(pyodide_root) for x in (pyodide_root / "dist").glob("pyodide.*")

4
tools/constraints.txt Normal file
View File

@ -0,0 +1,4 @@
cython<3
# Remove the following when mypy releases a new version
# https://github.com/python/mypy/pull/14788
types-setuptools<67.4.0.2