summaryrefslogtreecommitdiffstats
path: root/source/d/python3/python3.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/d/python3/python3.SlackBuild')
-rwxr-xr-xsource/d/python3/python3.SlackBuild11
1 files changed, 6 insertions, 5 deletions
diff --git a/source/d/python3/python3.SlackBuild b/source/d/python3/python3.SlackBuild
index c437325c4..d7a577a3b 100755
--- a/source/d/python3/python3.SlackBuild
+++ b/source/d/python3/python3.SlackBuild
@@ -1,9 +1,7 @@
#!/bin/bash
-# Slackware build script for python3
-
# Copyright 2012-2017 Audrius Kažukauskas <audrius@neutrino.lt>
-# Copyright 2017, 2018, 2019 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2017, 2018, 2019, 2024 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -123,8 +121,11 @@ find -L . \
make $NUMJOBS || make || exit 1
make install DESTDIR=$PKG || exit 1
-# Remove to avoid overwriting a copy from Python2.
-rm -f $PKG/usr/bin/2to3
+# PEP says we can claim this link:
+( cd $PKG/usr/bin
+ rm -f python
+ ln -sf python${BRANCH_VERSION} python
+)
## NOPE, let's try using -I instead.
## Add a symlink to cpython include directory to fix various builds that