Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More flexibility in the miniconda version #205

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/Conda.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down