File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -205,6 +205,18 @@ jobs:
205205 brew install --overwrite python@${{ matrix.python }}
206206 echo /usr/local/opt/python@${{ matrix.python }}/libexec/bin/ >> $GITHUB_PATH
207207
208+ - name : Patch pip
209+ # Patch https://github.com/pypa/pip/issues/11539
210+ run : |
211+ cat >>/usr/local/lib/python${{ matrix.python }}/site-packages/pip/_internal/locations/_sysconfig.py <<EOF
212+ def get_prefixed_libs(prefix: str) -> typing.Tuple[str, str]:
213+ if "venv" in sysconfig.get_scheme_names():
214+ paths = sysconfig.get_paths(vars={"base": prefix, "platbase": prefix}, scheme="venv")
215+ else:
216+ paths = sysconfig.get_paths(vars={"base": prefix, "platbase": prefix})
217+ return (paths["purelib"], paths["platlib"])
218+ EOF
219+
208220 - name : Install
209221 run : python -m pip --disable-pip-version-check install .[test]
210222
You can’t perform that action at this time.
0 commit comments