Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--pip-args='--constraints https://....' cannot use url based constraints file #1582

Open
mark-hyde opened this issue Dec 2, 2024 · 0 comments

Comments

@mark-hyde
Copy link

Describe the bug
When running:

pipx install foo --pip-args='-c https://example.com/foo/bar/constraints.txt'

...in versions of pipx 1.7.0+ you get an error as follows:

Some possibly relevant errors from pip install:
    ERROR: Could not open requirements file: [Errno 2] No such file or directory: '/home/myusername/https:/example.com/foo/bar/constraints.txt'

...which appears to have prepended my home directory onto the URL where the constraint file would be found.

This works as expected in version 1.6.0 and uses the constraint file from the url location.

My guess would be that it was introduced by #1390

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant