From 80349f9e73f7c11785fa5e5d9ebd0185066c644b Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Thu, 19 Jan 2017 18:20:15 +0200 Subject: [PATCH] python,python3: install built-in pip and setuptools Easier than using external package. Signed-off-by: Alexandru Ardelean --- lang/python-pip/Makefile | 18 ------------------ lang/python-setuptools/Makefile | 19 ------------------- lang/python/Makefile | 1 + lang/python3/Makefile | 2 +- 4 files changed, 2 insertions(+), 38 deletions(-) diff --git a/lang/python-pip/Makefile b/lang/python-pip/Makefile index 2099e63a9..b20177887 100644 --- a/lang/python-pip/Makefile +++ b/lang/python-pip/Makefile @@ -17,16 +17,10 @@ PKG_MD5SUM:=87083c0b9867963b29f7aba3613e8f4a PKG_BUILD_DIR:=$(BUILD_DIR)/python-pip-$(PKG_VERSION) PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE) -HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/python-pip-$(PKG_VERSION) -HOST_UNPACK=$(HOST_TAR) -C $(HOST_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE) PKG_USE_MIPS16:=0 -HOST_BUILD_DEPENDS:=python python/host python-setuptools/host - -include $(INCLUDE_DIR)/host-build.mk include $(INCLUDE_DIR)/package.mk $(call include_mk, python-package.mk) -$(call include_mk, python-host.mk) define Package/python-pip SUBMENU:=Python @@ -60,17 +54,5 @@ define PyPackage/python-pip/install $(INSTALL_CONF) ./files/pip.conf $(1)/etc/ endef -define Host/Compile - $(call Build/Compile/HostPyMod,,\ - install --root="$(STAGING_DIR_HOSTPKG)" --prefix="" \ - --single-version-externally-managed \ - ) -endef - -define Host/Install -endef - -$(eval $(call HostBuild)) - $(eval $(call PyPackage,python-pip)) $(eval $(call BuildPackage,python-pip)) diff --git a/lang/python-setuptools/Makefile b/lang/python-setuptools/Makefile index 1f312229f..8a714514d 100644 --- a/lang/python-setuptools/Makefile +++ b/lang/python-setuptools/Makefile @@ -15,18 +15,11 @@ PKG_SOURCE:=setuptools-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://pypi.python.org/packages/87/ba/54197971d107bc06f5f3fbdc0d728a7ae0b10cafca46acfddba65a0899d8/ PKG_MD5SUM:=b39715612fdc0372dbfd7b3fcf5d4fe5 -HOST_BUILD_DEPENDS:=python python/host - PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE) -HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)-$(PKG_VERSION) -HOST_UNPACK=$(HOST_TAR) -C $(HOST_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE) - -include $(INCLUDE_DIR)/host-build.mk include $(INCLUDE_DIR)/package.mk $(call include_mk, python-package.mk) -$(call include_mk, python-host.mk) define Package/python-setuptools SUBMENU:=Python @@ -61,18 +54,6 @@ define PyPackage/python-setuptools/install $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ endef -define Host/Compile - $(call Build/Compile/HostPyMod,,\ - install --root="$(STAGING_DIR_HOSTPKG)" --prefix="" \ - --single-version-externally-managed \ - ) -endef - -define Host/Install -endef - -$(eval $(call HostBuild)) - $(eval $(call PyPackage,python-setuptools)) $(eval $(call BuildPackage,python-setuptools)) diff --git a/lang/python/Makefile b/lang/python/Makefile index 6307dc3a5..c3f26800a 100644 --- a/lang/python/Makefile +++ b/lang/python/Makefile @@ -240,6 +240,7 @@ HOST_CONFIGURE_ARGS+= \ --exec-prefix=$(HOST_PYTHON_DIR) \ --with-system-expat=$(STAGING_DIR_HOSTPKG) \ --with-system-ffi=no \ + --with-ensurepip=install \ CONFIG_SITE= define Host/Install diff --git a/lang/python3/Makefile b/lang/python3/Makefile index 81e6679f8..2899b86c1 100644 --- a/lang/python3/Makefile +++ b/lang/python3/Makefile @@ -238,7 +238,7 @@ HOST_CONFIGURE_ARGS+= \ --exec-prefix=$(HOST_PYTHON3_DIR) \ --with-system-expat=$(STAGING_DIR_HOSTPKG) \ --with-system-ffi=no \ - --with-ensurepip=no \ + --with-ensurepip=install \ CONFIG_SITE= define Host/Compile