Skip to content

Commit

Permalink
Don't fail when no wheel/sdist is available for a platform
Browse files Browse the repository at this point in the history
  • Loading branch information
jvolkman committed Aug 25, 2023
1 parent 91e10c1 commit 757033f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pycross/private/tools/bzl_lock_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,10 @@ def get_package_sources_by_environment(
package.name, environment.target_python
)
compute_result = candidate_evaluator.compute_best_candidate(candidates)
environment_sources[environment.name] = candidates_to_package_sources[
compute_result.best_candidate
]
if compute_result.best_candidate:
environment_sources[environment.name] = candidates_to_package_sources[
compute_result.best_candidate
]

return environment_sources

Expand Down

0 comments on commit 757033f

Please sign in to comment.