forked from kiss-community/repo
python2: move to community
This commit is contained in:
parent
a86e7301c3
commit
11fdb6e68e
|
@ -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
|
|
||||||
}
|
|
|
@ -1,2 +0,0 @@
|
||||||
b62c0e7937551d0cc02b8fd5cb0f544f9405bafc9a54d3808ed4594812edef43 Python-2.7.18.tar.xz
|
|
||||||
1a184c64f85d7a2fb57642135ea298ddd005684c5bd3e601b932cf31b82b9417 python2-always-pip.patch
|
|
|
@ -1,3 +0,0 @@
|
||||||
bzip2
|
|
||||||
sqlite
|
|
||||||
zlib
|
|
|
@ -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:
|
|
|
@ -1,2 +0,0 @@
|
||||||
https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tar.xz
|
|
||||||
patches/python2-always-pip.patch
|
|
|
@ -1 +0,0 @@
|
||||||
2.7.18 3
|
|
Loading…
Reference in New Issue
Block a user