mirror of
https://codeberg.org/kiss-community/repo
synced 2025-03-27 16:22:46 -06:00
python: Fix python not always installing pip/setuptools
This commit is contained in:
parent
e0d6498476
commit
232af986da
@ -1,11 +1,13 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
|
patch -p1 < python3-always-pip.patch
|
||||||
|
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
--with-system-expat \
|
--with-system-expat \
|
||||||
--with-system-ffi \
|
--with-system-ffi \
|
||||||
--with-ensurepip=install
|
--with-ensurepip=yes
|
||||||
|
|
||||||
make
|
make
|
||||||
make DESTDIR="$1" install
|
make DESTDIR="$1" install
|
||||||
|
@ -1 +1,2 @@
|
|||||||
fb799134b868199930b75f26678f18932214042639cd52b16da7fd134cd9b13f Python-3.7.4.tar.xz
|
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
|
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