mirror of
https://github.com/openwrt/packages.git
synced 2026-04-16 03:12:16 +00:00
This looks like it can occasionally fail with: ``` --outdir "/workdir/openwrt/build_dir/target-aarch64_cortex-a53_musl/pypi/pip-23.3.1/"/openwrt-build --wheel "/workdir/openwrt/build_dir/target-aarch64_cortex-a53_musl/pypi/pip-23.3.1/" Getting build dependencies for wheel... ERROR Backend 'setuptools.build_meta' is not available. Traceback (most recent call last): File "/workdir/openwrt/staging_dir/hostpkg/lib/python3.14/site-packages/pyproject_hooks/_impl.py", line 402, in _call_hook raise BackendUnavailable( ...<4 lines>... ) pyproject_hooks._impl.BackendUnavailable: Cannot import 'setuptools.build_meta' ``` Fixes https://github.com/openwrt/packages/issues/29077 Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
59 lines
1.4 KiB
Makefile
59 lines
1.4 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:=23.3.1
|
|
PKG_RELEASE:=2
|
|
|
|
PYPI_NAME:=pip
|
|
PKG_HASH:=1fcaa041308d01f14575f6d0d2ea4b75a3e2871fe4f9c694976f908768e14174
|
|
|
|
PKG_LICENSE:=MIT
|
|
PKG_LICENSE_FILES:=LICENSE.txt
|
|
PKG_MAINTAINER:=Jeffery To <jeffery.to@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/pip$(PYTHON3_VERSION) $(1)/usr/bin/
|
|
$(LN) pip$(PYTHON3_VERSION) $(1)/usr/bin/pip3
|
|
$(LN) pip$(PYTHON3_VERSION) $(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))
|