Files
MSYS2-packages/python-pip/PKGBUILD
Christoph Reiter 8a4fdaa945 pip: Update to 22.3.1
also it should work without setuptools now, as it will install
build deps where needed.
2022-12-17 10:51:39 +01:00

41 lines
1.0 KiB
Bash

# Maintainer: atom2013 <atom.long@hotmail.com>
_realname=pip
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=22.3.1
pkgrel=1
pkgdesc="The PyPA recommended tool for installing Python packages"
url="https://pip.pypa.io/"
arch=('any')
license=('spdx:MIT')
depends=(
'python'
)
makedepends=(
'python-build'
'python-installer'
'python-wheel'
'python-setuptools'
)
provides=("python3-${_realname}")
replaces=("python3-${_realname}")
conflicts=("python3-${_realname}")
source=(${_realname}-${pkgver}.tar.gz::https://github.com/pypa/${_realname}/archive/${pkgver}.tar.gz)
sha256sums=('8d9f7cd8ad0d6f0c70e71704fd3f0f6538d70930454f1f21bbc2f8e94f6964ee')
build() {
cd "${srcdir}/${_realname}-${pkgver}"
python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd "${srcdir}/${_realname}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
rm "${pkgdir}"/usr/lib/python*/site-packages/pip/_vendor/distlib/*.exe
install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}