mirror of
https://github.com/openwrt/packages.git
synced 2026-10-12 21:07:04 +04:00
Refresh sha256 from the PyPI sdist and refresh 003 for the shifted line. Retarget 002-pip-runner-pyc-fix.patch instead of dropping it: in 26.2.1 get_runnable_pip() moved from build_env.py (now a package) to _internal/utils/misc.py. The function is otherwise unchanged and still returns __pip-runner__.py, so the .pyc fallback is still required. We ship pip byte-compiled only (the .py sources live in the -src package), so without it build isolation cannot locate the runner and every PEP 517 install fails on target. This is a packaging workaround, not an upstream bug, so upstream has no reason to carry it. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
58 lines
1.3 KiB
Makefile
58 lines
1.3 KiB
Makefile
#
|
|
# Copyright (C) 2023 Jeffery To
|
|
#
|
|
# 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
|
|
PKG_VERSION:=26.2.1
|
|
PKG_RELEASE:=1
|
|
|
|
PYPI_NAME:=pip
|
|
PKG_HASH:=f6ad667e89a1fe78046c8f13232b247200f5258d7828f3f7883d660878e0813f
|
|
|
|
PKG_LICENSE:=MIT
|
|
PKG_LICENSE_FILES:=LICENSE.txt
|
|
PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
|
|
PKG_CPE_ID:=cpe:/a:pypa:pip
|
|
|
|
PKG_BUILD_DEPENDS:=python-setuptools/host
|
|
|
|
include ../pypi.mk
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include ../python3-package.mk
|
|
|
|
define Package/python3-pip
|
|
SECTION:=lang
|
|
CATEGORY:=Languages
|
|
SUBMENU:=Python
|
|
TITLE:=PyPA recommended tool for installing Python packages
|
|
URL:=https://pip.pypa.io/
|
|
DEPENDS:=+python3
|
|
endef
|
|
|
|
define Package/python3-pip/description
|
|
pip is the package installer for Python. You can use pip to install
|
|
packages from the Python Package Index and other indexes.
|
|
endef
|
|
|
|
define Package/python3-pip/conffiles
|
|
/etc/pip.conf
|
|
endef
|
|
|
|
define Py3Package/python3-pip/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pip3 $(1)/usr/bin/
|
|
$(LN) pip3 $(1)/usr/bin/pip
|
|
|
|
$(INSTALL_DIR) $(1)/etc
|
|
$(INSTALL_DATA) ./files/pip.conf $(1)/etc/
|
|
endef
|
|
|
|
$(eval $(call Py3Package,python3-pip))
|
|
$(eval $(call BuildPackage,python3-pip))
|
|
$(eval $(call BuildPackage,python3-pip-src))
|