Skip to content

Commit

Permalink
fix filtering subdirs
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf committed Oct 8, 2023
1 parent 69f7982 commit 1f28151
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions conda_build/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,12 @@ def get_selectors(config: Config) -> dict[str, bool]:
nomkl=bool(int(os.environ.get("FEATURE_NOMKL", False))),
)

subdirs = [subdir for subdir in DEFAULT_SUBDIRS if "-" in subdir]
# Add the current platform to the list as well to enable conda-build
# Add the current platform to the list of subdirs to enable conda-build
# to bootstrap new platforms without a new conda release.
subdirs.append(plat)
subdirs = list(DEFAULT_SUBDIRS) + [plat]

# filter out noarch and other weird subdirs
subdirs = [subdir for subdir in subdirs if "-" in subdir]

subdir_oses = {subdir.split("-")[0] for subdir in subdirs}
subdir_archs = {subdir.split("-")[1] for subdir in subdirs}
Expand Down

0 comments on commit 1f28151

Please sign in to comment.