mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 11:53:49 +07:00
PY-57583 Update bundled virtualenv zipapp
20.13.0 -> left unchanged for python2 20.13.0 -> 20.16.7 for all else GitOrigin-RevId: 9fb642976cd274386ad5d978f818227b86ca3cd8
This commit is contained in:
committed by
intellij-monorepo-bot
parent
afdb125a10
commit
3982fb30fe
BIN
python/helpers/virtualenv-20.16.7.pyz
Normal file
BIN
python/helpers/virtualenv-20.16.7.pyz
Normal file
Binary file not shown.
@@ -27,7 +27,8 @@ public enum PythonHelper implements HelperPackage {
|
||||
|
||||
// Packaging tools
|
||||
PACKAGING_TOOL("packaging_tool.py"),
|
||||
VIRTUALENV_ZIPAPP("virtualenv.pyz"),
|
||||
VIRTUALENV_ZIPAPP("virtualenv-20.16.7.pyz"),
|
||||
PY2_VIRTUALENV_ZIPAPP("virtualenv-20.13.0.pyz"),
|
||||
|
||||
COVERAGEPY("coveragepy", ""),
|
||||
COVERAGE("coverage_runner", "run_coverage"),
|
||||
|
||||
@@ -37,7 +37,8 @@ import static com.jetbrains.python.sdk.PySdkExtKt.showSdkExecutionException;
|
||||
*/
|
||||
@Deprecated
|
||||
public class PyPackageManagerImpl extends PyPackageManagerImplBase {
|
||||
private static final String VIRTUALENV_ZIPAPP_NAME = "virtualenv.pyz";
|
||||
private static final String VIRTUALENV_ZIPAPP_NAME = "virtualenv-20.16.7.pyz";
|
||||
private static final String PY2_VIRTUALENV_ZIPAPP_NAME = "virtualenv-20.13.0.pyz";
|
||||
|
||||
private static final Logger LOG = Logger.getInstance(PyPackageManagerImpl.class);
|
||||
|
||||
@@ -188,7 +189,9 @@ public class PyPackageManagerImpl extends PyPackageManagerImplBase {
|
||||
args.add(destinationDir);
|
||||
|
||||
try {
|
||||
getPythonProcessResult(Objects.requireNonNull(getHelperPath(VIRTUALENV_ZIPAPP_NAME)), args, false, true, null, List.of("-S"));
|
||||
getPythonProcessResult(
|
||||
Objects.requireNonNull(getHelperPath(languageLevel.isPython2() ? PY2_VIRTUALENV_ZIPAPP_NAME : VIRTUALENV_ZIPAPP_NAME)),
|
||||
args, false, true, null, List.of("-S"));
|
||||
}
|
||||
catch (ExecutionException e) {
|
||||
showSdkExecutionException(sdk, e, PySdkBundle.message("python.creating.venv.failed.title"));
|
||||
|
||||
@@ -230,8 +230,9 @@ public class PyTargetEnvironmentPackageManager extends PyPackageManagerImplBase
|
||||
HelpersAwareTargetEnvironmentRequest helpersAwareTargetRequest = getPythonTargetInterpreter();
|
||||
TargetEnvironmentRequest targetEnvironmentRequest = helpersAwareTargetRequest.getTargetEnvironmentRequest();
|
||||
|
||||
PythonScriptExecution pythonExecution =
|
||||
PythonScripts.prepareHelperScriptExecution(PythonHelper.VIRTUALENV_ZIPAPP, helpersAwareTargetRequest);
|
||||
PythonScriptExecution pythonExecution = PythonScripts.prepareHelperScriptExecution(
|
||||
languageLevel.isPython2() ? PythonHelper.PY2_VIRTUALENV_ZIPAPP : PythonHelper.VIRTUALENV_ZIPAPP,
|
||||
helpersAwareTargetRequest);
|
||||
if (useGlobalSite) {
|
||||
pythonExecution.addParameter("--system-site-packages");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user