Skip to content

Pipx install does not honour --index-url when it updates pip/setuptools/wheel #964

@martibutler

Description

@martibutler

Describe the bug
Pipx install does not honour --index-url when it updates pip/setuptools/wheel.

I am calling pipx install with an --index-url <replace_with_artifactory _url> and --pip-args "--index-url <replace_with_artifactory _url>" which correctly installs the given package using the correct index url.

However when I use pipx install with --verbose I can see that underneath the hood there is a call to the following, which does not pass through the --index-url:
python -m pip --disable-pip-version-check install --force-reinstall --upgrade pip setuptools wheel

Are there any config settings that I can fix this with OR can I stop the reinstall of the pip/setuptools/wheel call please?

How to reproduce
Run:
pipx install <whatever_package> --index-url <host_of_artifact_url>

Expected behavior
Should see that it uses the passed in --index-url:
python -m pip --disable-pip-version-check install --index-url <host_of_artifact_url> --force-reinstall --upgrade pip setuptools wheel

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions