update to 12.3: python-setuptools

This commit is contained in:
2025-03-26 10:13:31 -04:00
parent 7ae92940f2
commit 4a8b2dd9d6

View File

@@ -1,19 +1,20 @@
pkgname=python-setuptools
_name=${pkgname#python-}
pkgver=72.2.0
pkgver=75.8.1
pkgdesc="Easily download, build, install, upgrade, and uninstall Python packages"
homepage="https://pypi.org/project/setuptools/"
license=('MIT')
sources=("${_name}-${pkgver}.tar.gz")
urls=("https://pypi.org/packages/source/s/${_name}/${sources[0]}")
md5sums=("2e0ffd0f6fc632a11442b79d9b1c68bd")
md5sums=("7dc3d3f529b76b10e35326e25c676b30")
src_prepare() {
tar -xf ${distdir}/${sources[0]} --strip-components=1
}
src_build() {
python3 setup.py build
#python3 setup.py build
pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD
}
src_check() {
@@ -21,7 +22,8 @@ src_check() {
}
src_install() {
python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build
#python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build
pip3 install --no-deps --no-warn-script-location --no-index --no-cache-dir --no-user --force-reinstall --root ${pkgdir} --find-links dist ${_name}
install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}