Skip to content
seb-m edited this page Jan 28, 2011 · 22 revisions

Dependencies

  • Linux kernel with inotify ≥ 2.6.13
  • Python ≥ 2.4

Install Pyinotify on Python 2.4+

  1. Make sure easy_install is installed:
   sudo apt-get install python-setuptools
   # or alternatively
   wget http://peak.telecommunity.com/dist/ez_setup.py
   sudo python ez_setup.py
  1. Install pyinotify:
   sudo easy_install pyinotify
  1. Check pyinotify is working alright
   python -m pyinotify -v /tmp  # This will run pyinotify and watch /tmp 

Install Pyinotify on Python 3.x

Python 3 brings lot of changes it currently seems impossible to maintain a single code for all Python versions >= 2.4. If you intend to use Pyinotify with Python versions >= 3.0 then you should proceed like this:

  1. Download Pyinotify 0.8.9+ or a snapshot
  2. Uncompress it, cd to its root directory then for instance assuming your target Python interpreter is Python3.1 type
   sudo python3.1 setup.py install 

Generate Documentation

You can browse the documentation online or you can generate it directly from the source code with Epydoc:

  1. Install a recent version of Epydoc (package python-epydoc on Debian/Ubuntu systems)
  2. Run this command:
   make doc
  1. It should have generated a bunch of html files under docstrings/
Clone this wiki locally