We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.python-version
uv run
1 parent 45894e0 commit 2a8f458Copy full SHA for 2a8f458
crates/uv/src/commands/project/run.rs
@@ -441,8 +441,16 @@ pub(crate) async fn run(
441
.connectivity(connectivity)
442
.native_tls(native_tls);
443
444
+ // (1) Explicit request from user
445
+ let python_request = if let Some(request) = python.as_deref() {
446
+ Some(PythonRequest::parse(request))
447
+ // (2) Request from `.python-version`
448
+ } else {
449
+ request_from_version_file(&CWD).await?
450
+ };
451
+
452
let python = PythonInstallation::find_or_download(
- python.as_deref().map(PythonRequest::parse),
453
+ python_request,
454
// No opt-in is required for system environments, since we are not mutating it.
455
EnvironmentPreference::Any,
456
python_preference,
0 commit comments