python-pip-conf: split package away from python package
authorAlexandru Ardelean <redacted>
Fri, 1 Dec 2017 13:32:37 +0000 (15:32 +0200)
committerAlexandru Ardelean <redacted>
Sun, 10 Dec 2017 17:49:23 +0000 (19:49 +0200)
This should improve build time if you only want to
build Python3 (and not Python).

Because python-pip-conf was part of the python package,
the whole python package (host + target) would get built if Python3
would need to get built.

Signed-off-by: Alexandru Ardelean <redacted>
lang/python/python-pip-conf/Makefile [new file with mode: 0644]
lang/python/python-pip-conf/files/pip.conf [moved from lang/python/python/files/pip.conf with 100% similarity]
lang/python/python/Makefile

diff --git a/lang/python/python-pip-conf/Makefile b/lang/python/python-pip-conf/Makefile
new file mode 100644 (file)
index 0000000..b8ef7f6
--- /dev/null
@@ -0,0 +1,36 @@
+#
+# Copyright (C) 2017 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=python-pip-conf
+PKG_VERSION:=0.1
+PKG_RELEASE:=1
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/python-pip-conf
+  SUBMENU:=Python
+  SECTION:=lang
+  CATEGORY:=Languages
+  TITLE:=Configuration file for pip/pip3
+  URL:=https://pip.pypa.io
+  MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
+endef
+
+define Package/python-pip-conf/description
+ Configuration file for pip/pip3
+endef
+
+Build/Compile:=
+
+define Package/python-pip-conf/install
+       $(INSTALL_DIR) $(1)/etc
+       $(CP) ./files/pip.conf $(1)/etc
+endef
+
+$(eval $(call BuildPackage,python-pip-conf))
index 13a16a37f8363534e12d7eeb3376ef34e9cb9ac9..c5a22419db0cc45746e0d291775c3bcd9a372cf3 100644 (file)
@@ -65,16 +65,6 @@ define Package/python/Default/description
  the development of higher quality, more maintainable code.
 endef
 
-define Package/python-pip-conf
-$(call Package/python/Default)
-  TITLE:=Configuration file for pip/pip3
-  URL:=https://pip.pypa.io
-endef
-
-define Package/python-pip-conf/description
- Configuration file for pip/pip3
-endef
-
 define Package/python-base
 $(call Package/python/Default)
   TITLE:=Python $(PYTHON_VERSION) interpreter
@@ -281,11 +271,6 @@ define PyPackage/python/filespec
 -|$(PYTHON_PKG_DIR)
 endef
 
-define Package/python-pip-conf/install
-       $(INSTALL_DIR) $(1)/etc
-       $(CP) ./files/pip.conf $(1)/etc
-endef
-
 HOST_LDFLAGS += \
        -Wl,--no-as-needed -lrt \
        $$$$(pkg-config --static --libs libcrypto libssl)
@@ -324,8 +309,6 @@ $(eval $(call PyPackage,python-base))
 $(eval $(call PyPackage,python-light))
 $(eval $(call PyPackage,python))
 
-$(eval $(call BuildPackage,python-pip-conf))
-
 $(eval $(call BuildPackage,python-base))
 $(eval $(call BuildPackage,python-light))
 $(eval $(call BuildPackage,python))
git clone https://git.99rst.org/PROJECT