Brett Cornwall pushed to branch main at Arch Linux / Packaging / Packages / 
python-pyaudio


Commits:
825e4c7c by Brett Cornwall at 2023-12-16T15:24:06-08:00
upgpkg: 0.2.14-2

Start the move over to using pyproject to build. It's still currently using 
the
compat layer for setuptools but it's a start.

https://archlinux.org/todo/use-pyprojecttoml-for-building-if-supported/

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,11 +1,14 @@
 pkgbase = python-pyaudio
        pkgdesc = Python bindings for PortAudio
        pkgver = 0.2.14
-       pkgrel = 1
+       pkgrel = 2
        url = https://people.csail.mit.edu/hubert/pyaudio/
        arch = x86_64
        license = MIT
+       makedepends = python-build
+       makedepends = python-installer
        makedepends = python-setuptools
+       makedepends = python-wheel
        depends = portaudio
        depends = python
        source = 
PyAudio-0.2.14.tar.gz::https://files.pythonhosted.org/packages/source/P/PyAudio/PyAudio-0.2.14.tar.gz


=====================================
PKGBUILD
=====================================
@@ -3,23 +3,25 @@
 _pkgbase=PyAudio
 pkgname=python-pyaudio
 pkgver=0.2.14
-pkgrel=1
+pkgrel=2
 pkgdesc="Python bindings for PortAudio"
 arch=('x86_64')
 url="https://people.csail.mit.edu/hubert/pyaudio/";
 license=('MIT')
-makedepends=('python-setuptools')
+# python-setuptools compat layer still used. Upstream needs to finish pyproject
+# build-system implementation.
+makedepends=('python-build' 'python-installer' 'python-setuptools' 
'python-wheel')
 depends=('portaudio' 'python')
 
source=("$_pkgbase-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/P/$_pkgbase/$_pkgbase-$pkgver.tar.gz";)
 sha256sums=('78dfff3879b4994d1f4fc6485646a57755c6ee3c19647a491f790a0895bd2f87')
 
 build() {
   cd $_pkgbase-$pkgver
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 package() {
   cd $_pkgbase-$pkgver
-  python3 setup.py install --root "$pkgdir" --optimize=1
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -Dm644 README.md "$pkgdir/usr/share/licenses/$pkgname/README"
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pyaudio/-/commit/825e4c7c6d4280c2368c05320cc754c277b0ffba

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pyaudio/-/commit/825e4c7c6d4280c2368c05320cc754c277b0ffba
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to