Treat non-existent site-packages as empty (#2413)

## Summary

It turns out this doesn't need to exist until something has been
installed into it. See, e.g., https://github.com/astral-sh/uv/pull/2402.

Closes https://github.com/astral-sh/uv/issues/2404.
This commit is contained in:
Charlie Marsh 2024-03-13 08:10:34 -07:00 committed by GitHub
parent bfddd729b7
commit cca9de13e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 47 additions and 7 deletions

View file

@ -182,8 +182,7 @@ impl<'a> BuildContext for BuildDispatch<'a> {
let tags = self.interpreter.tags()?;
// Determine the set of installed packages.
let site_packages =
SitePackages::from_executable(venv).context("Failed to list installed packages")?;
let site_packages = SitePackages::from_executable(venv)?;
let Plan {
local,