Files
MSYS2-packages/python-setuptools/PKGBUILD
2024-08-30 21:34:58 +02:00

52 lines
1.4 KiB
Bash

# Maintainer: Alexey Pavlov <alexpux@gmail.com>
_realname=setuptools
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=74.0.0
pkgrel=1
pkgdesc="Easily download, build, install, upgrade, and uninstall Python packages"
arch=('any')
license=('PSF')
url="https://pypi.python.org/pypi/setuptools"
msys2_repository_url="https://github.com/pypa/setuptools"
msys2_references=(
"anitya: 4021"
"pypi:setuptools"
"cpe: cpe:/a:python:setuptools"
)
depends=('python')
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=('ad254ac3b7a7b844620177d271b7ae60760b11d104b82fbd6ca904ec32348813')
build() {
cd "${srcdir}/setuptools-${pkgver}"
python setup.py egg_info
python setup.py build
}
check() { (
# Workaround UTF-8 tests by setting LC_CTYPE
export LC_CTYPE=en_US.UTF-8
# https://github.com/pypa/setuptools/pull/810
export PYTHONDONTWRITEBYTECODE=1
# Check python module
# cd "${srcdir}/setuptools-${pkgver}"
# /usr/bin/python setup.py pytest
)}
package() {
cd "${srcdir}/setuptools-${pkgver}"
python setup.py install --prefix=/usr --root="$pkgdir" --skip-build
# Remove all .exe files
find "$pkgdir" -type f -name '*.exe' -delete
}