setup.py: Add 'mercurial' as include dir for the inotify compiler.
authorRenato Cunha <renatoc@gmail.com>
Fri, 02 Jul 2010 16:21:36 -0300
changeset 11533 5be8760d2fb3
parent 11532 f3732ab1149f
child 11534 9777a3b19efe
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.
setup.py
--- a/setup.py	Fri Jul 02 16:21:34 2010 -0300
+++ b/setup.py	Fri Jul 02 16:21:36 2010 -0300
@@ -286,7 +286,8 @@
     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'])