#Private PyPi repo

1 messages · Page 1 of 1 (latest)

manic timber
#

I'm updating my dagger/pyproject.toml with a dependency from a private repo. Is there a way to make sure that PIP_EXTRA_INDEX_URL is set as an environment variable so dagger can find it where it needs to install?

flint leaf
#

uv supports that with config in pyproject.toml. Have you disabled uv explicitly?

manic timber
#

i didnt realise we're using uv

#

no i haven't

#

can you point me in the right direction?

flint leaf
#

Ok, so you're actually using uv pip install. I need a minute to lookup the config here.

#

Try extra-index-url:

[tool.uv.pip]
extra-index-url = ["https://download.pytorch.org/whl/cpu"]
manic timber
#

this works. Thanks again for your help

#

dont suppose you have any tricks for getting my password in via an env variable or something? I don't really want to check it into source control

flint leaf
#

Yeah, that's a known issue. Not sure if there's a fix for that yet. \cc @vestal iron @past ice

#

Basically using language dependencies from private sources.