summaryrefslogtreecommitdiff
path: root/python/python3/python3.SlackBuild
diff options
context:
space:
mode:
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: