From edfd5594218da3a59a6507b20901e0eb17dbd990 Mon Sep 17 00:00:00 2001 From: szcf-weiya Date: Sun, 9 Jul 2023 15:51:59 -0400 Subject: [PATCH 1/5] disable auto_update_conda --- deps/build.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deps/build.jl b/deps/build.jl index 636a721..fecec2e 100644 --- a/deps/build.jl +++ b/deps/build.jl @@ -103,6 +103,8 @@ const CONDA_EXE = "$(escape_string(CONDA_EXE))" mkpath(condadir) mkpath(ROOTENV) +write("$ROOTENV/condarc-julia.yml", "auto_update_conda: false") + for depsfile in ("deps.jl", condadeps) if !isfile(depsfile) || read(depsfile, String) != deps write(depsfile, deps) From b85c6743f8b83a703cfc5c8db690ef3946796c7b Mon Sep 17 00:00:00 2001 From: szcf-weiya Date: Mon, 21 Aug 2023 11:29:49 -0400 Subject: [PATCH 2/5] revert write file in build step --- deps/build.jl | 2 -- 1 file changed, 2 deletions(-) diff --git a/deps/build.jl b/deps/build.jl index fecec2e..636a721 100644 --- a/deps/build.jl +++ b/deps/build.jl @@ -103,8 +103,6 @@ const CONDA_EXE = "$(escape_string(CONDA_EXE))" mkpath(condadir) mkpath(ROOTENV) -write("$ROOTENV/condarc-julia.yml", "auto_update_conda: false") - for depsfile in ("deps.jl", condadeps) if !isfile(depsfile) || read(depsfile, String) != deps write(depsfile, deps) From 21b2b83162ab23fd2b08538c6e4187cef8c56e20 Mon Sep 17 00:00:00 2001 From: szcf-weiya Date: Mon, 21 Aug 2023 11:31:22 -0400 Subject: [PATCH 3/5] config after installing conda --- src/Conda.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Conda.jl b/src/Conda.jl index 00797e7..6144f48 100644 --- a/src/Conda.jl +++ b/src/Conda.jl @@ -227,6 +227,7 @@ https://github.com/JuliaPy/Conda.jl. if Sys.iswindows() run(Cmd(`$installer /S --no-shortcuts /NoRegistry=1 /AddToPath=0 /RegisterPython=0 /D=$PREFIX`, windows_verbatim=true)) end + write("$PREFIX/condarc-julia.yml", "auto_update_conda: false") end if !isdir(prefix(env)) create(env) From 49574beedfafc6358efa31bace7a544f6faac993 Mon Sep 17 00:00:00 2001 From: szcf-weiya Date: Mon, 21 Aug 2023 11:38:49 -0400 Subject: [PATCH 4/5] use sys condarc either .condarc or condarc-julia.yml should work, but it might be more clear to use .condarc in ROOTENV --- src/Conda.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Conda.jl b/src/Conda.jl index 6144f48..9b7559d 100644 --- a/src/Conda.jl +++ b/src/Conda.jl @@ -227,7 +227,7 @@ https://github.com/JuliaPy/Conda.jl. if Sys.iswindows() run(Cmd(`$installer /S --no-shortcuts /NoRegistry=1 /AddToPath=0 /RegisterPython=0 /D=$PREFIX`, windows_verbatim=true)) end - write("$PREFIX/condarc-julia.yml", "auto_update_conda: false") + write("$PREFIX/.condarc", "auto_update_conda: false") end if !isdir(prefix(env)) create(env) From fed4dbd369191e8d02315c514ae73409af967e51 Mon Sep 17 00:00:00 2001 From: szcf-weiya Date: Mon, 21 Aug 2023 12:00:37 -0400 Subject: [PATCH 5/5] Revert "use sys condarc" This reverts commit 49574beedfafc6358efa31bace7a544f6faac993. --- src/Conda.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Conda.jl b/src/Conda.jl index 9b7559d..6144f48 100644 --- a/src/Conda.jl +++ b/src/Conda.jl @@ -227,7 +227,7 @@ https://github.com/JuliaPy/Conda.jl. if Sys.iswindows() run(Cmd(`$installer /S --no-shortcuts /NoRegistry=1 /AddToPath=0 /RegisterPython=0 /D=$PREFIX`, windows_verbatim=true)) end - write("$PREFIX/.condarc", "auto_update_conda: false") + write("$PREFIX/condarc-julia.yml", "auto_update_conda: false") end if !isdir(prefix(env)) create(env)