Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

I'm adding Python 3.x support to my open-source project and want to add both Py32 and Py33 test environments to my tox.ini. I already have Py26 and Py27 tox environments that work fine and I just installed Python 3.3 from homebrew and got the Py33 tox environment working nicely.

The problem seems to be that homebrew doesn't have an obvious way to install both 3.3 and 3.2 and a somewhat extended Googling did not yield an answer.

What's the best way to do this that won't lead me into trouble further down the road? I'm happy to build from source if that's the best solution, have done that before with good success but don't want to break out the axe if a pocket knife will get the job done :)

I'm running OS X 10.8.4

share|improve this question

1 Answer 1

up vote 1 down vote accepted

The problem seems to be that homebrew doesn't have an obvious way to install both 3.3 and 3.2 and a somewhat extended Googling did not yield an answer.

— Try the following solution to install multiple Python 3.x versions with brew:

  1. Make sure you don't have any Python 3.x installed:

    brew uninstall python3

  2. Then cd into your brew directory, this is /usr/local normally:

    cd /usr/local

  3. Then list all the available Python 3.x versions in Homebrew:

    brew versions python3

  4. Then follow installation instructions for required Python versions from here.

share|improve this answer
    
Sweet! This gets it done :) Now I can use tox to test with all of Python 2.6, 2.7, 3.3, and 3.4 :) –  scanny Jun 23 at 0:27
    
You're welcome. :) –  Dmitry Cheremushkin Jun 23 at 0:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.