Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion pip/flatpak-pip-generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,12 @@ def collect(compat_fn) -> list[dict]:
(f for f in get_pypi_files() if is_universal(f["filename"])),
None,
)
if pypi_universal:

# Only take a universal wheel if there are no platform-specific ones: the
# platform-specific ones likely contain precompiled fast-paths. In that
# case we'll either want the platform-specific wheels or a source build,
# depending on user preference.
if pypi_universal and not any(is_platform_wheel(f["filename"]) for f in get_pypi_files()):
return [make_source(pypi_universal)], []

if not is_preferred:
Expand Down
Loading