George Hu pushed to branch main at Arch Linux / Packaging / Packages /
python-gbinder
Commits:
1af99e9b by George Hu at 2025-11-19T16:07:28+08:00
Patch setup.py in prepare() function to ensure compatibility with PEP 517
- - - - -
7b28eead by George Hu at 2025-11-19T16:20:43+08:00
Change installation method from manual setup.py invocation to PEP 517
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -5,6 +5,8 @@ pkgbase = python-gbinder
url = https://github.com/erfanoabdi/gbinder-python
arch = x86_64
license = GPL-3.0-only
+ makedepends = python-build
+ makedepends = python-installer
makedepends = python-setuptools
makedepends = cython
depends = libgbinder
=====================================
PKGBUILD
=====================================
@@ -10,17 +10,21 @@ arch=('x86_64')
url="https://github.com/erfanoabdi/${_srcname}"
license=('GPL-3.0-only')
depends=('libgbinder')
-makedepends=('python-setuptools' 'cython')
+makedepends=('python-build' 'python-installer' 'python-setuptools' 'cython')
provides=("${_srcname}")
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz")
sha512sums=('6f076a5cb265eed193d2ac2623921e76ced923230ca2131460efea941182f26b770d657f5155f6a29fa54a314f6dc62a8d5b96d14ee90a359389e60318a38b71')
+prepare() {
+ sed -i 's/USE_CYTHON = False/USE_CYTHON = True/'
"${_srcname}-${pkgver}/setup.py"
+}
+
build() {
cd "${_srcname}-${pkgver}/"
- python3 setup.py build --cython
+ python -m build --wheel --no-isolation
}
package() {
cd "${_srcname}-${pkgver}/"
- python3 setup.py install --root="${pkgdir}"
+ python -m installer --destdir="${pkgdir}" dist/*.whl
}
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-gbinder/-/compare/d56f0582b3bf3ca1e40e19fc4a0ca876b00a63c6...7b28eead96e0e05eaae37119c529f248cf81cd20
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-gbinder/-/compare/d56f0582b3bf3ca1e40e19fc4a0ca876b00a63c6...7b28eead96e0e05eaae37119c529f248cf81cd20
You're receiving this email because of your account on gitlab.archlinux.org.