From 1f317dfb75216904c92c3c8a64e088fb6b4c551b Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Wed, 25 Jan 2023 14:03:29 +0200 Subject: 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 --- lang/python/python3/files/python3-package-pip.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'lang/python/python3/files') 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 \ )) -- cgit