Respect [pip] settings for uv pip check (#15514)
## Summary Oversight from #15486.
This commit is contained in:
@@ -916,8 +916,8 @@ async fn run(mut cli: Cli) -> Result<ExitStatus> {
|
|||||||
commands::pip_check(
|
commands::pip_check(
|
||||||
args.settings.python.as_deref(),
|
args.settings.python.as_deref(),
|
||||||
args.settings.system,
|
args.settings.system,
|
||||||
args.python_version.as_ref(),
|
args.settings.python_version.as_ref(),
|
||||||
args.python_platform.as_ref(),
|
args.settings.python_platform.as_ref(),
|
||||||
&cache,
|
&cache,
|
||||||
printer,
|
printer,
|
||||||
globals.preview,
|
globals.preview,
|
||||||
|
|||||||
@@ -2589,8 +2589,6 @@ impl PipTreeSettings {
|
|||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub(crate) struct PipCheckSettings {
|
pub(crate) struct PipCheckSettings {
|
||||||
pub(crate) settings: PipSettings,
|
pub(crate) settings: PipSettings,
|
||||||
pub(crate) python_version: Option<PythonVersion>,
|
|
||||||
pub(crate) python_platform: Option<TargetTriple>,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl PipCheckSettings {
|
impl PipCheckSettings {
|
||||||
@@ -2609,12 +2607,12 @@ impl PipCheckSettings {
|
|||||||
PipOptions {
|
PipOptions {
|
||||||
python: python.and_then(Maybe::into_option),
|
python: python.and_then(Maybe::into_option),
|
||||||
system: flag(system, no_system, "system"),
|
system: flag(system, no_system, "system"),
|
||||||
|
python_version,
|
||||||
|
python_platform,
|
||||||
..PipOptions::default()
|
..PipOptions::default()
|
||||||
},
|
},
|
||||||
filesystem,
|
filesystem,
|
||||||
),
|
),
|
||||||
python_version,
|
|
||||||
python_platform,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user