From 5b6a1ef88fb56173d417804e9936518d171a1cfb Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Fri, 22 Sep 2023 22:48:29 -0500 Subject: [PATCH] os -> subdir_os to avoid conflicts --- conda_build/metadata.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conda_build/metadata.py b/conda_build/metadata.py index 1573a80217..90f0329c4f 100644 --- a/conda_build/metadata.py +++ b/conda_build/metadata.py @@ -136,8 +136,8 @@ def get_selectors(config: Config) -> dict[str, bool]: subdir_oses = set([subdir.split("-")[0] for subdir in DEFAULT_SUBDIRS]) subdir_archs = set([subdir.split("-")[1] for subdir in DEFAULT_SUBDIRS]) - for os in subdir_oses: - d[os] = plat.startswith(f"{os}-") + for subdir_os in subdir_oses: + d[subdir_os] = plat.startswith(f"{subdir_os}-") for arch in subdir_arches: arch_full = ARCH_MAP.get(arch, arch)