[PATCH 2 of 7] setup.py: Add 'mercurial' as include dir for the inotify compiler
Renato Cunha
renatoc at gmail.com
Thu Jul 1 17:19:15 CDT 2010
setup.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
# HG changeset patch
# User Renato Cunha <renatoc at gmail.com>
# Date 1278022747 10800
# Node ID e0ea42a3c91cd31765ff9e197fba2afe74958cfd
# Parent f901363d4d9ea5dd0d84a8c515fd5b581c6c29d9
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