From 20e424bac0407f57ee8ef2b99fb5d20888c9cb89 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Wed, 14 Oct 2020 19:15:14 -0500 Subject: [PATCH 1/3] Remove all channels from channel list including conda-forge --- recipe/conda_forge_ci_setup/build_utils.py | 1 + recipe/meta.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/recipe/conda_forge_ci_setup/build_utils.py b/recipe/conda_forge_ci_setup/build_utils.py index 115137ff..176267b1 100644 --- a/recipe/conda_forge_ci_setup/build_utils.py +++ b/recipe/conda_forge_ci_setup/build_utils.py @@ -103,6 +103,7 @@ def setup_conda_rc(feedstock_root, recipe_root, config_file): update_global_config(feedstock_root) channels = _global_config["channels"]["sources"] + call(["conda", "config", "--remove-key", "channels"]) call(["conda", "config", "--remove", "channels", "defaults"]) for c in reversed(channels): call(["conda", "config", "--add", "channels", c]) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 591f0c13..8a893048 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -1,5 +1,5 @@ {% set name = "conda-forge-ci-setup" %} -{% set version = "3.4.1" %} +{% set version = "3.5.0" %} package: name: {{ name|lower }} From df6f5e84f807e995ec9cb13298159536b281eff4 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Thu, 5 Nov 2020 23:18:33 -0600 Subject: [PATCH 2/3] Update build_utils.py --- recipe/conda_forge_ci_setup/build_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipe/conda_forge_ci_setup/build_utils.py b/recipe/conda_forge_ci_setup/build_utils.py index 176267b1..4360ba25 100644 --- a/recipe/conda_forge_ci_setup/build_utils.py +++ b/recipe/conda_forge_ci_setup/build_utils.py @@ -103,7 +103,7 @@ def setup_conda_rc(feedstock_root, recipe_root, config_file): update_global_config(feedstock_root) channels = _global_config["channels"]["sources"] - call(["conda", "config", "--remove-key", "channels"]) + call(["conda", "config", "--remove", "channels", "conda-forge"]) call(["conda", "config", "--remove", "channels", "defaults"]) for c in reversed(channels): call(["conda", "config", "--add", "channels", c]) From c8b6712e750ef506cf947adb4c73ec9c4ffc8261 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Fri, 6 Nov 2020 01:17:58 -0600 Subject: [PATCH 3/3] Update recipe/conda_forge_ci_setup/build_utils.py Co-authored-by: Marcel Bargull --- recipe/conda_forge_ci_setup/build_utils.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/recipe/conda_forge_ci_setup/build_utils.py b/recipe/conda_forge_ci_setup/build_utils.py index 4360ba25..45ee1e89 100644 --- a/recipe/conda_forge_ci_setup/build_utils.py +++ b/recipe/conda_forge_ci_setup/build_utils.py @@ -103,10 +103,11 @@ def setup_conda_rc(feedstock_root, recipe_root, config_file): update_global_config(feedstock_root) channels = _global_config["channels"]["sources"] - call(["conda", "config", "--remove", "channels", "conda-forge"]) - call(["conda", "config", "--remove", "channels", "defaults"]) - for c in reversed(channels): - call(["conda", "config", "--add", "channels", c]) + call(["conda", "config", "--remove-key", "channels"]) + for c in channels: + call(["conda", "config", "--append", "channels", c]) + if "defaults" not in channels: + call(["conda", "config", "--remove", "channels", "defaults"]) call(["conda", "config", "--set", "show_channel_urls", "true"])