python,python3: add python-pip-conf package to be used by both python-pip & python3-pip
authorAlexandru Ardelean <redacted>
Fri, 20 Jan 2017 16:11:18 +0000 (18:11 +0200)
committerAlexandru Ardelean <redacted>
Mon, 23 Jan 2017 09:59:50 +0000 (11:59 +0200)
Signed-off-by: Alexandru Ardelean <redacted>
lang/python/Makefile
lang/python/files/pip.conf [new file with mode: 0644]
lang/python/files/python-package-pip.mk
lang/python3/files/python3-package-pip.mk

index f12e0361b4d6cfc7bc97a15570cc3ea54f0db8f1..42b10d55e5a1c632e7a9d44617d8e20d239891c6 100644 (file)
@@ -59,6 +59,16 @@ 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
@@ -257,6 +267,11 @@ 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 += \
        $$$$(pkg-config --static --libs libcrypto libssl)
 
@@ -288,6 +303,8 @@ $(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))
diff --git a/lang/python/files/pip.conf b/lang/python/files/pip.conf
new file mode 100644 (file)
index 0000000..89339e9
--- /dev/null
@@ -0,0 +1,3 @@
+[global]
+cache-dir=/tmp/.cache
+log-file=/tmp/pip-log.txt
index 66bd6553fda3e7c0573e0c1fb86b4d4ecf13b976..dbbffbcc09baece931905e02939b5d3f20691d97 100644 (file)
@@ -8,7 +8,7 @@
 define Package/python-pip
 $(call Package/python/Default)
   TITLE:=Python $(PYTHON_VERSION) pip module
-  DEPENDS:=+python +python-setuptools
+  DEPENDS:=+python +python-setuptools +python-pip-conf
 endef
 
 define PyPackage/python-pip/install
index e346e22c501dab671f45eb187cda81ee37312307..a42c27c9d66e6bf298cf35960ed9bb3a8580d324 100644 (file)
@@ -8,7 +8,7 @@
 define Package/python3-pip
 $(call Package/python3/Default)
   TITLE:=Python $(PYTHON3_VERSION) pip module
-  DEPENDS:=+python3 +python3-setuptools
+  DEPENDS:=+python3 +python3-setuptools +python-pip-conf
 endef
 
 define Py3Package/python3-pip/install
git clone https://git.99rst.org/PROJECT