Skip to content

Commit 2fb57a5

Browse files
committed
unix: attempt to work around permissions issue with wheels
CI is encountering a permissions issue with the wheel files. I can't reproduce this locally. Might have something to do with umasks. I dunno. Let's try to work around it by removing the source wheel files, which shouldn't require write privileges on the file - only the directory it is part of.
1 parent 30f1400 commit 2fb57a5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cpython-unix/build-cpython.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ tar -xf Python-${PYTHON_VERSION}.tar.xz
2424
PIP_WHEEL="${ROOT}/pip-${PIP_VERSION}-py3-none-any.whl"
2525
SETUPTOOLS_WHEEL="${ROOT}/setuptools-${SETUPTOOLS_VERSION}-py3-none-any.whl"
2626

27-
chmod 644 "${PIP_WHEEL}"
28-
chmod 644 "${SETUPTOOLS_WHEEL}"
29-
3027
# pip and setuptools don't properly handle the case where the current executable
3128
# isn't dynamic. This is tracked by https://github.com/pypa/pip/issues/6543.
3229
# We need to patch both.
@@ -38,6 +35,7 @@ chmod 644 "${SETUPTOOLS_WHEEL}"
3835
mkdir pip-tmp
3936
pushd pip-tmp
4037
unzip "${PIP_WHEEL}"
38+
rm -f "${PIP_WHEEL}"
4139

4240
patch -p1 <<EOF
4341
diff --git a/pip/_internal/utils/glibc.py b/pip/_internal/utils/glibc.py
@@ -65,6 +63,7 @@ rm -rf pip-tmp
6563
mkdir setuptools-tmp
6664
pushd setuptools-tmp
6765
unzip "${SETUPTOOLS_WHEEL}"
66+
rm -f "${SETUPTOOLS_WHEEL}"
6867

6968
patch -p1 <<EOF
7069
diff --git a/setuptools/_vendor/packaging/tags.py b/setuptools/_vendor/packaging/tags.py

0 commit comments

Comments
 (0)