<#6335 [BUG] Specifying pip_extra_index_url in Ima...
# flyte-github
c
#6335 [BUG] Specifying pip_extra_index_url in ImageSpec has no effect Issue created by cjidboon94 ### Describe the bug I have a few packages that require me to set an extra-index-url. I would expect that providing the
pip_extra_index_url
argument would do the trick. Unfortunately the resulting build.env file that is used to generate the image looks like this:
Copy code
# 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/flyte