Skip to content

Commit

Permalink
Rename conda-build .condarc function
Browse files Browse the repository at this point in the history
This function isn't related to `.conda` any more. So rename for
clarity.
  • Loading branch information
jakirkham authored Nov 6, 2024
1 parent 5d721f3 commit 976bd68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recipe/conda_forge_ci_setup/build_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def fail_if_travis_not_allowed_for_arch(config_file, feedstock_root):
raise RuntimeError("Travis CI cannot be used on x86_64 in conda-forge!")


def maybe_use_dot_conda(feedstock_root):
def apply_cf_yml_condarc_settings(feedstock_root):
"""Maybe set the .condarc to use .conda files."""
if os.path.exists(os.path.join(feedstock_root, "conda-forge.yml")):
with open(os.path.join(feedstock_root, "conda-forge.yml")) as f:
Expand Down Expand Up @@ -142,7 +142,7 @@ def setup_conda_rc(feedstock_root, recipe_root, config_file):

fail_if_travis_not_allowed_for_arch(config_file, feedstock_root)

maybe_use_dot_conda(feedstock_root)
apply_cf_yml_condarc_settings(feedstock_root)

with open(config_file) as f:
specific_config = safe_load(f)
Expand Down

0 comments on commit 976bd68

Please sign in to comment.