-
Notifications
You must be signed in to change notification settings - Fork 422
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
pipx --preinstall ignores dependency version specifier #1377
Labels
bug
Something isn't working
Comments
Thanks for raising this! Apparently the pipx/src/pipx/commands/install.py Line 94 in c44d210
Would you like to submit a quick fix? |
You're welcome. Yes, I'll do that. |
davidpeckham
added a commit
to davidpeckham/pipx
that referenced
this issue
Apr 26, 2024
1 task
chrysle
pushed a commit
that referenced
this issue
Apr 29, 2024
…f latest version (#1379) * pipx --preinstall ignores dependency version specifier #1377 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * parses dependency bofore installing it * removed last commit * removedc call to parse_specifier_for_install * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I use pipx --preinstall to install a specific version of a dependency before installing the main package, pipx installs the latest version of the dependency instead.
How to reproduce
Ask pipx to install a dependency with a specific version before installing the main package:
Notice that pipx tried to install the latest virtualenv (20.26.0). I use a local PyPI mirror that quarantined 20.26.0, so it failed to install.
Expected behavior
I expected pipx to install virtualenv==20.25.3 instead of the latest version.
Note that
pipx install --pip-args='virtualenv==20.25.3' tox --verbose
correctly installs the specified version before installing the main package.The text was updated successfully, but these errors were encountered: