Win 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 various places on the Internet. Make sure that if you always get the a version of packages which matches your Python version.

Contents

Packages needed

  • wxPython - here (you probably want the doco too).

Packages needed only by the development version

  • py2exe (for creating packages) - here


Non-Python packages which are needed:

  • NSIS (for creating installable packages) - here
  • upx (for compressing the packages to a decent size) - here

Getting the code

You will then need to install a CVS client, I suggest "Tortoise CVS".

Downloading and setting up the code

Use your CVS client to clone the following code repositories,

cvs://:pserver:anonymous@git.thousandparsec.net:/git/scratchpad.git
cvs://:pserver:anonymous@git.thousandparsec.net:/git/libtpproto-py.git
cvs://:pserver:anonymous@git.thousandparsec.net:/git/libtpclient-py.git
cvs://:pserver:anonymous@git.thousandparsec.net:/git/tpclient-pywx.git

If you have git installed you can of course use these commands instead

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

Start up a command line and run the following

rem Installing ez setup
cd scratchpad
python ez_setup.py
cd ..

rem Installing libtpproto-py in develop mode
cd libtpproto-py
python setup.py develop
cd ..

rem Installing libtpclient-py in develop mode
cd libtpclient-py
python setup.py develop
cd ..

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

rem Now run the client!
pythonw tpclient-pywx
Personal tools