[arch-commits] Commit in python-cytoolz/repos/community-x86_64 (PKGBUILD PKGBUILD)
David Runge
dvzrv at archlinux.org
Sat Apr 4 20:19:51 UTC 2020
Date: Saturday, April 4, 2020 @ 20:19:50
Author: dvzrv
Revision: 611707
archrelease: copy trunk to community-x86_64
Added:
python-cytoolz/repos/community-x86_64/PKGBUILD
(from rev 611706, python-cytoolz/trunk/PKGBUILD)
Deleted:
python-cytoolz/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 87 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 45 insertions(+), 42 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-04-04 20:18:24 UTC (rev 611706)
+++ PKGBUILD 2020-04-04 20:19:50 UTC (rev 611707)
@@ -1,42 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=cytoolz
-pkgname=python-cytoolz
-pkgver=0.10.1
-pkgrel=2
-pkgdesc="Cython implementation of Toolz: High performance functional utilities"
-arch=('x86_64')
-url="https://github.com/pytoolz/cytoolz/"
-license=('BSD')
-depends=('cython' 'python-toolz')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('55c4fca8d4ace766a8241a25a6c4924971b7e7068ee79ad65fa8aac136aa1f88e57337c0ec278ee9e8544c6e96dd31138b39d7cc28cd91ff0e53a71f8dec55d1')
-
-prepare() {
- mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
-}
-
-build() {
- cd "$pkgname-$pkgver"
- python setup.py build_ext --inplace --with-cython
-}
-
-check() {
- cd "$pkgname-$pkgver"
- local _pyver=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
- export PYTHONPATH="build/lib.linux-${CARCH}-${_pyver}/:${PYTHONPATH}"
- echo "$PYTHONPATH"
- pytest -v
-}
-
-package() {
- cd "$pkgname-$pkgver"
- python setup.py install --skip-build \
- --optimize=1 \
- --prefix=/usr \
- --root="${pkgdir}"
- install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
- install -vDm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
-}
Copied: python-cytoolz/repos/community-x86_64/PKGBUILD (from rev 611706, python-cytoolz/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-04-04 20:19:50 UTC (rev 611707)
@@ -0,0 +1,45 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=cytoolz
+pkgname=python-cytoolz
+pkgver=0.10.1
+pkgrel=3
+pkgdesc="Cython implementation of Toolz: High performance functional utilities"
+arch=('x86_64')
+url="https://github.com/pytoolz/cytoolz/"
+license=('BSD')
+depends=('cython' 'python-toolz')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('55c4fca8d4ace766a8241a25a6c4924971b7e7068ee79ad65fa8aac136aa1f88e57337c0ec278ee9e8544c6e96dd31138b39d7cc28cd91ff0e53a71f8dec55d1')
+
+prepare() {
+ mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ # build C extension
+ python setup.py build_ext --inplace --with-cython
+ # build python extension
+ python setup.py build
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ local _pyver=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+ export PYTHONPATH="build/lib.linux-${CARCH}-${_pyver}/:${PYTHONPATH}"
+ echo "$PYTHONPATH"
+ pytest -v
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ python setup.py install --skip-build \
+ --optimize=1 \
+ --prefix=/usr \
+ --root="${pkgdir}"
+ install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -vDm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
More information about the arch-commits
mailing list