mirror of https://github.com/pyodide/pyodide.git
Cap cython<3 (#4001)
I added tools/constraints.txt and set it into the PIP_CONSTRAINT environment variable.
This commit is contained in:
parent
7814fd6788
commit
ec05ccd762
|
@ -53,6 +53,8 @@ export PYODIDE_BASE_URL?=./
|
||||||
# Brotli compression.
|
# Brotli compression.
|
||||||
export PYODIDE_ZIP_COMPRESSION_LEVEL?=6
|
export PYODIDE_ZIP_COMPRESSION_LEVEL?=6
|
||||||
|
|
||||||
|
export PIP_CONSTRAINT=$(PYODIDE_ROOT)/tools/constraints.txt
|
||||||
|
|
||||||
# For packages that depend on numpy.
|
# For packages that depend on numpy.
|
||||||
# TODO: maybe move this somewhere else?
|
# TODO: maybe move this somewhere else?
|
||||||
export NUMPY_LIB=$(HOSTSITEPACKAGES)/numpy/
|
export NUMPY_LIB=$(HOSTSITEPACKAGES)/numpy/
|
||||||
|
|
|
@ -37,6 +37,7 @@ BUILD_VARS: set[str] = {
|
||||||
"PATH",
|
"PATH",
|
||||||
"PKG_CONFIG_PATH",
|
"PKG_CONFIG_PATH",
|
||||||
"PLATFORM_TRIPLET",
|
"PLATFORM_TRIPLET",
|
||||||
|
"PIP_CONSTRAINT",
|
||||||
"PYMAJOR",
|
"PYMAJOR",
|
||||||
"PYMICRO",
|
"PYMICRO",
|
||||||
"PYMINOR",
|
"PYMINOR",
|
||||||
|
|
|
@ -57,6 +57,7 @@ def _copy_wasm_libs(
|
||||||
Path("dist/pyodide-lock.json"),
|
Path("dist/pyodide-lock.json"),
|
||||||
Path("dist/python"),
|
Path("dist/python"),
|
||||||
Path("dist/python_stdlib.zip"),
|
Path("dist/python_stdlib.zip"),
|
||||||
|
Path("tools/constraints.txt"),
|
||||||
]
|
]
|
||||||
to_copy.extend(
|
to_copy.extend(
|
||||||
x.relative_to(pyodide_root) for x in (pyodide_root / "dist").glob("pyodide.*")
|
x.relative_to(pyodide_root) for x in (pyodide_root / "dist").glob("pyodide.*")
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue