summaryrefslogtreecommitdiff
path: root/python/python3/python3.SlackBuild
diff options
context:
space:
mode:
authorAudrius Kažukauskas <audrius@neutrino.lt>2012-11-20 12:03:52 -0600
committerRobby Workman <rworkman@slackbuilds.org>2012-11-20 12:03:52 -0600
commit6aba66e1724729ec21fe05a55369c7cd313d5a81 (patch)
tree1dd8cdfe56f85380568c853c59e9d5df73206717 /python/python3/python3.SlackBuild
parent60da60a8430c73d7b91f119025be163bca7ea1a9 (diff)
downloadslackbuilds-6aba66e1724729ec21fe05a55369c7cd313d5a81.tar.gz
python/python3: Updated for version 3.3.0.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'python/python3/python3.SlackBuild')
-rw-r--r--python/python3/python3.SlackBuild39
1 files changed, 30 insertions, 9 deletions
diff --git a/python/python3/python3.SlackBuild b/python/python3/python3.SlackBuild
index ad9e4f7f02..05f2520e62 100644
--- a/python/python3/python3.SlackBuild
+++ b/python/python3/python3.SlackBuild
@@ -1,11 +1,29 @@
#!/bin/sh
# Slackware build script for python3
-# Written by Audrius Kažukauskas <audrius@neutrino.lt>
-# Based on Patrick Volkerding's official build script for python
+
+# Copyright 2012 Audrius Kažukauskas <audrius@neutrino.lt>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=python3
-VERSION=${VERSION:-3.2.3}
+VERSION=${VERSION:-3.3.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -37,9 +55,9 @@ fi
set -eu
# Location for Python site-packages:
-SITEPK=$PKG/usr/lib${LIBDIRSUFFIX}/python3.2/site-packages
+SITEPK=$PKG/usr/lib${LIBDIRSUFFIX}/python3.3/site-packages
# same as above without $PKG
-TOOLSDIR=/usr/lib${LIBDIRSUFFIX}/python3.2/site-packages
+TOOLSDIR=/usr/lib${LIBDIRSUFFIX}/python3.3/site-packages
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -49,6 +67,8 @@ tar xvf $CWD/Python-$VERSION.tar.xz
cd Python-$VERSION
patch -p1 < $CWD/patches/python3.readline.set_pre_input_hook.diff
+# We don't want a large libpython*.a:
+patch -p1 < $CWD/patches/python3.no-static-library.diff
if [ "$ARCH" = "x86_64" ]; then
# Install to lib64 instead of lib:
@@ -66,7 +86,6 @@ chmod -R u+w,go+r-w,a-s+X .
--with-threads \
--enable-ipv6 \
--enable-shared \
- --with-computed-gotos \
--build=$ARCH-slackware-linux
make
@@ -74,9 +93,11 @@ make altinstall DESTDIR=$PKG
# Create a few useful symlinks.
( cd $PKG/usr/bin
- ln -sf python3.2 python3
- ln -sf python3.2*-config python3.2-config
- ln -sf pydoc3.2 pydoc3
+ ln -sf python3.3 python3
+ ln -sf python3.3*-config python3.3-config
+ ln -sf pydoc3.3 pydoc3
+ ln -sf pyvenv-3.3 pyvenv
+ ln -sf idle3.3 idle3
)
# We'll install the python-tools under site-packages: