1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 10:45:15 +03:00
aports/community/py3-gevent/APKBUILD
psykose b71032c356 */*: invoke -m venv with --without-pip
we never use pip in the venv manually made for tests-
this might break 1-2 things unexpectedly, but

- those should be looked at anyway
- this has a severe speedup- even on a desktop machine with nvme, this
  makes an arbitrary venv go from 2.6s to <100ms(!) to make. a nice small
  optimisation.
2023-02-09 22:55:20 +01:00

65 lines
1.4 KiB
Text

# Maintainer: Michael Zhou <zhoumichaely@gmail.com>
# Contributor: Michael Zhou <zhoumichaely@gmail.com>
pkgname=py3-gevent
pkgver=22.10.2
pkgrel=3
pkgdesc="Python3 library for seamless coroutine-based concurrency"
url="http://gevent.org/"
arch="all"
license="MIT"
depends="
py3-cffi
py3-greenlet
py3-setuptools
py3-zope-event
py3-zope-interface
"
makedepends="
c-ares-dev
cython
file
libev-dev
libevent-dev
libuv-dev
py3-gpep517
py3-setuptools
py3-wheel
python3-dev
"
checkdepends="python3-tests py3-objgraph"
source="https://github.com/gevent/gevent/archive/$pkgver/gevent-$pkgver.tar.gz"
builddir="$srcdir/gevent-$pkgver"
options="!check" # tests fail
replaces="py-gevent" # Backwards compatibility
provides="py-gevent=$pkgver-r$pkgrel" # Backwards compatibility
build() {
export GEVENTSETUP_EMBED=0
export GEVENTSETUP_EMBED_LIBEV=0
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages testenv
testenv/bin/python3 -m installer \
dist/gevent*.whl
testenv/bin/python3 -m gevent.tests
}
package() {
export GEVENTSETUP_EMBED=0
export GEVENTSETUP_EMBED_LIBEV=0
python3 -m installer -d "$pkgdir" \
dist/gevent*.whl
rm -rf "$pkgdir"/usr/lib/python3*/site-packages/*/tests
}
sha512sums="
9ceb8e03016cd2fe8fa58f9fb65daa1b52b80a25067bb0fa8fc4b744695b85b0ba003e933783dd4546f4600f2859c08d5627e322ccfbc5a6fa3a8e4d67f59a5f gevent-22.10.2.tar.gz
"