[PATCH 2 of 3] setup.py: Add 'mercurial' as include dir for the inotify compiler
Renato Cunha
renatoc at gmail.com
Wed Jun 16 20:04:28 CDT 2010
# HG changeset patch
# User Renato Cunha <renatoc at gmail.com>
# Date 1276736640 10800
# Node ID 9adf54a8289e17691a1bf76642d9269ed01bf643
# Parent ee34baedb53da813b752fb340c5a09179583274e
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.
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -270,7 +270,8 @@
cc = new_compiler()
if hasfunction(cc, 'inotify_add_watch'):
extmodules.append(Extension('hgext.inotify.linux._inotify',
- ['hgext/inotify/linux/_inotify.c']))
+ ['hgext/inotify/linux/_inotify.c'],
+ ['mercurial']))
packages.extend(['hgext.inotify', 'hgext.inotify.linux'])
packagedata = {'mercurial': ['locale/*/LC_MESSAGES/hg.mo',
More information about the Mercurial-devel
mailing list