diff options
| author | Alexandru Ardelean <ardeleanalex@gmail.com> | 2017-12-01 15:32:37 +0200 |
|---|---|---|
| committer | Alexandru Ardelean <ardeleanalex@gmail.com> | 2017-12-10 19:49:23 +0200 |
| commit | 00bb46866ba946fcb6d1dcd3d3cc83833f234c39 (patch) | |
| tree | 8bad9aa40a72bfe734a403ef7b6d47e3a8c174ad /lang/python/python-pip-conf | |
| parent | 650704c4258c0e02fc3519cb8a45728ea14eac9a (diff) | |
python-pip-conf: split package away from python package
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 <ardeleanalex@gmail.com>
Diffstat (limited to 'lang/python/python-pip-conf')
| -rw-r--r-- | lang/python/python-pip-conf/Makefile | 36 | ||||
| -rw-r--r-- | lang/python/python-pip-conf/files/pip.conf | 3 |
2 files changed, 39 insertions, 0 deletions
diff --git a/lang/python/python-pip-conf/Makefile b/lang/python/python-pip-conf/Makefile new file mode 100644 index 000000000..b8ef7f6c5 --- /dev/null +++ b/lang/python/python-pip-conf/Makefile @@ -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)) diff --git a/lang/python/python-pip-conf/files/pip.conf b/lang/python/python-pip-conf/files/pip.conf new file mode 100644 index 000000000..89339e98a --- /dev/null +++ b/lang/python/python-pip-conf/files/pip.conf @@ -0,0 +1,3 @@ +[global] +cache-dir=/tmp/.cache +log-file=/tmp/pip-log.txt |
