changed:
-
`PyKota <http://www.pykota.com/>`_ is a nifty [[Python]]-based printer quota and billing software for [[CUPS]] that can also be massaged into doing accounting.
PyKota on Mac OS X with Fink
----------------------------
Getting the source
==================
PyKota's official source and binary releases are available behind a $/€ 25 paywall, but you can also get them from Subversion for free. The site also has `sparse instructions for OS X <http://www.pykota.com/wiki/InstallOSX/>`__.
Download `PyKota 1.25 <http://svn.librelogiciel.com/cgi-bin/viewcvs.cgi/pykota/tags/1.25/>`__::
svn co svn://svn.librelogiciel.com/pykota/tags/1.25 pykota
Download `pkpgcounter 2.17 <http://svn.librelogiciel.com/cgi-bin/viewcvs.cgi/pkpgcounter/tags/2.17/>`__::
svn co svn://svn.librelogiciel.com/pkpgcounter/tags/2.17 pkpgcounter
We’ll return to these after the dependencies.
Installing the dependencies
===========================
Some of the base dependencies are included with Fink. I used Python 2.5::
fink install python2.5 pysqlite2-py25 pil-py25 python-mx-py25
Next, the stuff that's not in Fink. Download and install (using ``sudo python2.5 setup.py install``):
* `Psyco 1.5.1 <http://psyco.sourceforge.net/download.html>`__
Installing PyKota
=================
From your download folder::
cd pkpgcounter
python2.5 setup.py build && sudo python2.5 setup.py install
cd ../pykota
python2.5 setup.py build && sudo python2.5 setup.py install
cd /usr/libexec/cups/backend
ln -s ../../../../sw/share/pykota/cupspykota
Installation is done. You can now configure PyKota using the instructions in the README file included with the distribution. Remember to comment out the PostgreSQL section in the configuration and enable SQLite3, since we've installed those dependencies with Fink above.