Skip to content

Missing find-links #264

@gfrankliu

Description

@gfrankliu

I am trying with below setup:
bazel_dep(name = "rules_uv", version = "0.77.0")

pip_compile(
    name = "requirements.update",
    extra_args = [
        "--quiet",
        "--index-strategy=unsafe-best-match",
    ],
    requirements_in = "//:requirements.in",
    requirements_txt = "//:requirements.txt",
    tags = [
        "local",
        "no-remote-cache",
    ],
)

In the requirements.in, I have

-f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
jax[cpu,cuda12_pip]==0.4.16

Before switching to use rules_uv, the rules_python/pip generated requirements.txt has this line at the top:

--find-links https://storage.googleapis.com/jax-releases/jax_cuda_releases.html

but rules_uv generated requirements.txt misses this line. This makes bazel build complain about No matching distribution found for the jax version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions