Skip to content

Can't find matching wheels with the --find-links flag #6082

@santacodes

Description

@santacodes

Overview

OS - Linux
uv version - 0.2.36

I run into this error while trying to install a package from a wheel from an external link with the --find-links flag while trying to install a specific version of iree-compiler with uv defined in my pyproject.toml as -

[project.optional-dependencies]
iree = [
    # must be pip installed with --find-links=https://iree.dev/pip-release-links.html
    "iree-compiler==20240507.886",  # see IREE compatibility notes in noxfile.py
]

Steps to reproduce

When I run uv pip install .[iree] --find-links https://iree.dev/pip-release-links.html --verbose, this is what I get -

DEBUG Using request timeout of 30s
DEBUG Found fresh response for: https://iree.dev/pip-release-links.html
WARN No packages found in `--find-links` entry: https://iree.dev/pip-release-links.html
DEBUG Found fresh response for: https://iree.dev/pip-release-links.html
WARN No packages found in `--find-links` entry: https://iree.dev/pip-release-links.html
  × No solution found when resolving dependencies:
  ╰─▶ Because there is no version of iree-compiler==20240507.886 and pybamm[iree]==24.5 depends on iree-compiler==20240507.886, we can conclude that
      pybamm[iree]==24.5 cannot be used.
      And because only pybamm[iree]==24.5 is available and you require pybamm[iree], we can conclude that the requirements are unsatisfiable.

The package wheels of the iree-compiler==20240507.886 are present in that link and work with pip, but not with uv.

When I run the same command with pip (pip install .[iree] --find-links https://iree.dev/pip-release-links.html), it successfully downloads and builds the wheels for my package.

Looking in links: https://iree.dev/pip-release-links.html
Processing /home
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting iree-compiler==20240507.886 (from pybamm==24.5)
  Downloading https://github.com/iree-org/iree/releases/download/candidate-20240507.886/iree_compiler-20240507.886-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (64.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 64.5/64.5 MB 6.3 MB/s eta 0:00:00

Metadata

Metadata

Assignees

Labels

compatibilityCompatibility with a specification or another toolexternalThe problem is with another package or dependency (not uv)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions