-
-
Save jackton1/9b0f2b5e471b7fbf5a385736f200cda3 to your computer and use it in GitHub Desktop.
Revisions
-
Bouke revised this gist
Sep 28, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -25,4 +25,4 @@ This will create a file `.python-version`, so pyenv will remember the Python ver See also [Using tox and pyenv for testing and development][1] for a more detailed how-to. [1]: http://www.holger-peters.de/using-pyenv-and-tox.html -
Bouke revised this gist
Sep 18, 2015 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -21,4 +21,8 @@ Then, when you need a certain version: pyenv local 3.5.0 This will create a file `.python-version`, so pyenv will remember the Python version for this directory. This works also nice with `tox`, as you can activate many Python version at once. See the pyenv documentation for more information. See also [Using tox and pyenv for testing and development][1] for a more detailed how-to. [1]: http://tbb.co/using-tox-and-pyenv-for-testing-and-development/ -
Bouke revised this gist
Sep 18, 2015 . 1 changed file with 24 additions and 60 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,60 +1,24 @@ Previous versions used homebrew to install the various versions. As suggested in the comments, it's better to use `pyenv` instead. If you are looking for the previous version of this document, see the revision history. $ brew update $ brew install pyenv $ pyenv install 3.5.0 $ pyenv install 3.4.3 $ pyenv install 3.3.6 $ pyenv install 3.2.6 $ pyenv install 2.7.10 $ pyenv install 2.6.9 $ pyenv versions * system (set by /Users/bouke/.pyenv/version) 2.6.9 2.7.10 3.2.6 3.3.6 3.4.3 3.5.0 Then, when you need a certain version: pyenv local 3.5.0 This will create a file `.python-version`, so pyenv will remember the Python version for this directory. This works also nice with `tox`, as you can activate many Python version at once. See the pyenv documentation for more information. -
Bouke revised this gist
Apr 7, 2015 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ **The `brew versions` command has been removed. The instructions are no longer valid.** # Prerequisits Make sure you don't have any Python 3.x installed: -
Bouke revised this gist
Apr 30, 2014 . 1 changed file with 9 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -31,7 +31,15 @@ This formula requires X11, but if you don't have/want it, do not dispair. In `Li depends_on :x11 # tk.h includes X11/Xlib.h and X11/X.h Also, sqlite didn't work on my machine, so replace this line: depends_on 'sqlite' => :optional # Prefer over OS X's older version By this: depends_on 'sqlite' => :build Then install as usual: $ brew install python3 $ brew unlink python3 -
Bouke revised this gist
Apr 24, 2014 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,6 +12,10 @@ Then list all the available Python 3.x versions in Homebrew: $ brew versions python3 # Python 3.0 *Sorry, not available with Homebrew.* # Python 3.1 $ git checkout 0476235 Library/Formula/python3.rb -
Bouke revised this gist
Apr 24, 2014 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -27,6 +27,8 @@ This formula requires X11, but if you don't have/want it, do not dispair. In `Li depends_on :x11 # tk.h includes X11/Xlib.h and X11/X.h Then install business as usual: $ brew install python3 $ brew unlink python3 $ ln -s ../Cellar/python3/3.2.3/bin/python3.2 bin/python3.2 -
Bouke created this gist
Apr 24, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,44 @@ # Prerequisits Make sure you don't have any Python 3.x installed: $ brew uninstall python3 Then `cd` into your brew directory, this is `/usr/local` normally: $ cd /usr/local Then list all the available Python 3.x versions in Homebrew: $ brew versions python3 # Python 3.1 $ git checkout 0476235 Library/Formula/python3.rb $ brew install python3 $ brew unlink python3 $ ln -s ../Cellar/python3/3.1.3/bin/python3.1 bin/python3.1 # Python 3.2 $ git checkout f33f3ea Library/Formula/python3.rb This formula requires X11, but if you don't have/want it, do not dispair. In `Library/Formula/python3.rb` on line 44, remove this line: depends_on :x11 # tk.h includes X11/Xlib.h and X11/X.h $ brew install python3 $ brew unlink python3 $ ln -s ../Cellar/python3/3.2.3/bin/python3.2 bin/python3.2 # Python 3.3 $ git checkout fedb343 Library/Formula/python3.rb $ brew install python3 $ brew unlink python3 $ ln -s ../Cellar/python3/3.3.5/bin/python3.3 bin/python3.3 # Python 3.4 $ git checkout HEAD Library/Formula/python3.rb $ brew install python3