kiss-repo

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 0eb3792b16b2b3eef163ef00ce312f153f8c65a4
parent 68616a5cbaee8cc81bc701ec379229f539253a6c
Author: aabacchus <bvnfuller@gmail.com>
Date:   Sun, 21 Feb 2021 22:24:36 +0000

python fork with pydoc

Diffstat:
Apython/build | 47+++++++++++++++++++++++++++++++++++++++++++++++
Apython/checksums | 2++
Apython/depends | 5+++++
Apython/patches/python3-always-pip.patch | 13+++++++++++++
Apython/sources | 2++
Apython/version | 1+
6 files changed, 70 insertions(+), 0 deletions(-)

diff --git a/python/build b/python/build @@ -0,0 +1,47 @@ +#!/bin/sh -e + +# Remove util-linux dependency among other things. +cat >> Modules/Setup <<EOF +*disabled* +_uuid nis ossaudiodev +EOF + +# Reported 20-27% performance improvements. +# See: "PythonNoSemanticInterpositionSpeedup" +export CFLAGS="$CFLAGS -fno-semantic-interposition" +export CXXFLAGS="$CXXFLAGS -fno-semantic-interposition" +export LDFLAGS="$LDFLAGS -fno-semantic-interposition" + +patch -p1 < python3-always-pip.patch + +./configure \ + --prefix=/usr \ + --enable-shared \ + --with-system-expat \ + --with-system-ffi \ + --with-ensurepip=yes \ + --without-doc-strings + +make +make DESTDIR="$1" install + +ln -s python3 "$1/usr/bin/python" +ln -s pip3 "$1/usr/bin/pip" + +# Make static library writable. +chmod u+w "$1/usr/lib/libpython"* + +# Let's make some kind of effort to reduce the overall +# size of Python by removing a bunch of rarely used and +# otherwise useless components. +# +# This can't be done via ./configure as the build system +# doesn't give you this much control over the process. +{ + cd "$1/usr/lib/python"* + rm -rf test ./*/test ./*/tests + rm -rf idlelib turtle* config-* ensurepip + + cd "$1/usr/bin" + rm -f idle* +} diff --git a/python/checksums b/python/checksums @@ -0,0 +1,2 @@ +3c2034c54f811448f516668dce09d24008a0716c3a794dd8639b5388cbde247d +1e3dd58370fa3f5c9454f72479565e5282d16defdeec43c88e9a4dd233e00c1b diff --git a/python/depends b/python/depends @@ -0,0 +1,5 @@ +bzip2 +expat +libffi +sqlite +zlib diff --git a/python/patches/python3-always-pip.patch b/python/patches/python3-always-pip.patch @@ -0,0 +1,13 @@ +diff --git a/Lib/ensurepip/__init__.py b/Lib/ensurepip/__init__.py +index f3152a5..52f6312 100644 +--- a/Lib/ensurepip/__init__.py ++++ b/Lib/ensurepip/__init__.py +@@ -116,7 +116,7 @@ def _bootstrap(*, root=None, upgrade=False, user=False, + additional_paths.append(os.path.join(tmpdir, wheel_name)) + + # Construct the arguments to be passed to the pip command +- args = ["install", "--no-cache-dir", "--no-index", "--find-links", tmpdir] ++ args = ["install", "-I", "--no-cache-dir", "--no-index", "--find-links", tmpdir] + if root: + args += ["--root", root] + if upgrade: diff --git a/python/sources b/python/sources @@ -0,0 +1,2 @@ +https://www.python.org/ftp/python/3.9.2/Python-3.9.2.tar.xz +patches/python3-always-pip.patch diff --git a/python/version b/python/version @@ -0,0 +1 @@ +3.9.2 1