sparse-carpenter-66912
08/07/2025, 9:10 AMExternal sources are not supported in pyproject.toml
when I want to use Union's builder and I have pytorch in my pyproject.toml defined with tool.uv.index
jolly-florist-66728
08/07/2025, 9:10 AMjolly-florist-66728
08/07/2025, 9:11 AMExternal sources are not supported in pyproject.toml
occurs because Flytekit's ImageSpec builder (Union's builder) does not support the use of external package sources (such as custom indexes defined under tool.uv.index
in pyproject.toml
). The builder expects dependencies to be resolvable from standard sources and does not handle custom or external indexes specified in this way. This limitation is not explicitly documented in the main Flyte docs, but is implied by the error and the default builder's handling of lock files and requirements.
To resolve this, use only standard PyPI dependencies in your pyproject.toml
or requirements file, or specify extra indexes using the pip_index
or pip_extra_index_url
parameters in your ImageSpec, rather than through tool.uv.index
in pyproject.toml
(source). Would you like more detail on how to configure your dependencies for Union's builder?
Sources:
- default builder's handling of lock files and requirements 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.