From d99e39c970c78bf24510f7e31abde0bf9bd48ad8 Mon Sep 17 00:00:00 2001 From: Aleksey Rostovskiy Date: Wed, 13 Mar 2019 14:31:04 +0300 Subject: [PATCH] add condition env parameter to bootstrap anaconda or not --- python/tools/setup-envs/build.gradle | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/python/tools/setup-envs/build.gradle b/python/tools/setup-envs/build.gradle index fc2668579d04..9b07c93017fd 100644 --- a/python/tools/setup-envs/build.gradle +++ b/python/tools/setup-envs/build.gradle @@ -17,14 +17,13 @@ import org.apache.tools.ant.taskdefs.condition.Os plugins { - id "com.jetbrains.python.envs" version "0.0.27" + id "com.jetbrains.python.envs" version "0.0.30" } envs { bootstrapDirectory = new File(System.getenv().getOrDefault("PYCHARM_PYTHONS", new File(buildDir, 'pythons').path)) envsDirectory = new File(System.getenv().getOrDefault("PYCHARM_PYTHON_VIRTUAL_ENVS", new File(buildDir, 'envs').path)) - _64Bits = true if (System.getenv().containsKey("PYCHARM_ZIP_REPOSITORY")) { zipRepository = new URL(System.getenv().get("PYCHARM_ZIP_REPOSITORY")) @@ -36,6 +35,8 @@ envs { python "python36", "3.6.8" python "python37", "3.7.2" - conda "Anaconda2", "Anaconda2-2018.12", "64", [] - conda "Anaconda3", "Anaconda3-2018.12", "64", [] + if (System.getenv("PYCHARM_BOOTSTRAP_ANACONDA") == "true") { + conda "Anaconda2", "Anaconda2-2018.12", "64", [] + conda "Anaconda3", "Anaconda3-2018.12", "64", [] + } }