From f210c9bc2c7cc0ebc8ca01ae46df0c2476d4bc4a Mon Sep 17 00:00:00 2001 From: mstriebs <52500147+mstriebs@users.noreply.github.com> Date: Wed, 25 Aug 2021 16:19:05 +0200 Subject: [PATCH 1/3] Update README.md Setting the miniconda-version more flexible --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 098a13c..2820ce9 100644 --- a/README.md +++ b/README.md @@ -100,15 +100,18 @@ julia> Conda.pip("uninstall", ["somepackage1", "somepackage2]) If the uninstall command is to be used noninteractively, one can use `"uninstall -y"` to answer yes to the prompts. -## Using Python 2 -By default, the Conda.jl package [installs Python 3]((https://conda.io/docs/py2or3.htm)), +## Using older Python version +By default, the Conda.jl package [installs Python 3]((https://conda.io/docs/py2or3.htm)) in its latest release, and this version of Python is used for all Python dependencies. If you want to -use Python 2 instead, set `CONDA_JL_VERSION` to `"2"` *prior to installing Conda*. +use Python 2 instead, set `CONDA_JL_VERSION` to `"2-latest"` *prior to installing Conda*. (This only needs to be done once; Conda subsequently remembers the version setting.) +If you want to use a different miniconda-version please look at the [repository](https://repo.anaconda.com/miniconda/) and select +the specified number. For example "3-4.7.12-1" to install version 4.7.12-1 of miniconda3. + Once you have installed Conda and run its Miniconda installer, the Python version cannot be changed without deleting your existing Miniconda installation. -If you set `ENV["CONDA_JL_VERSION"]="2"` and run `Pkg.build("Conda")`, it will +If you set `ENV["CONDA_JL_VERSION"]="2-latest"` and run `Pkg.build("Conda")`, it will tell you how to delete your existing Miniconda installation if needed. Most users will not need to use Python 2. This is provided primarily for developers wishing to test their packages for both Python 2 and Python, e.g. by setting the `CONDA_JL_VERSION` From f9f5b3b300bc2b49fea556e658997158c1d45f7c Mon Sep 17 00:00:00 2001 From: mstriebs <52500147+mstriebs@users.noreply.github.com> Date: Wed, 25 Aug 2021 16:21:25 +0200 Subject: [PATCH 2/3] Update build.jl adjusted build.jl --- deps/build.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/build.jl b/deps/build.jl index 397c27e..647c29c 100644 --- a/deps/build.jl +++ b/deps/build.jl @@ -8,7 +8,7 @@ module DefaultDeps include(Main.condadeps) end if !isdefined(@__MODULE__, :MINICONDA_VERSION) - const MINICONDA_VERSION = "3" + const MINICONDA_VERSION = "3-latest" end if !isdefined(@__MODULE__, :ROOTENV) const ROOTENV = joinpath(Main.condadir, MINICONDA_VERSION) From 422e56d0d0de301705e8b44b928e9b8bd4f3a356 Mon Sep 17 00:00:00 2001 From: mstriebs <52500147+mstriebs@users.noreply.github.com> Date: Wed, 25 Aug 2021 16:21:56 +0200 Subject: [PATCH 3/3] Update Conda.jl final adjustment --- src/Conda.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Conda.jl b/src/Conda.jl index d7881bc..bf3add6 100644 --- a/src/Conda.jl +++ b/src/Conda.jl @@ -174,7 +174,7 @@ function _installer_url() if !(conda_platform in MINICONDA_PLATFORMS) error("Unsupported miniconda platform: $(conda_platform)") else - res = "https://repo.continuum.io/miniconda/Miniconda$(MINICONDA_VERSION)-latest-" + res = "https://repo.continuum.io/miniconda/Miniconda$(MINICONDA_VERSION)-" end end