libzzub User Manual | ||
---|---|---|
Prev | Chapter 2. Installation |
libzzub comes with bindings for the Python programming language, allowing you to use all of its functions within a Python script.
In order to run pyzzub with Python 2.4, ctypes is an additional requirement.
pyzzub is contained within the libzzub source directory structure. To install pyzzub as a Python module, enter
[paniq@aspera libzzub-x.x]$ cd src/pyzzub [paniq@aspera pyzzub]$ python setup.py build ... copying zzub/zzub_classes.py -> build/lib/zzub copying zzub/library.py -> build/lib/zzub copying zzub/procwrap.py -> build/lib/zzub copying zzub/zzub_flat.py -> build/lib/zzub copying zzub/__init__.py -> build/lib/zzub ... [paniq@aspera pyzzub]$ sudo python setup.py install
If everything went ok, you should be able to use pyzzub from within Python:
[paniq@aspera pyzzub]$ python Python 2.4.4c1 (#2, Oct 11 2006, 21:51:02) [GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import zzub >>> zzub.Player() <zzub.Player object at 0xb7dc758c>
pyzzub is now installed.