I'm developing python code that needs to run under 2.6+ and 3+ (I'm using python-modernize to make the code compatible). The code under development has no C extensions or 3rd party Python package dependencies except for pexpect3.3 which is used solely for testing.
How can I install python 3.4 on OS X 10.9.5 for the sole purpose of testing the code under development, i.e. I want to be able to run 'python3 myscript.py' but otherwise be sure that python3 will not be invoked as 'python' and without compromising the Enthought Canopy python2.7 environment that's my day-to-day standard for all other python work?
I'm aware, from other SO answers, e.g. Python 3 in Enthought Canopy, that Canopy doesn't support 3.x, so I'm not trying to make it work in that environment. I just need 3.x for some command line testing.