changeset 11533:5be8760d2fb3

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.
author Renato Cunha <renatoc@gmail.com>
date Fri, 02 Jul 2010 16:21:36 -0300
parents f3732ab1149f
children 9777a3b19efe
files setup.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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'])