If you are using poetry you can add something to the pyproject.toml to handle the indexes, though I am not sure if they are ordered or not
[[tool.poetry.source]] name = "my-pypi" url = "https://my-pypi-index.wherever" secondary = true
[[tool.poetry.source]] name = "my-pypi" url = "https://my-pypi-index.wherever" secondary = true