Filipe LaĆns pushed to branch main at Arch Linux / Packaging / Packages / python-kivy
Commits: 78aee0db by Rafael Fontenelle at 2024-11-29T21:00:56+00:00 Use PEP-517 for building - - - - - 1 changed file: - PKGBUILD Changes: ===================================== PKGBUILD ===================================== @@ -11,7 +11,7 @@ arch=('x86_64') url="https://kivy.org/" license=('MIT') depends=('python-docutils' 'gstreamer' 'sdl2_ttf' 'sdl2_mixer' 'sdl2_image' 'python-requests') -makedepends=('python-setuptools' 'cython') +makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel' 'cython') optdepends=('python-oscpy: for TUIO provider') checkdepends=('python-pytest' 'python-pytest-benchmark' 'python-gobject' 'xorg-server-xvfb' 'opencv' 'python-pyenchant' 'git' 'mtdev' 'xclip' 'xsel' 'gtk3' 'gst-plugins-base' @@ -24,12 +24,14 @@ prepare() { # Do not use certifi sed -e '/import certifi/d;s|certifi.where()|"/etc/ssl/certs/ca-certificates.crt"|' -i kivy/network/urlrequest.py -i kivy/loader.py \ -i kivy/tests/test_urlrequest/test_urlrequest_urllib.py -i kivy/tests/test_urlrequest/test_urlrequest_requests.py + # Drop cython <=3.0.0 limitation + sed -i 's/cython.*/cython",/' pyproject.toml } build() { cd Kivy-$pkgver CFLAGS+=" -Wno-incompatible-pointer-types" \ - python setup.py build + python -m build --wheel --no-isolation } check() { @@ -41,6 +43,6 @@ check() { package() { cd Kivy-$pkgver - python setup.py install --prefix=/usr --root="$pkgdir" + python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -} +} \ No newline at end of file View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-kivy/-/commit/78aee0db3cf55450952ccc22c11241e4a91d7a61 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-kivy/-/commit/78aee0db3cf55450952ccc22c11241e4a91d7a61 You're receiving this email because of your account on gitlab.archlinux.org.