Skip to content
Tama McGlinn edited this page Nov 28, 2022 · 22 revisions

Dependencies

  • Linux kernel with inotify ≥ 2.6.13
  • Python ≥ 2.4

Install Pyinotify on Python 3.x

pip3 install pyinotify

Currently Pyinotify uses a separate code branch for handling Python ≥ 3. setup.py should automatically detect which branch to install. For instance python3.1 setup.py will use python3/pyinotify.py.

Install Pyinotify on Python 2.x

  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 

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. Under python2/, run make doc
  3. It should generate a bunch of html files under python2/docstrings/
Clone this wiki locally