pixi icon indicating copy to clipboard operation
pixi copied to clipboard

`extra-index-urls` from `config.toml` are not passed on pixi init

Open nichtmacho opened this issue 1 year ago • 3 comments

In our docs, we say that extra-index-urls from config.toml will be passed to pixi init when creating one. https://pixi.sh/latest/reference/pixi_configuration/#pypi-config

This doesn't work right now.

Take this as config.toml example

[pypi-config]
extra-index-urls = ["http://localhost:9999/simple/"]

when running pixi init you will receive this

[workspace]
authors = ["nichmor <[email protected]>"]
channels = ["conda-forge"]
name = "pixi_init_test"
platforms = ["osx-arm64"]
version = "0.1.0"

[tasks]

[dependencies]

but we expect to have pypi-options table with extra-index-url

nichtmacho avatar Jun 23 '25 19:06 nichtmacho

@nichmor I tried to reproduce this and notice that if there's an index-url attribute (with extra-index-url as well), both attributes are copied. if it helps...

noamgot avatar Jul 02 '25 12:07 noamgot

@noamgot thanks! good to know!

nichtmacho avatar Jul 02 '25 12:07 nichtmacho

@nichmor I have a fix :) will open a PR

noamgot avatar Jul 02 '25 13:07 noamgot