Skip to content

Commit

Permalink
do not use constrains in run
Browse files Browse the repository at this point in the history
  • Loading branch information
beckermr authored May 7, 2024
1 parent 4601b45 commit 4b87f9a
Showing 1 changed file with 6 additions and 30 deletions.
36 changes: 6 additions & 30 deletions conda_forge_feedstock_check_solvable/mamba_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -1039,37 +1039,19 @@ def _is_recipe_solvable_on_platform(
errors.append(_err)

if m.is_cross:
host_req = list(
set(host_req) | build_rx["strong"] | build_rx["strong_constrains"]
)
host_req = list(set(host_req) | build_rx["strong"])
if not (m.noarch or m.noarch_python):
run_req = list(
set(run_req)
| build_rx["strong"]
| build_rx["strong_constrains"]
)
run_req = list(set(run_req) | build_rx["strong"])
else:
if m.noarch or m.noarch_python:
if m.build_is_host:
run_req = list(set(run_req) | build_rx["noarch"])
else:
run_req = list(
set(run_req)
| build_rx["strong"]
| build_rx["strong_constrains"]
)
run_req = list(set(run_req) | build_rx["strong"])
if m.build_is_host:
run_req = list(
set(run_req)
| build_rx["weak"]
| build_rx["weak_constrains"]
)
run_req = list(set(run_req) | build_rx["weak"])
else:
host_req = list(
set(host_req)
| build_rx["strong"]
| build_rx["strong_constrains"]
)
host_req = list(set(host_req) | build_rx["strong"])

if host_req:
host_req = _clean_reqs(host_req, outnames)
Expand All @@ -1087,13 +1069,7 @@ def _is_recipe_solvable_on_platform(
if m.noarch or m.noarch_python:
run_req = list(set(run_req) | host_rx["noarch"])
else:
run_req = list(
set(run_req)
| host_rx["weak"]
| host_rx["weak_constrains"]
| host_rx["strong"]
| host_rx["strong_constrains"]
)
run_req = list(set(run_req) | host_rx["weak"])

if run_req:
run_req = apply_pins(run_req, host_req or [], build_req or [], outnames, m)
Expand Down

0 comments on commit 4b87f9a

Please sign in to comment.