mirror of
https://github.com/github/codeql-action.git
synced 2026-10-29 17:17:15 +00:00
python-setup: Handle poetry virtualenvs.options.no-pip = true
Fixes https://github.com/github/codeql-action/issues/1425
This commit is contained in:
@@ -88,6 +88,8 @@ async function setupPythonExtractor(logger: Logger) {
|
||||
return;
|
||||
}
|
||||
|
||||
const scriptsFolder = path.resolve(__dirname, "../python-setup");
|
||||
|
||||
let output = "";
|
||||
const options = {
|
||||
listeners: {
|
||||
@@ -100,8 +102,7 @@ async function setupPythonExtractor(logger: Logger) {
|
||||
await new toolrunner.ToolRunner(
|
||||
codeqlPython,
|
||||
[
|
||||
"-c",
|
||||
"import os; import pip; print(os.path.dirname(os.path.dirname(pip.__file__)))",
|
||||
path.join(scriptsFolder, "find_site_packages.py"),
|
||||
],
|
||||
options
|
||||
).exec();
|
||||
|
||||
Reference in New Issue
Block a user