setuptools: update and switch back to setup.py

The build/installer based build seems to fail now that distutils is gone,
go back to the old way for now.
This commit is contained in:
Christoph Reiter
2024-07-05 23:45:13 +02:00
parent 9b64bd6498
commit 76581c337b

View File

@@ -3,8 +3,8 @@
_realname=setuptools
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=69.0.3
pkgrel=2
pkgver=70.2.0
pkgrel=1
pkgdesc="Easily download, build, install, upgrade, and uninstall Python packages"
arch=('any')
license=('PSF')
@@ -16,16 +16,11 @@ msys2_references=(
"cpe: cpe:/a:python:setuptools"
)
depends=('python')
makedepends=(
"python-wheel"
"python-build"
"python-installer"
)
provides=("python3-${_realname}" 'python3-distribute')
replaces=("python3-${_realname}" 'python3-distribute')
conflicts=("python3-${_realname}")
source=("${_realname}-${pkgver}.tar.gz::https://github.com/pypa/setuptools/archive/v${pkgver}.tar.gz")
sha256sums=('1b3b43e613f07b94fbea7ce37653616d81247e0e49833521aa309c494354947e')
sha256sums=('2af81b872c912684c11b99148396472d42b2f200ba2c825a3eb125e5384a479b')
prepare() {
export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
@@ -35,7 +30,7 @@ build() {
cd "${srcdir}/setuptools-${pkgver}"
python setup.py egg_info
python -m build --wheel --skip-dependency-check --no-isolation
python setup.py build
}
check() { (
@@ -53,5 +48,5 @@ check() { (
package() {
cd "${srcdir}/setuptools-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
python setup.py install --prefix=/usr --root="$pkgdir" --skip-build
}