mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +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 tools
|
||||||
PACKAGING_TOOL("packaging_tool.py"),
|
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", ""),
|
COVERAGEPY("coveragepy", ""),
|
||||||
COVERAGE("coverage_runner", "run_coverage"),
|
COVERAGE("coverage_runner", "run_coverage"),
|
||||||
|
|||||||
@@ -37,7 +37,8 @@ import static com.jetbrains.python.sdk.PySdkExtKt.showSdkExecutionException;
|
|||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public class PyPackageManagerImpl extends PyPackageManagerImplBase {
|
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);
|
private static final Logger LOG = Logger.getInstance(PyPackageManagerImpl.class);
|
||||||
|
|
||||||
@@ -188,7 +189,9 @@ public class PyPackageManagerImpl extends PyPackageManagerImplBase {
|
|||||||
args.add(destinationDir);
|
args.add(destinationDir);
|
||||||
|
|
||||||
try {
|
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) {
|
catch (ExecutionException e) {
|
||||||
showSdkExecutionException(sdk, e, PySdkBundle.message("python.creating.venv.failed.title"));
|
showSdkExecutionException(sdk, e, PySdkBundle.message("python.creating.venv.failed.title"));
|
||||||
|
|||||||
@@ -230,8 +230,9 @@ public class PyTargetEnvironmentPackageManager extends PyPackageManagerImplBase
|
|||||||
HelpersAwareTargetEnvironmentRequest helpersAwareTargetRequest = getPythonTargetInterpreter();
|
HelpersAwareTargetEnvironmentRequest helpersAwareTargetRequest = getPythonTargetInterpreter();
|
||||||
TargetEnvironmentRequest targetEnvironmentRequest = helpersAwareTargetRequest.getTargetEnvironmentRequest();
|
TargetEnvironmentRequest targetEnvironmentRequest = helpersAwareTargetRequest.getTargetEnvironmentRequest();
|
||||||
|
|
||||||
PythonScriptExecution pythonExecution =
|
PythonScriptExecution pythonExecution = PythonScripts.prepareHelperScriptExecution(
|
||||||
PythonScripts.prepareHelperScriptExecution(PythonHelper.VIRTUALENV_ZIPAPP, helpersAwareTargetRequest);
|
languageLevel.isPython2() ? PythonHelper.PY2_VIRTUALENV_ZIPAPP : PythonHelper.VIRTUALENV_ZIPAPP,
|
||||||
|
helpersAwareTargetRequest);
|
||||||
if (useGlobalSite) {
|
if (useGlobalSite) {
|
||||||
pythonExecution.addParameter("--system-site-packages");
|
pythonExecution.addParameter("--system-site-packages");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user