diff --git a/README.md b/README.md index 9abb431..ccaa107 100644 --- a/README.md +++ b/README.md @@ -112,15 +112,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` diff --git a/deps/build.jl b/deps/build.jl index 636a721..7427300 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, string(Sys.ARCH)) diff --git a/src/Conda.jl b/src/Conda.jl index 6320a4b..1f3daea 100644 --- a/src/Conda.jl +++ b/src/Conda.jl @@ -243,7 +243,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