mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-17 22:07:47 +00:00
Rename Virtualenv
and PythonPlatform
structs (#2034)
## Summary `PythonPlatform` only exists to format paths to directories within virtual environments based on a root and an OS, so it's now `VirtualenvLayout`. `Virtualenv` is now used for non-virtual environment Pythons, so it's now `PythonEnvironment`.
This commit is contained in:
parent
02703281f0
commit
1ee28f78cd
21 changed files with 101 additions and 121 deletions
|
@ -16,7 +16,7 @@ use uv_build::{SourceBuild, SourceBuildContext};
|
|||
use uv_cache::Cache;
|
||||
use uv_client::{FlatIndex, RegistryClient};
|
||||
use uv_installer::{Downloader, Installer, NoBinary, Plan, Planner, Reinstall, SitePackages};
|
||||
use uv_interpreter::{Interpreter, Virtualenv};
|
||||
use uv_interpreter::{Interpreter, PythonEnvironment};
|
||||
use uv_resolver::{InMemoryIndex, Manifest, Options, Resolver};
|
||||
use uv_traits::{BuildContext, BuildKind, ConfigSettings, InFlight, NoBuild, SetupPyStrategy};
|
||||
|
||||
|
@ -138,7 +138,7 @@ impl<'a> BuildContext for BuildDispatch<'a> {
|
|||
fn install<'data>(
|
||||
&'data self,
|
||||
resolution: &'data Resolution,
|
||||
venv: &'data Virtualenv,
|
||||
venv: &'data PythonEnvironment,
|
||||
) -> impl Future<Output = Result<()>> + Send + 'data {
|
||||
async move {
|
||||
debug!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue