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

Search in both purelib and platlib for site-packages population #2537

Merged
merged 2 commits into from
Mar 19, 2024

Conversation

charliermarsh
Copy link
Member

@charliermarsh charliermarsh commented Mar 19, 2024

Summary

In reality, there's no such thing as the site-packages directory for a given virtualenv. Rather, Python defines both purelib and platlib, where the former is for pure-Python packages and the latter is for packages that contain native code. These are almost always set to the same thing... but they don't have to be, and in fact of Fedora they are not.

This PR changes the site_packages method to return an iterator of directories.

Note that the system tests introduced in #2535, which failed on the PR itself, now pass.

Closes #2527.

@charliermarsh charliermarsh added the bug Something isn't working label Mar 19, 2024
@charliermarsh charliermarsh marked this pull request as ready for review March 19, 2024 02:53
Revert crates

Revert "Revert crates"

This reverts commit 1cd90c6.
Base automatically changed from charlie/fedora to main March 19, 2024 03:03
@charliermarsh charliermarsh enabled auto-merge (squash) March 19, 2024 03:05
@charliermarsh charliermarsh merged commit ba14f69 into main Mar 19, 2024
31 checks passed
@charliermarsh charliermarsh deleted the charlie/site-packages branch March 19, 2024 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

uv ignores packages installed in lib64/
1 participant