The frameworks include a bin directory (at. MacPorts uses /opt/local/Library/Frameworks/amework. The Mac OS X installers install to /Library/Frameworks/amework. Most distributors of Python on Mac OS X use a framework build, each generally using a different root, because it makes it simpler to support multiple versions and to keep all the site packages installed for a particular Python instance together in one place.įor Mac OS X 10.6, Apple supplies a Python 2.6 (rooted at /System/Library/Frameworks/amework and symlinked to /usr/bin/python2.6) as well as a Python 2.5 (for compatibility with Mac OS X 10.5 - that's the /usr/bin/python2.5 you see). Yes, that's the default location within a Python Mac OS X framework build. " /opt/local/Library/Frameworks/amework/Versions/2.6/lib/python2.6/site-packages/ - SRSLY?" I suggest you first understand and be comfortable with how to manage framework installs on Mac OS X before delving into virtualenv. On Mac OS X, though, things are more complicated because the use of framework builds makes it common to encounter multiple instances of even the same major version of Python. Virutalenv is a great tool and is very useful for managing multiple Python instances on most platforms. I've also heard the recommendation to use virtualenv systematically, so what is the link to a good practical introduction? Most Python people I've asked don't use MacPorts, which I don't much like, but the stock Mac Python from. MacPorts has python_select, but it's not overly helpful: reason: chris$ python_select -l I'd like to continue using pip, but would like to have more control or at least understanding of what libraries for which version are getting installed and made accessible from where: I've had problems with installing py.test via pip and only being able to load it from the obsolete 2.6.1 Python, not my current 2.6.5 one. So what are your favourite approaches to organising the code and libraries, and how have you wrestled the Mac into submission? Now I'm preparing to set up 2.7 and 3.2, and I am unhappy with the haphazard state of things. Otherwise, mostly TextMate, and Git for version control.I use pip to install libraries, which end up in some ungodly place (something like /opt/local/Library/Frameworks/amework/Versions/2.6/lib/python2.6/site-packages/ - SRSLY?).Python 2.6.5 installed via MacPorts in /opt/local/bin/.
0 Comments
Leave a Reply. |