comparison setup.py @ 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 98f21e4d9633
comparison
equal deleted inserted replaced
11532:f3732ab1149f 11533:5be8760d2fb3
284 # You also need a reasonably recent C library. 284 # You also need a reasonably recent C library.
285 # In any case, if it fails to build the error will be skipped ('optional'). 285 # In any case, if it fails to build the error will be skipped ('optional').
286 cc = new_compiler() 286 cc = new_compiler()
287 if hasfunction(cc, 'inotify_add_watch'): 287 if hasfunction(cc, 'inotify_add_watch'):
288 inotify = Extension('hgext.inotify.linux._inotify', 288 inotify = Extension('hgext.inotify.linux._inotify',
289 ['hgext/inotify/linux/_inotify.c']) 289 ['hgext/inotify/linux/_inotify.c'],
290 ['mercurial'])
290 inotify.optional = True 291 inotify.optional = True
291 extmodules.append(inotify) 292 extmodules.append(inotify)
292 packages.extend(['hgext.inotify', 'hgext.inotify.linux']) 293 packages.extend(['hgext.inotify', 'hgext.inotify.linux'])
293 294
294 packagedata = {'mercurial': ['locale/*/LC_MESSAGES/hg.mo', 295 packagedata = {'mercurial': ['locale/*/LC_MESSAGES/hg.mo',