python2: move to community

This commit is contained in:
Dylan Araps 2020-08-26 17:59:52 +03:00
parent a86e7301c3
commit 11fdb6e68e
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
6 changed files with 0 additions and 49 deletions

View File

@ -1,28 +0,0 @@
#!/bin/sh -e
patch -p1 < python2-always-pip.patch
./configure \
--prefix=/usr \
--with-ensurepip=yes
make
make DESTDIR="$1" install
# Make static library writable.
chmod u+w "$1/usr/lib/libpython"*.a
# 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 lib2to3 pydoc* idlelib turtle* ensurepip lib-tk config
cd "$1/usr/bin"
rm -f 2to3* pydoc* idle* python pip
}

View File

@ -1,2 +0,0 @@
b62c0e7937551d0cc02b8fd5cb0f544f9405bafc9a54d3808ed4594812edef43 Python-2.7.18.tar.xz
1a184c64f85d7a2fb57642135ea298ddd005684c5bd3e601b932cf31b82b9417 python2-always-pip.patch

View File

@ -1,3 +0,0 @@
bzip2
sqlite
zlib

View File

@ -1,13 +0,0 @@
diff --git a/Lib/ensurepip/__init__.py b/Lib/ensurepip/__init__.py
index 526dfd0..d85dc33 100644
--- a/Lib/ensurepip/__init__.py
+++ b/Lib/ensurepip/__init__.py
@@ -104,7 +104,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-index", "--find-links", tmpdir]
+ args = ["install", "-I", "--no-index", "--find-links", tmpdir]
if root:
args += ["--root", root]
if upgrade:

View File

@ -1,2 +0,0 @@
https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tar.xz
patches/python2-always-pip.patch

View File

@ -1 +0,0 @@
2.7.18 3