Marcel Telka
2022-11-10 ce623672bd9c6cabf9075f74402dee96390f47e4
pyproject.mk: keep entry_points.txt for Python 3.7 fake bootstrap

1 files modified
5 ■■■■■ changed files
make-rules/pyproject.mk 5 ●●●●● patch | view | raw | blame | history
make-rules/pyproject.mk
@@ -95,12 +95,13 @@
USERLAND_REQUIRED_PACKAGES += library/python/build-37
USERLAND_REQUIRED_PACKAGES += library/python/installer-37
# Remove all files from dist-info directory except METADATA to get similar
# layout as with pyproject_installer
# Remove all files from dist-info directory except METADATA and
# entry_points.txt to get similar layout as with pyproject_installer
$(BUILD_DIR)/%-3.7/.installed:    COMPONENT_POST_INSTALL_ACTION += \
    ( cd $(PROTO_DIR)/$(PYTHON_LIB)/$(COMPONENT_NAME)-$(COMPONENT_VERSION).dist-info ; \
    for f in * ; do \
        [[ "$$f" == "METADATA" ]] && continue ; \
        [[ "$$f" == "entry_points.txt" ]] && continue ; \
        [[ -f "$$f" ]] || continue ; \
        $(RM) $$f ; \
    done ) ;