setup.py: Add 'mercurial' as include dir for the inotify compiler.

This patch adds access to util.h for the inotify C module by adding the
"mercurial" directory as an include dir, enabling access to the macros defined
in util.h.
This commit is contained in:
Renato Cunha 2010-07-02 16:21:36 -03:00
parent c1d27d1c4d
commit e3f3dfa6c3

View File

@ -286,7 +286,8 @@ if sys.platform == 'linux2' and os.uname()[2] > '2.6':
cc = new_compiler()
if hasfunction(cc, 'inotify_add_watch'):
inotify = Extension('hgext.inotify.linux._inotify',
['hgext/inotify/linux/_inotify.c'])
['hgext/inotify/linux/_inotify.c'],
['mercurial'])
inotify.optional = True
extmodules.append(inotify)
packages.extend(['hgext.inotify', 'hgext.inotify.linux'])