Package Details: python-asttokens 2.0.5-2

Git Clone URL: https://aur.archlinux.org/python-asttokens.git (read-only, click to copy)
Package Base: python-asttokens
Description: Annotate AST trees with source code positions
Upstream URL: https://github.com/gristlabs/asttokens
Licenses: Apache 2.0
Submitter: whynothugo
Maintainer: whynothugo
Last Packager: whynothugo
Votes: 5
Popularity: 0.85
First Submitted: 2017-11-08 19:36
Last Updated: 2021-09-07 11:43

Latest Comments

lmartinez-mirror commented on 2021-09-06 17:15

Now I know why, this package is missing python-setuptools-scm in its makedepends. It'll build without python-wheel and python-pip afterwards. I'll post a patch with a fix, among other things.

diff --git a/PKGBUILD b/PKGBUILD
index 47b6f7a..9a0a526 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,14 +1,15 @@
 # Maintaner: Hugo Osvaldo Barrera <hugo@barrera.io>
+# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
 # Automatically generated by pip2arch on 2017-11-08

 pkgname=python-asttokens
 _pkgname=asttokens
 pkgver=2.0.5
-pkgrel=1
+pkgrel=2
 pkgdesc="Annotate AST trees with source code positions"
 url="https://github.com/gristlabs/asttokens"
-depends=('python' 'python-six')
-makedepends=('python-setuptools')
+depends=('python-six')
+makedepends=('python-setuptools' 'python-setuptools-scm')
 license=('Apache 2.0')
 arch=('any')
 source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
@@ -21,5 +22,5 @@ build() {

 package() {
     cd $srcdir/asttokens-$pkgver
-    python setup.py install --root="$pkgdir" --optimize=1 
+    python setup.py install --root="$pkgdir" --optimize=1 --skip-build
 }

whynothugo commented on 2021-07-19 17:04

It builds for me without python-wheel.

lmartinez-mirror commented on 2021-06-23 01:39

Just a reminder that this package needs python-pip and python-wheel to build successfully.

lmartinez-mirror commented on 2021-04-02 03:13

Package requires python-pip and possibly python-wheel in its makedepends() to build properly.

whynothugo commented on 2020-11-16 09:35

Updated, thanks!