snyk 1.1265.0 → 1.1267.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -241000,19 +241000,19 @@ function dumpAllFilesInTempDir(tempDirName) {
241000
241000
  writeFile(writeFilePath, contents);
241001
241001
  });
241002
241002
  }
241003
- function updateSetuptools(setuptoolsVersion, dir, pythonEnv) {
241003
+ function updateSetuptools(setuptoolsVersion, dir, pythonEnv, command) {
241004
241004
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
241005
241005
  // For python 3.12, setuptools needs to be updated
241006
241006
  // due to removal of some deprecated packages
241007
241007
  // see: https://github.com/pypa/pip/pull/11997
241008
- const pythonVersion = yield subProcess.execute(`python`, ['--version'], {
241008
+ const pythonVersion = yield subProcess.execute(command, ['--version'], {
241009
241009
  cwd: dir,
241010
241010
  env: pythonEnv,
241011
241011
  });
241012
241012
  if (!PYTHON_3_12_REGEX.test(pythonVersion)) {
241013
241013
  return;
241014
241014
  }
241015
- yield subProcess.execute(`pip install setuptools==${setuptoolsVersion}`, [], {
241015
+ yield subProcess.execute(`${command} -m pip install setuptools==${setuptoolsVersion}`, [], {
241016
241016
  cwd: dir,
241017
241017
  env: pythonEnv,
241018
241018
  });
@@ -241026,7 +241026,7 @@ function inspectInstalledDeps(command, baseargs, root, targetFile, allowMissing,
241026
241026
  dumpAllFilesInTempDir(tempDirObj.name);
241027
241027
  try {
241028
241028
  const pythonEnv = getPythonEnv(targetFile);
241029
- yield updateSetuptools(UPDATED_SETUPTOOLS_VERSION, root, pythonEnv);
241029
+ yield updateSetuptools(UPDATED_SETUPTOOLS_VERSION, root, pythonEnv, command);
241030
241030
  // See ../../pysrc/README.md
241031
241031
  const output = yield subProcess.execute(command, [
241032
241032
  ...baseargs,