[PATCH 2 of 7] setup.py: Add 'mercurial' as include dir for the inotify compiler

Renato Cunha renatoc at gmail.com
Fri Jul 2 14:59:52 CDT 2010


# HG changeset patch
# User Renato Cunha <renatoc at gmail.com>
# Date 1278098496 10800
# Node ID 11752658d9a25eb12c5843fcf0e5fcc86fe9070a
# Parent  d32ce990aa0ca6a64aee3c1bbb2541dc354a09f2
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