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

More precise locking with --prefix option #4506

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

ericmarkmartin
Copy link
Contributor

Summary

In #4085, support was implemented for the --prefix option. When using this option, however, a lock is either acquired on the virtualenv or globally, preventing multiple installs to different --prefixs from the same interpreter.

In this change, acquire the lock on just the prefix in question.

Test Plan

Ran a uv pip install with --prefix and RUST_LOG=trace and observed that the lock was acquired in the prefix.

@zanieb zanieb added the enhancement New feature or request label Jun 25, 2024
Copy link
Member

@zanieb zanieb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing! This seems reasonable to me.

@charliermarsh
Copy link
Member

Thanks! Oversight on my part.

@charliermarsh charliermarsh merged commit 967f136 into astral-sh:main Jun 25, 2024
47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants