summaryrefslogtreecommitdiff
path: root/lang/python/python3/files
diff options
context:
space:
mode:
authorAlexandru Ardelean <alex@shruggie.ro>2023-01-25 14:03:29 +0200
committerAlexandru Ardelean <alex@shruggie.ro>2023-01-25 14:03:33 +0200
commit1f317dfb75216904c92c3c8a64e088fb6b4c551b (patch)
tree49d7b55af01020915e9cb7f56b165acbaf9091c0 /lang/python/python3/files
parentadce04d840ea0dee718455a51a576122c7a460a7 (diff)
python3: add 'ensurepip' to python3-pip sub-package
Fixes: https://github.com/openwrt/packages/issues/12707 Seems to work. Looking into the 'venv' lib, it seems it's installing pip & setuptools inside a virtual environment. `python3-pip` is already ~6 MB. This adds another ~3 MB. But, this gives users the ability to run Python virtual environments, which is a pretty common feature of Python in production cases (usually web stuff). Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
Diffstat (limited to 'lang/python/python3/files')
-rw-r--r--lang/python/python3/files/python3-package-pip.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/lang/python/python3/files/python3-package-pip.mk b/lang/python/python3/files/python3-package-pip.mk
index 8b547cee8..61ea48022 100644
--- a/lang/python/python3/files/python3-package-pip.mk
+++ b/lang/python/python3/files/python3-package-pip.mk
@@ -29,6 +29,7 @@ define Py3Package/python3-pip/install
endef
$(eval $(call Py3BasePackage,python3-pip, \
+ /usr/lib/python$(PYTHON3_VERSION)/ensurepip \
, \
DO_NOT_ADD_TO_PACKAGE_DEPENDS \
))