This is from a macbook pro running 10.6.6 in 64-bit boot mode.
Run the installer and then open terminal (this will invoke the EPD install)!
install from http://downloads.sourceforge.net/wxpython/wxPython2.9-osx-2.9.1.1-cocoa-py2.7.dmg
patch postflight under '/Library/Receipts/wxPython2.9-osx-cocoa-py2.7.pkg/Contents/Resources/postflight':
8c8
< for dir in /usr/bin /usr/local/bin /Library/Frameworks/Python.framework/Versions/2.7/bin /System/Library/Frameworks/Python.framework/Versions/2.7/bin /Library/Frameworks/EPD64.framework/Versions/7.0/bin; do
---
> for dir in /usr/bin /usr/local/bin /Library/Frameworks/Python.framework/Versions/2.7/bin /System/Library/Frameworks/Python.framework/Versions/2.7/bin; do
29c29
< for dir in /Library/Python/2.7/site-packages /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages /Library/Frameworks/EPD64.framework/Versions/7.0/lib/python2.7/site-packages; do
---
> for dir in /Library/Python/2.7/site-packages /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages; do
then re-execute:
sudo sh /Library/Receipts/wxPython2.9-osx-cocoa-py2.7.pkg/Contents/Resources/postflight
Download and install Qt x64 from http://get.qt.nokia.com/qt/source/qt-mac-opensource-4.7.1.dmg
download sip:
curl -O http://www.riverbankcomputing.co.uk/static/Downloads/sip4/sip-4.12.3.tar.gz
patch siputils.py:
1437c1437
< if "Python.framework" not in dl:
---
> if not any([".framework" in value for value in dl]):
install sip:
python configure.py
make
make install
download pyqt:
curl -O http://www.riverbankcomputing.co.uk/static/Downloads/PyQt4/PyQt-mac-gpl-4.8.4.tar.gz
install pyqt:
python configure.py
make
make install
download qscintilla:
curl -O http://www.riverbankcomputing.co.uk/static/Downloads/QScintilla2/QScintilla-gpl-2.5.1.tar.gz
install qscintilla:
cd Qt4
qmake qscintilla.pro -spec macx-g++
make
make install
cd ../Python
python configure.py
make
make install
This section assumes you know how to use CMake (cmake.org) and compile VTK using cmake and make.
download from http://www.vtk.org/files/release/5.6/vtk-5.6.1.tar.gz
configure VTK:
BUILD_SHARED_LIBS = ON
CMAKE_BUILD_TYPE = Release
VTK_USE_QT = ON
VTK_WRAP_PYTHON = ON
toggle to advanced mode (press t inside ccmake). on osx ccmake picks up the default system python library.:
PYTHON_LIBRARY to /Library/Frameworks/EPD64.framework/Versions/7.0/Python
compile and install. by default the python wrappers will be installed in /usr/local/lib/python2.7/site-packages/ so re-execute the python install:
make
make install
cd "Wrapping/Python" && /Library/Frameworks/EPD64.framework/Versions/Current/bin/python2.7 setup.py install
see ets download instructions at (needs git): http://code.enthought.com/source/ :
python ets.py setup install
install virtualenvwrapper http://www.doughellmann.com/projects/virtualenvwrapper/ and then uninstall virtualenv:
easy_install virtualenvwrapper
pip uninstall virtualenv
download virtualenv source from bitbucket (http://bitbucket.org/ianb/virtualenv)
patch virtualenv.py:
872,881c872,885
< if 'Python.framework' in prefix:
< logger.debug('MacOSX Python framework detected')
<
< # Make sure we use the the embedded interpreter inside
< # the framework, even if sys.executable points to
< # the stub executable in ${sys.prefix}/bin
< # See http://groups.google.com/group/python-virtualenv/
< # browse_thread/thread/17cab2f85da75951
< original_python = os.path.join(
< prefix, 'Resources/Python.app/Contents/MacOS/Python')
---
> if '.framework' in prefix:
> if 'Python.framework' in prefix:
> logger.debug('MacOSX Python framework detected')
>
> # Make sure we use the the embedded interpreter inside
> # the framework, even if sys.executable points to
> # the stub executable in ${sys.prefix}/bin
> # See http://groups.google.com/group/python-virtualenv/
> # browse_thread/thread/17cab2f85da75951
> original_python = os.path.join(
> prefix, 'Resources/Python.app/Contents/MacOS/Python')
> if 'EPD' in prefix:
> logger.debug('EPD framework detected')
> original_python = os.path.join(prefix, 'bin/python')
install:
python setup.py install