Skip to content

Commit ca8a203

Browse files
authored
Merge pull request #1126 from github/aibaars/python-setup-no-pycache
Python-Setup: run auto_install_packages.py with -B flag
2 parents 3ea10cc + 53bc5e6 commit ca8a203

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

lib/init.js

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/init.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/init.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,11 +253,14 @@ export async function installPythonDeps(codeql: CodeQL, logger: Logger) {
253253
if (process.platform === "win32") {
254254
await new toolrunner.ToolRunner(await safeWhich.safeWhich("py"), [
255255
"-3",
256+
"-B",
256257
path.join(scriptsFolder, script),
257258
path.dirname(codeql.getPath()),
258259
]).exec();
259260
} else {
260-
await new toolrunner.ToolRunner(path.join(scriptsFolder, script), [
261+
await new toolrunner.ToolRunner(await safeWhich.safeWhich("python3"), [
262+
"-B",
263+
path.join(scriptsFolder, script),
261264
path.dirname(codeql.getPath()),
262265
]).exec();
263266
}

0 commit comments

Comments
 (0)