Skip to content
Snippets Groups Projects

Use PEP-517 for building

Merged Rafael Fontenelle requested to merge rafaelff/python-kivy:rafaelff-main-patch-57195 into main
1 file
+ 6
4
Compare changes
  • Side-by-side
  • Inline
+ 6
4
@@ -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
Loading