Merge pull request #3433 from lazka/setuptools-bootstrap

setuptools: port to build/installer
This commit is contained in:
Christoph Reiter 2022-12-18 18:35:53 +01:00 committed by GitHub
commit c62c2704ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,12 +4,17 @@ _realname=setuptools
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=65.6.3
pkgrel=1
pkgrel=2
pkgdesc="Easily download, build, install, upgrade, and uninstall Python packages"
arch=('any')
license=('PSF')
url="https://pypi.python.org/pypi/setuptools"
depends=('python')
makedepends=(
"python-wheel"
"python-build"
"python-installer"
)
provides=("python3-${_realname}" 'python3-distribute')
replaces=("python3-${_realname}" 'python3-distribute')
conflicts=("python3-${_realname}")
@ -23,8 +28,8 @@ prepare() {
build() {
cd "${srcdir}/setuptools-${pkgver}"
/usr/bin/python setup.py egg_info
/usr/bin/python setup.py build
python setup.py egg_info
python -m build --wheel --skip-dependency-check --no-isolation
}
check() { (
@ -42,5 +47,5 @@ check() { (
package() {
cd "${srcdir}/setuptools-${pkgver}"
/usr/bin/python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
python -m installer --destdir="${pkgdir}" dist/*.whl
}