MAINT Improve dist/python_stdlib.zip rule (#4700)

Before this change it only checked for files in `pyodide` or `_pyodide`
directory, this makes it look at all files inside the `src/py` directory.
This commit is contained in:
Hood Chatham 2024-04-16 21:37:57 +02:00 committed by GitHub
parent e3b679588d
commit 45bad49364
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -219,7 +219,11 @@ pyodide_build:
./tools/check_editable_pyodide_build.py || $(HOSTPYTHON) -m pip install -e ./pyodide-build
@which pyodide >/dev/null
dist/python_stdlib.zip: $(wildcard src/py/**/*) $(CPYTHONLIB)
# Recursive wildcard
rwildcard=$(wildcard $1) $(foreach d,$1,$(call rwildcard,$(addsuffix /$(notdir $d),$(wildcard $(dir $d)*))))
dist/python_stdlib.zip: $(call rwildcard,src/py/*) $(CPYTHONLIB)
make pyodide_build
pyodide create-zipfile $(CPYTHONLIB) src/py --compression-level "$(PYODIDE_ZIP_COMPRESSION_LEVEL)" --output $@