diff options
author | Carlos Aznarán Laos | 2022-10-25 14:32:19 -0500 |
---|---|---|
committer | Carlos Aznarán Laos | 2022-10-25 14:32:19 -0500 |
commit | c1830e8a3d71871984c028fc148992dd44de1315 (patch) | |
tree | 7b973bf5ae8a8ec8e6f37d3fd05754c3d1d04464 | |
parent | 13f1014338660348d0a3d5fb0d1d965cd6e4489e (diff) | |
download | aur-c1830e8a3d71871984c028fc148992dd44de1315.tar.gz |
Change python-install by python-installer
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 6 insertions, 7 deletions
@@ -8,9 +8,9 @@ pkgbase = python-npx checkdepends = python-pytest-codeblocks makedepends = python-build makedepends = python-flit-core - makedepends = python-install + makedepends = python-installer depends = python-numpy - source = https://github.com/nschloe/npx/archive/v0.1.1.tar.gz + source = npx-0.1.1.tar.gz::https://github.com/nschloe/npx/archive/v0.1.1.tar.gz sha512sums = c2168c17134e7415dd6bc9ab86475ca6e9bb3c9797b68d407ff4be6177ae4e696d621188f6410d7d636e15f2ed4a45c74884d7f7b128f6f159555e58a00727a6 pkgname = python-npx @@ -8,27 +8,26 @@ arch=('x86_64') url="https://github.com/nschloe/${_base}" license=('custom:BSD-3-clause') depends=(python-numpy) -makedepends=(python-build python-flit-core python-install) +makedepends=(python-build python-flit-core python-installer) checkdepends=(python-pytest-codeblocks) -source=(${url}/archive/v${pkgver}.tar.gz) +source=(${_base}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz) sha512sums=('c2168c17134e7415dd6bc9ab86475ca6e9bb3c9797b68d407ff4be6177ae4e696d621188f6410d7d636e15f2ed4a45c74884d7f7b128f6f159555e58a00727a6') build() { cd ${_base}-${pkgver} - export PYTHONHASHSEED=0 python -m build --wheel --skip-dependency-check --no-isolation } check() { cd ${_base}-${pkgver} python -m venv --system-site-packages test-env - test-env/bin/python -m install --optimize=1 dist/*.whl + test-env/bin/python -m installer dist/*.whl test-env/bin/python -m pytest --codeblocks } package() { cd ${_base}-${pkgver} - PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m install --optimize=1 --destdir="${pkgdir}" dist/*.whl + PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m installer --destdir="${pkgdir}" dist/*.whl # Symlink license file local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") |