summaryrefslogtreecommitdiff
path: root/python/python3/python3.SlackBuild
diff options
context:
space:
mode:
authorAudrius Kažukauskas <audrius@neutrino.lt>2014-03-30 02:52:42 -0500
committerErik Hanson <erik@slackbuilds.org>2014-04-12 13:59:48 -0500
commitd9a8bbf2e1c9302db876e15b3459b59c5f903db4 (patch)
treee65d52307fc6c52a4e0850a99b0f60f7d1320f43 /python/python3/python3.SlackBuild
parent10b1a40f6a8b0b59855dc5a8692bd926c5b83e7f (diff)
downloadslackbuilds-d9a8bbf2e1c9302db876e15b3459b59c5f903db4.tar.gz
python/python3: Updated for version 3.4.0.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'python/python3/python3.SlackBuild')
-rw-r--r--python/python3/python3.SlackBuild21
1 files changed, 11 insertions, 10 deletions
diff --git a/python/python3/python3.SlackBuild b/python/python3/python3.SlackBuild
index c05273cd71..09de0ae176 100644
--- a/python/python3/python3.SlackBuild
+++ b/python/python3/python3.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=python3
-VERSION=${VERSION:-3.3.5}
+VERSION=${VERSION:-3.4.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -52,12 +52,14 @@ else
LIBDIRSUFFIX=""
fi
+PYVER=${VERSION::3}
+
set -eu
# Location for Python site-packages:
-SITEPK=$PKG/usr/lib${LIBDIRSUFFIX}/python3.3/site-packages
+SITEPK=$PKG/usr/lib${LIBDIRSUFFIX}/python${PYVER}/site-packages
# same as above without $PKG
-TOOLSDIR=/usr/lib${LIBDIRSUFFIX}/python3.3/site-packages
+TOOLSDIR=/usr/lib${LIBDIRSUFFIX}/python${PYVER}/site-packages
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -102,14 +104,13 @@ make altinstall DESTDIR=$PKG
# Create a few useful symlinks.
( cd $PKG/usr/bin
- ln -sf python3.3 python3
- ln -sf python3.3*-config python3.3-config
- ln -sf python3.3-config python3-config
- ln -sf pydoc3.3 pydoc3
- ln -sf pyvenv-3.3 pyvenv
- ln -sf idle3.3 idle3
+ ln -sf python${PYVER} python3
+ ln -sf python${PYVER}*-config python3-config
+ ln -sf pydoc${PYVER} pydoc3
+ ln -sf pyvenv-${PYVER} pyvenv
+ ln -sf idle${PYVER} idle3
cd $PKG/usr/man/man1
- ln -sf python3.3.1 python3.1
+ ln -sf python${PYVER}.1 python3.1
)
# We'll install the python-tools under site-packages: