Browse Source

d/python3: Upgraded to python3-3.7.0.

slackware-14.2
Damien Goutte-Gattat 3 years ago
parent
commit
72ec33dbbe
  1. 1
      d/python3/Python-3.5.3.tar.xz.sha256
  2. 133
      d/python3/Python-3.7.0-x86_64.diff
  3. 1
      d/python3/Python-3.7.0.tar.xz.sha256
  4. 1
      d/python3/python-3.5.0a3-docs-html.tar.bz2.sha256
  5. 33
      d/python3/python3.SlackBuild

1
d/python3/Python-3.5.3.tar.xz.sha256

@ -1 +0,0 @@
eefe2ad6575855423ab630f5b51a8ef6e5556f774584c06beab4926f930ddbb0 Python-3.5.3.tar.xz

133
d/python3/python3.x86_64.diff → d/python3/Python-3.7.0-x86_64.diff

@ -1,6 +1,6 @@
diff -uar Python-3.5.1.orig/Lib/distutils/command/install.py Python-3.5.1/Lib/distutils/command/install.py
--- Python-3.5.1.orig/Lib/distutils/command/install.py 2015-12-07 03:39:07.000000000 +0200
+++ Python-3.5.1/Lib/distutils/command/install.py 2015-12-14 21:27:46.083400395 +0200
diff -Naur Python-3.7.0.orig/Lib/distutils/command/install.py Python-3.7.0/Lib/distutils/command/install.py
--- Python-3.7.0.orig/Lib/distutils/command/install.py 2018-06-27 04:07:35.000000000 +0100
+++ Python-3.7.0/Lib/distutils/command/install.py 2018-10-10 23:14:49.177669052 +0100
@@ -29,15 +29,15 @@
INSTALL_SCHEMES = {
@ -21,10 +21,10 @@ diff -uar Python-3.5.1.orig/Lib/distutils/command/install.py Python-3.5.1/Lib/di
'headers': '$base/include/python/$dist_name',
'scripts': '$base/bin',
'data' : '$base',
diff -uar Python-3.5.1.orig/Lib/distutils/sysconfig.py Python-3.5.1/Lib/distutils/sysconfig.py
--- Python-3.5.1.orig/Lib/distutils/sysconfig.py 2015-12-07 03:39:07.000000000 +0200
+++ Python-3.5.1/Lib/distutils/sysconfig.py 2015-12-14 21:27:46.083400395 +0200
@@ -133,7 +133,7 @@
diff -Naur Python-3.7.0.orig/Lib/distutils/sysconfig.py Python-3.7.0/Lib/distutils/sysconfig.py
--- Python-3.7.0.orig/Lib/distutils/sysconfig.py 2018-06-27 04:07:35.000000000 +0100
+++ Python-3.7.0/Lib/distutils/sysconfig.py 2018-10-10 23:15:30.239802995 +0100
@@ -130,7 +130,7 @@
if os.name == "posix":
libpython = os.path.join(prefix,
@ -33,21 +33,21 @@ diff -uar Python-3.5.1.orig/Lib/distutils/sysconfig.py Python-3.5.1/Lib/distutil
if standard_lib:
return libpython
else:
diff -uar Python-3.5.1.orig/Lib/site.py Python-3.5.1/Lib/site.py
--- Python-3.5.1.orig/Lib/site.py 2015-12-07 03:39:08.000000000 +0200
+++ Python-3.5.1/Lib/site.py 2015-12-14 21:27:46.083400395 +0200
@@ -303,7 +303,7 @@
diff -Naur Python-3.7.0.orig/Lib/site.py Python-3.7.0/Lib/site.py
--- Python-3.7.0.orig/Lib/site.py 2018-06-27 04:07:35.000000000 +0100
+++ Python-3.7.0/Lib/site.py 2018-10-10 23:16:33.090006771 +0100
@@ -334,7 +334,7 @@
seen.add(prefix)
if os.sep == '/':
- sitepackages.append(os.path.join(prefix, "lib",
+ sitepackages.append(os.path.join(prefix, "lib64",
"python" + sys.version[:3],
"python%d.%d" % sys.version_info[:2],
"site-packages"))
else:
diff -uar Python-3.5.1.orig/Lib/sysconfig.py Python-3.5.1/Lib/sysconfig.py
--- Python-3.5.1.orig/Lib/sysconfig.py 2015-12-07 03:39:08.000000000 +0200
+++ Python-3.5.1/Lib/sysconfig.py 2015-12-14 21:27:46.084400429 +0200
diff -Naur Python-3.7.0.orig/Lib/sysconfig.py Python-3.7.0/Lib/sysconfig.py
--- Python-3.7.0.orig/Lib/sysconfig.py 2018-06-27 04:07:35.000000000 +0100
+++ Python-3.7.0/Lib/sysconfig.py 2018-10-10 23:17:35.917209021 +0100
@@ -20,10 +20,10 @@
_INSTALL_SCHEMES = {
@ -78,7 +78,7 @@ diff -uar Python-3.5.1.orig/Lib/sysconfig.py Python-3.5.1/Lib/sysconfig.py
'include': '{installed_base}/include/python',
'platinclude': '{installed_base}/include/python',
'scripts': '{base}/bin',
@@ -61,10 +61,10 @@
@@ -62,10 +62,10 @@
'data': '{userbase}',
},
'posix_user': {
@ -93,10 +93,10 @@ diff -uar Python-3.5.1.orig/Lib/sysconfig.py Python-3.5.1/Lib/sysconfig.py
'include': '{userbase}/include/python{py_version_short}',
'scripts': '{userbase}/bin',
'data': '{userbase}',
diff -uar Python-3.5.1.orig/Makefile.pre.in Python-3.5.1/Makefile.pre.in
--- Python-3.5.1.orig/Makefile.pre.in 2015-12-07 03:39:09.000000000 +0200
+++ Python-3.5.1/Makefile.pre.in 2015-12-14 21:27:46.084400429 +0200
@@ -125,7 +125,7 @@
diff -Naur Python-3.7.0.orig/Makefile.pre.in Python-3.7.0/Makefile.pre.in
--- Python-3.7.0.orig/Makefile.pre.in 2018-06-27 04:07:35.000000000 +0100
+++ Python-3.7.0/Makefile.pre.in 2018-10-10 23:17:49.064251165 +0100
@@ -134,7 +134,7 @@
MANDIR= @mandir@
INCLUDEDIR= @includedir@
CONFINCLUDEDIR= $(exec_prefix)/include
@ -105,52 +105,55 @@ diff -uar Python-3.5.1.orig/Makefile.pre.in Python-3.5.1/Makefile.pre.in
ABIFLAGS= @ABIFLAGS@
# Detailed destination directories
diff -uar Python-3.5.1.orig/Modules/getpath.c Python-3.5.1/Modules/getpath.c
--- Python-3.5.1.orig/Modules/getpath.c 2015-12-07 03:39:10.000000000 +0200
+++ Python-3.5.1/Modules/getpath.c 2015-12-14 21:27:46.085400463 +0200
@@ -511,7 +511,7 @@
_pythonpath = Py_DecodeLocale(PYTHONPATH, NULL);
_prefix = Py_DecodeLocale(PREFIX, NULL);
_exec_prefix = Py_DecodeLocale(EXEC_PREFIX, NULL);
- lib_python = Py_DecodeLocale("lib/python" VERSION, NULL);
+ lib_python = Py_DecodeLocale("lib64/python" VERSION, NULL);
if (!_pythonpath || !_prefix || !_exec_prefix || !lib_python) {
Py_FatalError(
@@ -700,7 +700,7 @@
}
else
wcsncpy(zip_path, _prefix, MAXPATHLEN);
- joinpath(zip_path, L"lib/python00.zip");
+ joinpath(zip_path, L"lib64/python00.zip");
bufsz = wcslen(zip_path); /* Replace "00" with version */
zip_path[bufsz - 6] = VERSION[0];
zip_path[bufsz - 5] = VERSION[2];
@@ -712,7 +712,7 @@
fprintf(stderr,
diff -Naur Python-3.7.0.orig/Modules/getpath.c Python-3.7.0/Modules/getpath.c
--- Python-3.7.0.orig/Modules/getpath.c 2018-06-27 04:07:35.000000000 +0100
+++ Python-3.7.0/Modules/getpath.c 2018-10-10 23:19:32.830581666 +0100
@@ -500,7 +500,7 @@
"Could not find platform dependent libraries <exec_prefix>\n");
wcsncpy(exec_prefix, _exec_prefix, MAXPATHLEN);
}
wcsncpy(exec_prefix, calculate->exec_prefix, MAXPATHLEN);
- joinpath(exec_prefix, L"lib/lib-dynload");
+ joinpath(exec_prefix, L"lib64/lib-dynload");
}
/* If we found EXEC_PREFIX do *not* reduce it! (Yet.) */
}
@@ -742,7 +742,7 @@
else {
wcsncpy(calculate->zip_path, calculate->prefix, MAXPATHLEN);
}
- joinpath(calculate->zip_path, L"lib/python00.zip");
+ joinpath(calculate->zip_path, L"lib64/python00.zip");
diff -uar Python-3.5.1.orig/configure Python-3.5.1/configure
--- Python-3.5.1.orig/configure 2015-12-07 03:39:11.000000000 +0200
+++ Python-3.5.1/configure 2015-12-14 21:27:46.089400598 +0200
@@ -14464,7 +14464,7 @@
$as_echo "$LDVERSION" >&6; }
/* Replace "00" with version */
size_t bufsz = wcslen(calculate->zip_path);
@@ -867,7 +867,7 @@
if (!calculate->prefix) {
return DECODE_LOCALE_ERR("EXEC_PREFIX define", len);
}
- calculate->lib_python = Py_DecodeLocale("lib/python" VERSION, &len);
+ calculate->lib_python = Py_DecodeLocale("lib64/python" VERSION, &len);
if (!calculate->lib_python) {
return DECODE_LOCALE_ERR("EXEC_PREFIX define", len);
}
diff -Naur Python-3.7.0.orig/configure Python-3.7.0/configure
--- Python-3.7.0.orig/configure 2018-06-27 04:07:35.000000000 +0100
+++ Python-3.7.0/configure 2018-10-10 23:20:00.093667890 +0100
@@ -14982,9 +14982,9 @@
-LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}"
+LIBPL='$(prefix)'"/lib64/python${VERSION}/config-${LDVERSION}"
if test x$PLATFORM_TRIPLET = x; then
- LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}"
+ LIBPL='$(prefix)'"/lib64/python${VERSION}/config-${LDVERSION}"
else
- LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}"
+ LIBPL='$(prefix)'"/lib64/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}"
fi
# Check whether right shifting a negative integer extends the sign bit
diff -uar Python-3.5.1.orig/setup.py Python-3.5.1/setup.py
--- Python-3.5.1.orig/setup.py 2015-12-07 03:39:11.000000000 +0200
+++ Python-3.5.1/setup.py 2015-12-14 21:27:46.090400632 +0200
@@ -469,7 +469,7 @@
diff -Naur Python-3.7.0.orig/setup.py Python-3.7.0/setup.py
--- Python-3.7.0.orig/setup.py 2018-06-27 04:07:35.000000000 +0100
+++ Python-3.7.0/setup.py 2018-10-10 23:21:28.863946963 +0100
@@ -541,7 +541,7 @@
# directories (i.e. '.' and 'Include') must be first. See issue
# 10520.
if not cross_compiling:
@ -159,7 +162,7 @@ diff -uar Python-3.5.1.orig/setup.py Python-3.5.1/setup.py
add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
# only change this for cross builds for 3.3, issues on Mageia
if cross_compiling:
@@ -750,11 +750,11 @@
@@ -847,7 +847,7 @@
elif curses_library:
readline_libs.append(curses_library)
elif self.compiler.find_library_file(lib_dirs +
@ -168,19 +171,3 @@ diff -uar Python-3.5.1.orig/setup.py Python-3.5.1/setup.py
'termcap'):
readline_libs.append('termcap')
exts.append( Extension('readline', ['readline.c'],
- library_dirs=['/usr/lib/termcap'],
+ library_dirs=['/usr/lib64/termcap'],
extra_link_args=readline_extra_link_args,
libraries=readline_libs) )
else:
@@ -791,8 +791,8 @@
if krb5_h:
ssl_incs += krb5_h
ssl_libs = find_library_file(self.compiler, 'ssl',lib_dirs,
- ['/usr/local/ssl/lib',
- '/usr/contrib/ssl/lib/'
+ ['/usr/local/ssl/lib64',
+ '/usr/contrib/ssl/lib64/'
] )
if (ssl_incs is not None and

1
d/python3/Python-3.7.0.tar.xz.sha256

@ -0,0 +1 @@
0382996d1ee6aafe59763426cf0139ffebe36984474d0ec4126dd1c40a8b3549 Python-3.7.0.tar.xz

1
d/python3/python-3.5.0a3-docs-html.tar.bz2.sha256

@ -1 +0,0 @@
26ad1f229449cd383985d1237c3ae303178c04f61bb1f1cad3c092510d19a35b python-3.5.0a3-docs-html.tar.bz2

33
d/python3/python3.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2012,2013,2016,2017 Damien Goutte-Gattat
# Copyright (C) 2012,2013,2016-2018 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -26,11 +26,9 @@
# Source package infos
NAMESRC=${NAMESRC:-Python}
VERSION=${VERSION:-3.5.3}
VERSION=${VERSION:-3.7.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.xz}
WGET=${WGET:-http://python.org/ftp/python/$VERSION/$ARCHIVE}
DOC_ARCHIVE=${DOC_ARCHIVE:-python-3.5.0a3-docs-html.tar.bz2}
DOC_WGET=${DOC_WGET:-http://python.org/ftp/python/doc/3.5.0/$DOC_ARCHIVE}
WGET=${WGET:-https://www.python.org/ftp/python/$VERSION/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-python3}
@ -62,11 +60,7 @@ if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
if [ ! -r $DOC_ARCHIVE ]; then
wget -c -O $DOC_ARCHIVE.part "$DOC_WGET"
mv $DOC_ARCHIVE.part $DOC_ARCHIVE
fi
sha256sum -c $ARCHIVE.sha256 $DOC_ARCHIVE.sha256
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Extract and patch
@ -77,7 +71,7 @@ cd $NAME
LIBDIRSUFFIX=""
if [ "x$ARCH" = xx86_64 ]; then
LIBDIRSUFFIX="64"
patch -p1 < $CWD/python3.x86_64.diff
patch -p1 < $CWD/Python-3.7.0-x86_64.diff
fi
# Compile
@ -86,7 +80,6 @@ fi
--libdir=/usr/lib$LIBDIRSUFFIX \
--mandir=/usr/man \
--docdir=/usr/doc/$NAMEPKG-$VERSION \
--with-threads \
--enable-ipv6 \
--enable-shared
make -j $JOBS
@ -99,24 +92,16 @@ find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
# Compress man pages
find $PKG/usr/man -type f -exec gzip -9 {} \;
# Install python-tools
cp -a Tools/* $PKG/usr/lib$LIBDIRSUFFIX/python3.5/site-packages/
# Create symlinls
# Create symlinks
( cd $PKG/usr/bin
ln -sf python3.5 python3
ln -sf python3.5*-config python3.3-config
ln -sf python3.7 python3
ln -sf python3.7m-config python3-config
ln -sf pydoc3.5 pydoc3
)
# Install the documentation
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 LICENSE README $PKG/usr/doc/$NAMEPKG-$VERSION
( cd $PKG/usr/doc/$NAMEPKG-$VERSION/
mv $PKG/usr/lib$LIBDIRSUFFIX/python3.5/site-packages/README README.python-tools
tar xf $CWD/$DOC_ARCHIVE
mv python-3.5.0a3-docs-html html
)
install -m 644 LICENSE README.rst $PKG/usr/doc/$NAMEPKG-$VERSION
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc

Loading…
Cancel
Save