[arch-commits] Commit in python-aioitertools/trunk (PKGBUILD)
Chih-Hsuan Yen
yan12125 at archlinux.org
Thu Jun 4 01:28:35 UTC 2020
Date: Thursday, June 4, 2020 @ 01:28:34
Author: yan12125
Revision: 638654
upgpkg: python-aioitertools 0.7.0-3; revert to building with setuptools hacks
python-{build,install} are not generally accepted for PEP517 packaging in Arch Linux yet
Modified:
python-aioitertools/trunk/PKGBUILD
----------+
PKGBUILD | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-06-03 22:54:44 UTC (rev 638653)
+++ PKGBUILD 2020-06-04 01:28:34 UTC (rev 638654)
@@ -3,20 +3,27 @@
pkgname=python-aioitertools
_pkgname=aioitertools
pkgver=0.7.0
-pkgrel=2
+pkgrel=3
pkgdesc='Implementation of itertools, builtins, and more for AsyncIO and mixed-type iterables'
arch=(any)
-url='https://github.com/omnilib/aioitertools'
+url='https://github.com/jreese/aioitertools'
license=(MIT)
depends=(python python-typing_extensions)
-makedepends=(python-build python-install python-flit)
+makedepends=(python-setuptools)
source=("https://files.pythonhosted.org/packages/source/a/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha256sums=('341cb05a0903177ef1b73d4cc12c92aee18e81c364e0138f4efc7ec3c47b8177')
+prepare() {
+ cd $_pkgname-$pkgver
+ # setup.py generated by flit uses setuptools-specific install_requires but
+ # imports setup() from distutils.core
+ # https://github.com/takluyver/flit/blob/2.3.0/flit/sdist.py#L16
+ sed -i 's#distutils.core#setuptools#' setup.py
+}
+
build() {
cd $_pkgname-$pkgver
- python -m build
- python -m install --cache dist/*.whl
+ python setup.py build
}
check() {
@@ -26,6 +33,6 @@
package() {
cd $_pkgname-$pkgver
- python -m install --skip-build -d "$pkgdir"
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}
More information about the arch-commits
mailing list