-
Notifications
You must be signed in to change notification settings - Fork 134
Mac OSX Build
Ethan White edited this page Jan 2, 2014
·
7 revisions
Notes on successfully building the Retriever on OSX.
I just successfully built the Retriever on OSX 10.9 using the following process. The notes are going to be comprehensive for the moment since we've had difficulty with this in the past. I am also keeping the exact order even though it probably doesn't matter.
- Install Homebrew
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
- Install Xcode
- Install Python
brew install python
- Install the Xcode command line tools
xcode-select --install
- Install wxPython using Homebrew
brew install --python wxmac --devel
. NOTE: This takes a very long time - Make brew's Python the default
echo export PATH='usr/local/bin:$PATH' >> ~/.bash_profile
- Install xlrd via pip
pip install xlrd
. Nosudo
is necessary since we're using brew. - Install py2app via pip
pip install py2app
. - Clone the Retriever
git clone git@github.com:weecology/retriever.git
- Switch directories
cd retriever
- Standard install
python setup.py install
If you also want to install the dependencies for MySQL and PostgreSQL this can be done using a combination of homebrew and pip.
brew install mysql
- Follow the instructions from
brew
for starting MySQL brew install postgresql
- Follow the instructions from
brew
for starting Postgres sudo pip install pymysql MySQL-python psycopg2
MySQL-python
should be installed in addition to pymysql
for building the .app
file since pymysql is not currently working properly in the .app
.