python-setup: Handle poetry virtualenvs.options.no-pip = true
Fixes https://github.com/github/codeql-action/issues/1425
This commit is contained in:
parent
2073a69919
commit
259993b92a
5 changed files with 36 additions and 5 deletions
|
|
@ -9,8 +9,7 @@ def get_details(path_to_python_exe: str) -> Tuple[str, str]:
|
|||
import_path = subprocess.check_output(
|
||||
[
|
||||
path_to_python_exe,
|
||||
"-c",
|
||||
"import os; import pip; print(os.path.dirname(os.path.dirname(pip.__file__)))",
|
||||
os.path.join(os.path.dirname(__file__), "find_site_packages.py")
|
||||
],
|
||||
stdin=subprocess.DEVNULL,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,2 +1,5 @@
|
|||
[virtualenvs]
|
||||
in-project = true
|
||||
|
||||
[virtualenvs.options]
|
||||
no-pip = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue