message: Python-Setup: set PYTHONDONTWRITEBYTECODE=1
diff: @@ -240,13 +240,14 @@ export async function installPythonDeps(codeql: CodeQL, logger: Logger) {
  const scriptsFolder = path.resolve(__dirname, "../python-setup");
  try {
  + const env = { ...process.env, PYTHONDONTWRITEBYTECODE: "1" };
  if (process.platform === "win32") {
  await new toolrunner.ToolRunner(await safeWhich.safeWhich("powershell"), [
  path.join(scriptsFolder, "install_tools.ps1"),
  - ]).exec();
  + ], { env: env }).exec();
  } else {
  await new toolrunner.ToolRunner(
  - path.join(scriptsFolder, "install_tools.sh")
  + path.join(scriptsFolder, "install_tools.sh"), [], { env: env }
  ).exec();
  }
  const script = "auto_install_packages.py";
  @@ -255,11 +256,11 @@ export async function installPythonDeps(codeql: CodeQL, logger: Logger) {
  "-3",
  path.join(scriptsFolder, script),
  path.dirname(codeql.getPath()),
  - ]).exec();
  + ], { env: env }).exec();
  } else {
  await new toolrunner.ToolRunner(path.join(scriptsFolder, script), [
  path.dirname(codeql.getPath()),
  - ]).exec();
  + ], { env: env }).exec();
  }
  } catch (e) {
  logger.endGroup();
  