[arch-commits] Commit in python-vector/trunk (PKGBUILD)
Konstantin Gizdov
kgizdov at gemini.archlinux.org
Wed Mar 23 21:28:55 UTC 2022
Date: Wednesday, March 23, 2022 @ 21:28:54
Author: kgizdov
Revision: 1172080
update build system
Modified:
python-vector/trunk/PKGBUILD
----------+
PKGBUILD | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-03-23 21:28:34 UTC (rev 1172079)
+++ PKGBUILD 2022-03-23 21:28:54 UTC (rev 1172080)
@@ -3,20 +3,20 @@
_pkgname='vector'
pkgname="python-${_pkgname}"
pkgver='0.8.5'
-pkgrel=1
+pkgrel=2
pkgdesc="A library for 2D, 3D, and Lorentz vectors, especially arrays of vectors, to solve common physics problems in a NumPy-like way."
arch=('any')
url='https://github.com/scikit-hep/vector'
license=('MIT')
depends=('python-numpy' 'python-packaging' 'python-importlib-metadata' 'python-typing-extensions')
-makedepends=('git' 'python-setuptools' 'python-setuptools-scm' 'python-toml')
-checkdepends=('python-pytest' )
+makedepends=('git' 'python-build' 'python-installer' 'python-setuptools-scm' 'python-wheel')
+checkdepends=('python-pytest')
source=("${pkgname}::git+${url}#tag=v${pkgver}")
sha256sums=('SKIP')
build() {
cd "${srcdir}/${pkgname}"
- python setup.py bdist_egg
+ python -m build --wheel --no-isolation
}
check() {
@@ -26,6 +26,6 @@
package() {
cd "${srcdir}/${pkgname}"
- python setup.py install --skip-build --root="${pkgdir}/" --optimize=1
+ python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
More information about the arch-commits
mailing list