mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
libraries/PrettyTable: Added support python3.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
8d3747dc7b
commit
ea50cd0168
3 changed files with 9 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Slackware build script for PrettyTable
|
||||
|
||||
# Copyright 2014-2016 Dimitris Zlatanidis Orestiada, Greece
|
||||
# Copyright 2014-2020 Dimitris Zlatanidis Orestiada, Greece
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -25,7 +25,7 @@
|
|||
PRGNAM=PrettyTable
|
||||
SRCNAM=prettytable
|
||||
VERSION=${VERSION:-0.7.2}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -72,6 +72,11 @@ find -L . \
|
|||
|
||||
python setup.py install --root=$PKG
|
||||
|
||||
# Python 3 support.
|
||||
if $(python3 -c 'import sys' 2>/dev/null); then
|
||||
python3 setup.py install --root=$PKG
|
||||
fi
|
||||
|
||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
PRGNAM="PrettyTable"
|
||||
VERSION="0.7.2"
|
||||
HOMEPAGE="https://github.com/dprince/python-prettytable"
|
||||
HOMEPAGE="https://pypi.org/project/PrettyTable/"
|
||||
DOWNLOAD="https://pypi.python.org/packages/e0/a1/36203205f77ccf98f3c6cf17cf068c972e6458d7e58509ca66da949ca347/prettytable-0.7.2.tar.gz"
|
||||
MD5SUM="a6b80afeef286ce66733d54a0296b13b"
|
||||
DOWNLOAD_x86_64=""
|
||||
|
|
|
@ -12,7 +12,7 @@ PrettyTable: PrettyTable is a simple Python library designed to make it quick
|
|||
PrettyTable: and easy to represent tabular data in visually appealing ASCII
|
||||
PrettyTable: tables.
|
||||
PrettyTable:
|
||||
PrettyTable: Homepage: https://github.com/dprince/python-prettytable
|
||||
PrettyTable: Homepage: https://pypi.org/project/PrettyTable/
|
||||
PrettyTable:
|
||||
PrettyTable:
|
||||
PrettyTable:
|
||||
|
|
Loading…
Reference in a new issue