python/asttokens: Build python3 only now.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
4e6761af2a
commit
5d3b7371d2
|
@ -6,7 +6,7 @@ the particular text that resulted in those nodes, for example for
|
||||||
automated refactoring or highlighting.
|
automated refactoring or highlighting.
|
||||||
|
|
||||||
It works with Python2 and Python3 and can annotate both trees built by
|
It works with Python2 and Python3 and can annotate both trees built by
|
||||||
ast, and those built by astroid.
|
ast, and those built by astroid, but the script build only python3.
|
||||||
|
|
||||||
This (source) is downloaded from pypi.org/projects/asttokens as the
|
This (source) is downloaded from pypi.org/projects/asttokens as the
|
||||||
github site may not have a complete sourcecode zip.
|
github site may not have a complete sourcecode zip.
|
||||||
|
|
|
@ -42,9 +42,6 @@ if [ -z "$ARCH" ]; then
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
|
|
||||||
# the name of the created package would be, and then exit. This information
|
|
||||||
# could be useful to other scripts.
|
|
||||||
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
||||||
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
|
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -84,7 +81,7 @@ find -L . \
|
||||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||||
|
|
||||||
#lets do both python2 and python3
|
#lets do both python2 and python3
|
||||||
python setup.py install --root=$PKG
|
#python setup.py install --root=$PKG
|
||||||
python3 setup.py install --root=$PKG
|
python3 setup.py install --root=$PKG
|
||||||
|
|
||||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||||
|
|
|
@ -5,6 +5,6 @@ DOWNLOAD="https://files.pythonhosted.org/packages/ed/e0/7e5af07a090b9ef4f88e29b6
|
||||||
MD5SUM="af0ff280c88a37516e38a7b3086ad487"
|
MD5SUM="af0ff280c88a37516e38a7b3086ad487"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES="python2-setuptools-scm python3-wheel python-toml"
|
REQUIRES="python3-setuptools-scm-opt python3-wheel python3-toml"
|
||||||
MAINTAINER="Tim Dickson"
|
MAINTAINER="Tim Dickson"
|
||||||
EMAIL="dickson.tim@googlemail.com"
|
EMAIL="dickson.tim@googlemail.com"
|
||||||
|
|
Loading…
Reference in New Issue