uv
ba14f696 - Search in both `purelib` and `platlib` for site-packages population (#2537)

Commit
1 year ago
Search in both `purelib` and `platlib` for site-packages population (#2537) ## 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. Closes https://github.com/astral-sh/uv/issues/2527.
Author
Parents
Loading