diff options
author | Larry Hajali <larryhaja[at]gmail[dot]com> | 2013-06-02 23:42:07 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-06-04 00:11:27 -0500 |
commit | 3e440ec9bc06d9f5fe780f9e7dec1e4d1cc56584 (patch) | |
tree | 9305755765f077357a948f6646e7a1800c91038c /python/virtualenv/virtualenv.SlackBuild | |
parent | ddbd1b525955be986151fcbf10ba342ca4fba12c (diff) | |
download | slackbuilds-3e440ec9bc06d9f5fe780f9e7dec1e4d1cc56584.tar.gz |
python/virtualenv: Updated for version 1.9.1.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'python/virtualenv/virtualenv.SlackBuild')
-rw-r--r-- | python/virtualenv/virtualenv.SlackBuild | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/python/virtualenv/virtualenv.SlackBuild b/python/virtualenv/virtualenv.SlackBuild index d8b1d7afc6..53f7cd6a1a 100644 --- a/python/virtualenv/virtualenv.SlackBuild +++ b/python/virtualenv/virtualenv.SlackBuild @@ -5,7 +5,7 @@ # Written by Larry Hajali <larryhaja[at]gmail[dot]com> PRGNAM=virtualenv -VERSION=1.6.4 +VERSION=${VERSION:-1.9.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -39,11 +39,16 @@ find . \ 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 | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a docs/*.txt *.txt PKG-INFO $PKG/usr/doc/$PRGNAM-$VERSION +cp -a docs/*.txt README.rst *.txt PKG-INFO $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |