-
Notifications
You must be signed in to change notification settings - Fork 377
Install
seb-m edited this page Jan 18, 2011
·
22 revisions
- Linux kernel ≥ 2.6.13
- Python ≥ 2.4
- A libc with inotify's binding
- ctypes module (part of standard library since Python 2.5 and can be installed on Python 2.4 through this module)
- 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
- Install pyinotify:
sudo easy_install pyinotify
- Check pyinotify is working alright [run pyinotify from command line and watch /tmp (default watched directory)]
python -m pyinotify -v
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:
- Download Pyinotify 0.8.9+ or a snapshot
- 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
You can browse the documentation online or you can generate it directly from the source code with Epydoc:
- Install a recent version of Epydoc (package python-epydoc on Debian/Ubuntu systems)
- Run this command:
make doc
- It should have generated a bunch of html files under docstrings/