diff --git a/crates/uv-python/src/environment.rs b/crates/uv-python/src/environment.rs index 45d7d3d5373a..3449fc5e7532 100644 --- a/crates/uv-python/src/environment.rs +++ b/crates/uv-python/src/environment.rs @@ -144,16 +144,6 @@ impl PythonEnvironment { }))) } - /// Create a [`PythonEnvironment`] from an existing [`Interpreter`] with relocatable paths. - #[must_use] - pub fn with_relocatable(self) -> Self { - let inner = Arc::unwrap_or_clone(self.0); - Self(Arc::new(PythonEnvironmentShared { - interpreter: inner.interpreter.with_relocatable(), - ..inner - })) - } - /// Returns the root (i.e., `prefix`) of the Python interpreter. pub fn root(&self) -> &Path { &self.0.root diff --git a/crates/uv-python/src/interpreter.rs b/crates/uv-python/src/interpreter.rs index 60355c6f81fb..f98b0040aa04 100644 --- a/crates/uv-python/src/interpreter.rs +++ b/crates/uv-python/src/interpreter.rs @@ -45,7 +45,6 @@ pub struct Interpreter { prefix: Option, pointer_size: PointerSize, gil_disabled: bool, - relocatable: bool, } impl Interpreter { @@ -76,7 +75,6 @@ impl Interpreter { tags: OnceLock::new(), target: None, prefix: None, - relocatable: false, }) } @@ -111,15 +109,6 @@ impl Interpreter { }) } - /// Return a new [`Interpreter`] that should be treated as relocatable. - #[must_use] - pub fn with_relocatable(self) -> Self { - Self { - relocatable: true, - ..self - } - } - /// Return the [`Interpreter`] for the base executable, if it's available. /// /// If no such base executable is available, or if the base executable is the same as the @@ -437,7 +426,6 @@ impl Interpreter { }, } }, - relocatable: self.relocatable, } } diff --git a/crates/uv/src/commands/project/environment.rs b/crates/uv/src/commands/project/environment.rs index 13f16190bd34..eb8a8b35212a 100644 --- a/crates/uv/src/commands/project/environment.rs +++ b/crates/uv/src/commands/project/environment.rs @@ -101,10 +101,10 @@ impl CachedEnvironment { uv_virtualenv::Prompt::None, false, false, - false, + true, )?; sync_environment( - venv.with_relocatable(), + venv, &resolution, settings.as_ref().into(), state,