Skip to content

Commit 12d9c06

Browse files
authored
build-cpython.sh: Don't repack the pip wheel (#506)
We're no longer patching it as of #401 (3dbca1c) so there's no longer a need to unpack and repack it.
1 parent dfb68b2 commit 12d9c06

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

cpython-unix/build-cpython.sh

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -51,23 +51,6 @@ tar -xf Python-${PYTHON_VERSION}.tar.xz
5151
PIP_WHEEL="${ROOT}/pip-${PIP_VERSION}-py3-none-any.whl"
5252
SETUPTOOLS_WHEEL="${ROOT}/setuptools-${SETUPTOOLS_VERSION}-py3-none-any.whl"
5353

54-
# pip and setuptools don't properly handle the case where the current executable
55-
# isn't dynamic. This is tracked by https://github.com/pypa/pip/issues/6543.
56-
# We need to patch both.
57-
#
58-
# Ideally we'd do this later in the build. However, since we use the pip
59-
# wheel to bootstrap itself, we need to patch the wheel before it is used.
60-
#
61-
# Wheels are zip files. So we simply unzip, patch, and rezip.
62-
mkdir pip-tmp
63-
pushd pip-tmp
64-
unzip "${PIP_WHEEL}"
65-
rm -f "${PIP_WHEEL}"
66-
67-
zip -r "${PIP_WHEEL}" *
68-
popd
69-
rm -rf pip-tmp
70-
7154
cat Setup.local
7255
mv Setup.local Python-${PYTHON_VERSION}/Modules/Setup.local
7356

0 commit comments

Comments
 (0)