Commit bd814ae 1 parent 9ca5d23 commit bd814ae Copy full SHA for bd814ae
File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -205,6 +205,18 @@ jobs:
205
205
brew install --overwrite python@${{ matrix.python }}
206
206
echo /usr/local/opt/python@${{ matrix.python }}/libexec/bin/ >> $GITHUB_PATH
207
207
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
+
208
220
- name : Install
209
221
run : python -m pip --disable-pip-version-check install .[test]
210
222
You can’t perform that action at this time.
0 commit comments