Skip to content

Commit

Permalink
Fix for CLS
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodegard committed Mar 8, 2024
1 parent 7539a73 commit 7acbbf2
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions conda_build/environ.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
LinkError,
LockError,
NoPackagesFoundError,
PackagesNotFoundError,
PaddingError,
UnsatisfiableError,
)
Expand Down Expand Up @@ -875,7 +874,10 @@ def package_specs(self):
last_index_ts = 0


def get_package_records(
# NOTE: The function has to retain the "get_install_actions" name for now since
# conda_libmamba_solver.solver.LibMambaSolver._called_from_conda_build
# checks for this name in the call stack explicitly.
def get_install_actions(
prefix: str | os.PathLike | Path,
specs: Iterable[str | MatchSpec],
env, # unused
Expand Down Expand Up @@ -942,11 +944,7 @@ def get_package_records(
with capture():
try:
precs = _install_actions(prefix, index, specs)["LINK"]
except (
NoPackagesFoundError,
UnsatisfiableError,
PackagesNotFoundError,
) as exc:
except (NoPackagesFoundError, UnsatisfiableError) as exc:
raise DependencyNeedsBuildingError(exc, subdir=subdir)
except (
SystemExit,
Expand Down Expand Up @@ -1025,6 +1023,10 @@ def get_package_records(
return precs


get_package_records = get_install_actions
del get_install_actions


def create_env(
prefix,
specs_or_precs,
Expand Down

0 comments on commit 7acbbf2

Please sign in to comment.