summaryrefslogtreecommitdiffstats
path: root/python/python3/python3.SlackBuild
diff options
context:
space:
mode:
author Audrius Kažukauskas2016-12-28 15:46:00 +0100
committer Willy Sudiarto Raharjo2016-12-31 02:22:44 +0100
commite0f817d0c0402871586b88ec6cde58ef0e16e7bb (patch)
treed84e2cdc8f1b73e90c2f7d5db9c706a90ad9d188 /python/python3/python3.SlackBuild
parent51a755c3ac576163f75698baab6c2ee22298578b (diff)
downloadslackbuilds-e0f817d0c0402871586b88ec6cde58ef0e16e7bb.tar.gz
python/python3: Updated for version 3.6.0.
Signed-off-by: Audrius Kažukauskas <audrius@neutrino.lt>
Diffstat (limited to 'python/python3/python3.SlackBuild')
-rw-r--r--python/python3/python3.SlackBuild14
1 files changed, 7 insertions, 7 deletions
diff --git a/python/python3/python3.SlackBuild b/python/python3/python3.SlackBuild
index b92a88f8fa..2394565a7d 100644
--- a/python/python3/python3.SlackBuild
+++ b/python/python3/python3.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for python3
-# Copyright 2012-2015 Audrius Kažukauskas <audrius@neutrino.lt>
+# Copyright 2012-2016 Audrius Kažukauskas <audrius@neutrino.lt>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,13 +23,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=python3
-VERSION=${VERSION:-3.5.2}
+VERSION=${VERSION:-3.6.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -42,7 +42,7 @@ OUTPUT=${OUTPUT:-/tmp}
# Don't set any SLKCFLAGS here, or OPT="$SLKCFLAGS" before the ./configure.
# Python gets the compile options right without any help.
-if [ "$ARCH" = "i486" ]; then
+if [ "$ARCH" = "i586" ]; then
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
LIBDIRSUFFIX=""
@@ -80,8 +80,8 @@ fi
# Fix python3 path in cgi.py.
sed -i '1s|^#.*/usr/local/bin/python|#!/usr/bin/python3|' Lib/cgi.py
-# If this system already has Python3 with pip in site-packages, ignore it and
-# install pip anyway.
+# If system we're building on already has Python3 with pip in site-packages,
+# ignore it and install pip anyway.
sed -i 's|\("install",\)|\1 "--ignore-installed",|' Lib/ensurepip/__init__.py
chown -R root:root .
@@ -107,7 +107,7 @@ make
make install DESTDIR=$PKG
# Restore original ensurepip behaviour.
-sed -i 's|\("install",\) "--ignore-installed",|\1|' \
+sed -i 's| "--ignore-installed",||' \
$PKG/usr/lib${LIBDIRSUFFIX}/python${PYVER}/ensurepip/__init__.py
# Remove to avoid overwriting a copy from Python2.