mirror of
https://github.com/openwrt/packages.git
synced 2025-12-24 01:58:35 +04:00
python,python3: add python-pip-conf package to be used by both python-pip & python3-pip
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
This commit is contained in:
@@ -59,6 +59,16 @@ define Package/python/Default/description
|
|||||||
the development of higher quality, more maintainable code.
|
the development of higher quality, more maintainable code.
|
||||||
endef
|
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
|
define Package/python-base
|
||||||
$(call Package/python/Default)
|
$(call Package/python/Default)
|
||||||
TITLE:=Python $(PYTHON_VERSION) interpreter
|
TITLE:=Python $(PYTHON_VERSION) interpreter
|
||||||
@@ -257,6 +267,11 @@ define PyPackage/python/filespec
|
|||||||
-|$(PYTHON_PKG_DIR)
|
-|$(PYTHON_PKG_DIR)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/python-pip-conf/install
|
||||||
|
$(INSTALL_DIR) $(1)/etc
|
||||||
|
$(CP) ./files/pip.conf $(1)/etc
|
||||||
|
endef
|
||||||
|
|
||||||
HOST_LDFLAGS += \
|
HOST_LDFLAGS += \
|
||||||
$$$$(pkg-config --static --libs libcrypto libssl)
|
$$$$(pkg-config --static --libs libcrypto libssl)
|
||||||
|
|
||||||
@@ -288,6 +303,8 @@ $(eval $(call PyPackage,python-base))
|
|||||||
$(eval $(call PyPackage,python-light))
|
$(eval $(call PyPackage,python-light))
|
||||||
$(eval $(call PyPackage,python))
|
$(eval $(call PyPackage,python))
|
||||||
|
|
||||||
|
$(eval $(call BuildPackage,python-pip-conf))
|
||||||
|
|
||||||
$(eval $(call BuildPackage,python-base))
|
$(eval $(call BuildPackage,python-base))
|
||||||
$(eval $(call BuildPackage,python-light))
|
$(eval $(call BuildPackage,python-light))
|
||||||
$(eval $(call BuildPackage,python))
|
$(eval $(call BuildPackage,python))
|
||||||
|
|||||||
3
lang/python/files/pip.conf
Normal file
3
lang/python/files/pip.conf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[global]
|
||||||
|
cache-dir=/tmp/.cache
|
||||||
|
log-file=/tmp/pip-log.txt
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
define Package/python-pip
|
define Package/python-pip
|
||||||
$(call Package/python/Default)
|
$(call Package/python/Default)
|
||||||
TITLE:=Python $(PYTHON_VERSION) pip module
|
TITLE:=Python $(PYTHON_VERSION) pip module
|
||||||
DEPENDS:=+python +python-setuptools
|
DEPENDS:=+python +python-setuptools +python-pip-conf
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define PyPackage/python-pip/install
|
define PyPackage/python-pip/install
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
define Package/python3-pip
|
define Package/python3-pip
|
||||||
$(call Package/python3/Default)
|
$(call Package/python3/Default)
|
||||||
TITLE:=Python $(PYTHON3_VERSION) pip module
|
TITLE:=Python $(PYTHON3_VERSION) pip module
|
||||||
DEPENDS:=+python3 +python3-setuptools
|
DEPENDS:=+python3 +python3-setuptools +python-pip-conf
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Py3Package/python3-pip/install
|
define Py3Package/python3-pip/install
|
||||||
|
|||||||
Reference in New Issue
Block a user