From 875cb08f49acbc629d0b1a7ba2ca7e5694f84e6e Mon Sep 17 00:00:00 2001 From: Yingjie Wang Date: Sat, 27 Dec 2025 01:55:07 -0500 Subject: [PATCH] new blfs: dev-python/installer-0.7.0 --- README.md | 5 +++++ dev-python/installer-0.7.0.PKGBUILD | 23 +++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 dev-python/installer-0.7.0.PKGBUILD diff --git a/README.md b/README.md index 74759e6..9602e0c 100644 --- a/README.md +++ b/README.md @@ -35,4 +35,9 @@ dev-libs/libunistring dev-libs/popt dev-libs/libtasn1 app-arch/libarchive dev-li ### python +Those can be installed directly +``` +pyproject-hooks, installer +``` + - `pyproject-hooks` -> `build` diff --git a/dev-python/installer-0.7.0.PKGBUILD b/dev-python/installer-0.7.0.PKGBUILD new file mode 100644 index 0000000..d4972e5 --- /dev/null +++ b/dev-python/installer-0.7.0.PKGBUILD @@ -0,0 +1,23 @@ +pkgname=installer +pkgver=0.7.0 +pkgdesc='Low-level library for installing a Python package from a wheel distribution' +arch=(any) +homepage='https://github.com/pypa/build' +license=(MIT) +sources=("${pkgname}-${pkgver}.tar.gz") +urls=("https://files.pythonhosted.org/packages/source/${pkgname:0:1}/${pkgname}/${sources[0]}") +md5sums=("d961d1105c9270049528b1167ed021bc") + +export PYTHONDONTWRITEBYTECODE=1 + +src_prepare() { + tar -xf ${distdir}/${sources[0]} --strip-components=1 +} + +src_build() { + pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD +} + +src_install() { + pip3 install --no-deps --no-warn-script-location --no-index --no-cache-dir --no-user --root ${pkgdir} --root-user-action=ignore --find-links dist ${pkgname} +}