Last active
September 5, 2017 19:08
-
-
Save Sherlock-Holo/a7af7eb4cdec63c39af068081e975d3b to your computer and use it in GitHub Desktop.
python-uvloop on Arch linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Massimiliano Torromeo <[email protected]> | |
# Contributor: Sherlock Holo <[email protected]> | |
pkgname=python-uvloop | |
pkgver=0.8.0 | |
pkgrel=1 | |
_libname=${pkgname/python-/} | |
pkgdesc="A fast, drop-in replacement of the built-in asyncio event loop." | |
url="https://github.com/MagicStack/uvloop" | |
license=('MIT' 'APACHE') | |
arch=('i686' 'x86_64') | |
depends=('python' 'libuv') | |
makedepends=('cython' 'python-setuptools') | |
source=("$url/archive/v$pkgver/$_libname-$pkgver.tar.gz") | |
sha256sums=('484c8fb6f0133eeb32e763bf7a17ee620c87d0711ed8e6b47803a0f76ed2c996') | |
build() { | |
cd "$srcdir"/$_libname-$pkgver | |
python setup.py build_ext --inplace --use-system-libuv | |
python setup.py build_py | |
} | |
package() { | |
cd "$srcdir"/$_libname-$pkgver | |
python setup.py install --skip-build --root="$pkgdir/" --optimize=1 | |
install -m0644 -D LICENSE-MIT "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-MIT | |
install -m0644 -D LICENSE-APACHE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-APACHE | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Sherlock Holo <[email protected]> | |
pkgname=python-uvloop | |
pkgver=0.8.0 | |
pkgrel=1 | |
pkgdesc="A fast, drop-in replacement of the built-in asyncio event loop." | |
url="https://github.com/MagicStack/uvloop" | |
license=('MIT' 'APACHE') | |
arch=('x86_64') | |
depends=('python' 'libuv') | |
makedepends=('python-pip') | |
source=("https://pypi.python.org/packages/ef/86/ac39a4cf959edc56fee1c97196c1f90c26d6a38d6b1658543e1328598a04/uvloop-0.8.0-cp36-cp36m-manylinux1_x86_64.whl") | |
sha256sums=('b0c941e9667d1e2b8db2a439f8323eea36250977998e6206e7c8a728ad2a6a49') | |
#build() { | |
# cd "$srcdir" | |
# bsdtar -xvf "$_pkgname-$pkgver.tar.gz" | |
# cd "$_pkgname-$pkgver" | |
# #cython -3 uvloop/loop.pyx | |
# python setup.py build | |
#} | |
package() { | |
cd "$srcdir" | |
PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps uvloop-0.8.0-cp36-cp36m-manylinux1_x86_64.whl | |
python -O -m compileall "${pkgdir}/usr/lib/python3.6/site-packages/uvloop" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment