mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-28 02:40:11 +00:00
Use link mode for builds, in uv pip compile and for uv venv seed packages (#3016)
Use the user specified link mode for temporary build venvs, too. It seems consistent to respect the user's link mode for all installations we perform
This commit is contained in:
parent
aa855ee729
commit
eded6c9fae
13 changed files with 43 additions and 1 deletions
|
|
@ -35,6 +35,7 @@ pub struct BuildDispatch<'a> {
|
|||
in_flight: &'a InFlight,
|
||||
setup_py: SetupPyStrategy,
|
||||
build_isolation: BuildIsolation<'a>,
|
||||
link_mode: install_wheel_rs::linker::LinkMode,
|
||||
no_build: &'a NoBuild,
|
||||
no_binary: &'a NoBinary,
|
||||
config_settings: &'a ConfigSettings,
|
||||
|
|
@ -56,6 +57,7 @@ impl<'a> BuildDispatch<'a> {
|
|||
setup_py: SetupPyStrategy,
|
||||
config_settings: &'a ConfigSettings,
|
||||
build_isolation: BuildIsolation<'a>,
|
||||
link_mode: install_wheel_rs::linker::LinkMode,
|
||||
no_build: &'a NoBuild,
|
||||
no_binary: &'a NoBinary,
|
||||
) -> Self {
|
||||
|
|
@ -70,6 +72,7 @@ impl<'a> BuildDispatch<'a> {
|
|||
setup_py,
|
||||
config_settings,
|
||||
build_isolation,
|
||||
link_mode,
|
||||
no_build,
|
||||
no_binary,
|
||||
source_build_context: SourceBuildContext::default(),
|
||||
|
|
@ -262,6 +265,7 @@ impl<'a> BuildContext for BuildDispatch<'a> {
|
|||
wheels.iter().map(ToString::to_string).join(", ")
|
||||
);
|
||||
Installer::new(venv)
|
||||
.with_link_mode(self.link_mode)
|
||||
.install(&wheels)
|
||||
.context("Failed to install build dependencies")?;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue