mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 14:58:03 +03:00
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:
parent
c1d27d1c4d
commit
e3f3dfa6c3
3
setup.py
3
setup.py
@ -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'])
|
||||
|
Loading…
Reference in New Issue
Block a user