Installation Guide
Windows
If you are running Windows, just download the "Windows Installer" -- it will probably save you lots of pain :)
Mac OS X
If you are running Mac OS X, I have attempted to make a binary installer for you. I have tested it on two Mac OS X computers and they both seem to work just fine. If you have any problems please post in the message board with your details.
Other
Setuptools
If you have setuptools installed you can simply run the command below. It will (hopefully) automatically install pyraknet all the required dependencies for you.
easy_install pyraknet
Requirements
You'll need the following packages:
- Python (tested with versions 2.4 and 2.5)
- Pyrex (tested with versions 0.9.4.1 and 0.9.5.1)
- http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/
- Local copy because the Pyrex web site occasionally goes down:
- A C++ compiler
Most problems I've seen is because of an old version of Pyrex.
Installation
Like most other Python package distributions, execute the following. There will be many warnings. This is normal!
python setup.py install
pyraknet is brand new and has not been tested much. If it fails for you, can you please post on the pyraknet mailing list your system details, the compiler output and (possibly) how you fixed it.
Testing your installation
To check if you have pyraknet installed, run Python and see if the following commands respond like below:
Python 2.4.4c1 (#2, Oct 11 2006, 20:00:03) [GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import pyraknet >>> pyraknet.Peer() <pyraknet.Peer object at 0x2b885f7dded0>