forked from kiss-community/repo
python: Fix python not always installing pip/setuptools
This commit is contained in:
parent
e0d6498476
commit
232af986da
@ -1,11 +1,13 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
patch -p1 < python3-always-pip.patch
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--enable-shared \
|
||||
--with-system-expat \
|
||||
--with-system-ffi \
|
||||
--with-ensurepip=install
|
||||
--with-ensurepip=yes
|
||||
|
||||
make
|
||||
make DESTDIR="$1" install
|
||||
|
@ -1 +1,2 @@
|
||||
fb799134b868199930b75f26678f18932214042639cd52b16da7fd134cd9b13f Python-3.7.4.tar.xz
|
||||
1a184c64f85d7a2fb57642135ea298ddd005684c5bd3e601b932cf31b82b9417 python3-always-pip.patch
|
||||
|
13
extra/python/patches/python3-always-pip.patch
Normal file
13
extra/python/patches/python3-always-pip.patch
Normal file
@ -0,0 +1,13 @@
|
||||
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 +1,2 @@
|
||||
https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tar.xz
|
||||
patches/python3-always-pip.patch
|
||||
|
@ -1 +1 @@
|
||||
3.7.4 4
|
||||
3.7.4 5
|
||||
|
Loading…
Reference in New Issue
Block a user