mirror of
https://github.com/openwrt/packages.git
synced 2025-12-19 17:11:21 +00:00
python/python3: fix .dist-info missing for setuptools and pip
Without .dist-info (similar to .egg-info), setuptools and pip are not discoverable by pkg_resources. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
define Package/python3-pip
|
||||
$(call Package/python3/Default)
|
||||
TITLE:=Python $(PYTHON3_VERSION) pip module
|
||||
VERSION:=$(PYTHON3_PIP_VERSION)
|
||||
VERSION:=$(PYTHON3_PIP_VERSION)-$(PYTHON3_PIP_PKG_RELEASE)
|
||||
DEPENDS:=+python3 +python3-setuptools +python-pip-conf
|
||||
endef
|
||||
|
||||
@@ -19,6 +19,7 @@ define Package/python3-pip/install
|
||||
$(CP) $(PKG_BUILD_DIR)/install-pip/bin/pip3* $(1)/usr/bin
|
||||
$(CP) \
|
||||
$(PKG_BUILD_DIR)/install-pip/lib/python$(PYTHON3_VERSION)/site-packages/pip \
|
||||
$(PKG_BUILD_DIR)/install-pip/lib/python$(PYTHON3_VERSION)/site-packages/pip-$(PYTHON3_PIP_VERSION).dist-info \
|
||||
$(1)/usr/lib/python$(PYTHON3_VERSION)/site-packages/
|
||||
find $(1)/usr/lib/python$(PYTHON3_VERSION)/site-packages/ -name __pycache__ | xargs rm -rf
|
||||
endef
|
||||
|
||||
Reference in New Issue
Block a user