Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages / 
nyx


Commits:
3bdbc332 by loqs at 2024-05-03T09:33:09+02:00
Change to a PEP 517 based workflow

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -9,7 +9,7 @@ url='https://nyx.torproject.org/'
 arch=('any')
 license=('GPL-3.0-or-later')
 depends=('python' 'python-stem' 'net-tools' 'procps-ng' 'lsof')
-makedepends=('python-setuptools')
+makedepends=('python-setuptools' 'python-build' 'python-installer' 
'python-wheel')
 optdepends=('tor: tor-server to talk to')
 
source=(https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz
         
"python3.11.patch::https://gitweb.torproject.org/nyx.git/patch/?id=dcaddf2ab7f9d2ef8649f98bb6870995ebe0b893";)
@@ -32,7 +32,7 @@ prepare() {
 
 build() {
   cd ${pkgname}-${pkgver}
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
@@ -42,7 +42,7 @@ check() {
 
 package() {
   cd ${pkgname}-${pkgver}
-  python setup.py install --optimize=1 --root="${pkgdir}" --skip-build
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -Dm 644 nyx.1 -t "${pkgdir}/usr/share/man/man1"
 }
 



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/nyx/-/commit/3bdbc332db090877f1307d5cc1ad79882cfbb300

-- 
This project does not include diff previews in email notifications.
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/nyx/-/commit/3bdbc332db090877f1307d5cc1ad79882cfbb300
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to