Skip to content

Commit bbbf11b

Browse files
authored
change default to Python 3 (#108)
1 parent e30ec6a commit bbbf11b

File tree

2 files changed

+14
-17
lines changed

2 files changed

+14
-17
lines changed

README.md

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
[![Build Status -- OS X and Linux](https://travis-ci.org/JuliaPy/Conda.jl.svg?branch=master)](https://travis-ci.org/JuliaPy/Conda.jl)
44
[![Build status -- Windows](https://ci.appveyor.com/api/projects/status/edlxohso05re3v40/branch/master?svg=true)](https://ci.appveyor.com/project/StevenGJohnson/conda-jl)
55

6-
76
This package allows one to use [conda](http://conda.pydata.org/) as a binary
87
provider for Julia. While other binary providers like
98
[Homebrew.jl](https://github.com/JuliaLang/Homebrew.jl),
@@ -121,21 +120,19 @@ conda create -n conda_jl python conda
121120
export CONDA_JL_HOME="/path/to/miniconda/envs/conda_jl"
122121
julia -e 'Pkg.build("Conda")'
123122
```
124-
## Miniconda Python Version
125-
There are two versions of Miniconda, one for Python 2, and one for Python 3.
126-
This controls the initial version of python uses in the setup of Conda itself,
127-
and thus the default version of python for all dependancies.
128-
You can change the version by setting the enviroment variable `CONDA_JL_VERSION` to `"3"`, prior to installing the Conda.jl package.
129-
The Miniconda version used in an existing conda enviroment can not be changed.
130-
Except for the creation of the initial `ROOTENV`, they are identical up to upgrading the version of python, and all that depend upon it.
131-
See [the Conda documentation for more information](https://conda.io/docs/py2or3.htm).
132-
133-
134-
Normal users will not normally need to touch the miniconda verion setting.
135-
This is provided primary for package developers wishing to test their packages
136-
with python dependencies, to ensure it works for both Python 2 and Python 3.
137-
See docs for defining enviroment variables in [TravisCI](https://docs.travis-ci.com/user/environment-variables/), and [AppVeyor](https://www.appveyor.com/docs/build-configuration/#environment-variables).
138-
123+
## Using Python 2
124+
By default, the Conda.jl package [installs Python 3]((https://conda.io/docs/py2or3.htm)),
125+
and this version of Python is used for all Python dependencies. If you want to
126+
use Python 2 instead, set `CONDA_JL_VERSION` to `"2"` *prior to installing Conda*.
127+
(This only needs to be done once; Conda subsequently remembers the version setting.)
128+
129+
Once you have installed Conda and run its Miniconda installer, the Python version
130+
cannot be changed without deleting your existing Miniconda installation.
131+
If you set `ENV["CONDA_JL_VERSION"]="2"` and run `Pkg.build("Conda")`, it will
132+
tell you how to delete your existing Miniconda installation if needed.
133+
134+
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`
135+
variable on [TravisCI](https://docs.travis-ci.com/user/environment-variables/) and/or [AppVeyor](https://www.appveyor.com/docs/build-configuration/#environment-variables).
139136

140137

141138
## Bugs and suggestions

deps/build.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module DefaultDeps
88
const ROOTENV = abspath(dirname(@__FILE__), "usr")
99
end
1010
if !isdefined(:MINICONDA_VERSION)
11-
const MINICONDA_VERSION = "2"
11+
const MINICONDA_VERSION = "3"
1212
end
1313
end
1414

0 commit comments

Comments
 (0)