Skip to content

Commit

Permalink
Revert "regex-match entire file instead of per line"
Browse files Browse the repository at this point in the history
This reverts commit 27bab56.
  • Loading branch information
h-vetinari committed Jan 22, 2025
1 parent 945e256 commit 4054e09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion conda_smithy/configure_feedstock.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,8 @@ def _collapse_subpackage_variants(
# either v0 or v1 recipe must exist; no fall-back if missing
with open(recipe_path) as f:
meta_text = f.read()
if re.match(r".*\{\{ python_min \}\}", meta_text):
pm_pat = re.compile(r".*\{\{ python_min \}\}")
if any(pm_pat.match(x) for x in meta_text.splitlines()):
all_used_vars.add("python_min")

# on osx, merge MACOSX_DEPLOYMENT_TARGET & c_stdlib_version to max of either; see #1884
Expand Down

0 comments on commit 4054e09

Please sign in to comment.