From 3fe137423840e0da3f018e4a8158cd0c1ccc2183 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Thu, 3 Dec 2015 21:48:11 +0200 Subject: [PATCH] python-pip: add site-wide pip.conf with defaults Signed-off-by: Alexandru Ardelean --- lang/python-pip/Makefile | 7 ++++--- lang/python-pip/files/pip.conf | 3 +++ 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 lang/python-pip/files/pip.conf diff --git a/lang/python-pip/Makefile b/lang/python-pip/Makefile index f26d6ae02..f260e7ffe 100644 --- a/lang/python-pip/Makefile +++ b/lang/python-pip/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=python-pip PKG_VERSION:=7.1.2 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=pip-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://pypi.python.org/packages/source/p/pip/ @@ -48,8 +48,9 @@ define PyPackage/python-pip/filespec endef define PyPackage/python-pip/install - $(INSTALL_DIR) $(1)/usr/bin - $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin + $(INSTALL_DIR) $(1)/usr/bin $(1)/etc + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin + $(INSTALL_CONF) ./files/pip.conf $(1)/etc/ endef $(eval $(call PyPackage,python-pip)) diff --git a/lang/python-pip/files/pip.conf b/lang/python-pip/files/pip.conf new file mode 100644 index 000000000..89339e98a --- /dev/null +++ b/lang/python-pip/files/pip.conf @@ -0,0 +1,3 @@ +[global] +cache-dir=/tmp/.cache +log-file=/tmp/pip-log.txt