From b4e241323977b584551d30dbbdf169e8db1d6011 Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdx@users.noreply.github.com> Date: Sat, 26 Oct 2024 07:44:42 -0500 Subject: [PATCH] chore: minor tweaks to settings --- schema/mise.json | 1 + settings.toml | 1 + src/config/settings.rs | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/schema/mise.json b/schema/mise.json index 06228e5431..a840a99a47 100644 --- a/schema/mise.json +++ b/schema/mise.json @@ -422,6 +422,7 @@ }, "python_venv_stdlib": { "description": "Prefer to use venv from Python's standard library.", + "deprecated": "Use python.venv_stdlib instead.", "type": "boolean" }, "quiet": { diff --git a/settings.toml b/settings.toml index aaf16450d9..65352fadbb 100644 --- a/settings.toml +++ b/settings.toml @@ -535,6 +535,7 @@ description = "Automatically create virtualenvs for python tools." type = "Bool" optional = true description = "Prefer to use venv from Python's standard library." +deprecated = "Use python.venv_stdlib instead." hide = true [quiet] diff --git a/src/config/settings.rs b/src/config/settings.rs index c82eb583c0..96ccdf3661 100644 --- a/src/config/settings.rs +++ b/src/config/settings.rs @@ -62,7 +62,7 @@ static BASE_SETTINGS: RwLock>> = RwLock::new(None); static CLI_SETTINGS: Mutex> = Mutex::new(None); static DEFAULT_SETTINGS: Lazy = Lazy::new(|| { let mut s = SettingsPartial::empty(); - s.python_default_packages_file = Some(env::HOME.join(".default-python-packages")); + s.python.default_packages_file = Some(env::HOME.join(".default-python-packages")); if let Some("alpine" | "nixos") = env::LINUX_DISTRO.as_ref().map(|s| s.as_str()) { if !cfg!(test) { s.all_compile = Some(true);