Mac Setup

From Thousand Parsec Wiki

Jump to: navigation, search

These instructions are to setup your development environment. Things which are required to be downloaded are in BOLD.

You need the following binaries which can be found at here

Contents

Packages needed

  • Python (the Python which ships with Mac OS X is horribly broken) - here

Packages needed only by the development version

  • py2app (for creating packages) - here

Getting the code

You will then need to install "cogito" (here) and run the following

Downloading and setting up the code

If you have cogito installed (recommended),

cg-clone git://git.thousandparsec.net/git/scratchpad.git
cg-clone git://git.thousandparsec.net/git/libtpproto-py.git
cg-clone git://git.thousandparsec.net/git/libtpclient-py.git
cg-clone git://git.thousandparsec.net/git/tpclient-pywx.git

# Setup various links
cd scratchpad
./setup.sh
cd ..

# Check all the requirements are satisified
cd tpclient-pywx
pythonw requirements.py

# Now run the client!
pythonw tpclient-pywx

If you only have git installed, try

git-clone git://git.thousandparsec.net/git/scratchpad.git
git-clone git://git.thousandparsec.net/git/libtpproto-py.git
git-clone git://git.thousandparsec.net/git/libtpclient-py.git
git-clone git://git.thousandparsec.net/git/tpclient-pywx.git

# Setup various links
cd scratchpad
./setup.sh
cd ..

# Check all the requirements are satisified
cd tpclient-pywx
pythonw requirements.py

# Now run the client!
pythonw tpclient-pywx

WARNING

WARNING: Make sure the pythonw you are running is the one you installed above (you may need to modify your path).

To check you are running the correct python do something like this

# You are looking for the version 2.5 and not 2.4 or 2.3
pythonw
Python 2.5.1 (r251:54863, Jul 17 2007, 15:55:37) 
[GCC 4.1.3 20070629 (prerelease) (Ubuntu 4.1.2-13ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 
Personal tools