mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-30 11:37:24 +00:00
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:
parent
bfddd729b7
commit
cca9de13e2
5 changed files with 47 additions and 7 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue