cuddly-jelly-27016
03/12/2025, 3:24 PMpip_extra_index_url argument would do the trick. Unfortunately the resulting build.env file that is used to generate the image looks like this:
# syntax=v1
def build():
base(image="cr.flyte.org/flyteorg/flytekit:py3.10-1.15.0", dev=False)
run(commands=[])
install.python_packages(name=["moviepy>=1.0.3", "google-cloud-firestore", "opencv-python-headless", "my-private-package"])
install.apt_packages(name=[])
runtime.environ(env={'PYTHONPATH': '/root', '_F_IMG_ID': 'us-central1-docker.pkg.dev/xxxx/xxx/flytekit:cAwT1qcd8JN_ynjm42CoGw'}, extra_path=['/root'])
config.pip_index(url="https://pypi.org/simple")
install.python(version="3.8")
As you can see, there is no mention of the pip_extra_index_url.
### Expected behavior
I would expect that the pip_extra_index_url would be added to the build.env and thus allow my private package to be installed correctly.
### Additional context to reproduce
Workaround: Add "--extra-index-url [url]" as an item in the list provided to packages.
### Screenshots
No response
### Are you sure this issue hasn't been raised already?
• Yes
### Have you read the Code of Conduct?
• Yes
flyteorg/flytecuddly-jelly-27016
03/12/2025, 6:32 PM