Mercurial > public > mercurial-scm > hg
diff setup.py @ 20622:352abbb0be88
extensions: remove the inotify extension (BC)
This extension has always had correctness issues and has been
unmaintained for years. It is now removed in favor of the third-party
hgwatchman which is maintained and appears to be correct.
Users with inotify enabled in their config files will fall back to
standard status performance.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 01 Mar 2014 16:20:15 -0600 |
parents | 2b2a2e858fb7 |
children | 779ceb84f4f7 |
line wrap: on
line diff
--- a/setup.py Sat Mar 01 21:08:43 2014 -0500 +++ b/setup.py Sat Mar 01 16:20:15 2014 -0600 @@ -467,20 +467,6 @@ cygwinccompiler.Mingw32CCompiler = HackedMingw32CCompiler -if sys.platform.startswith('linux') and os.uname()[2] > '2.6': - # The inotify extension is only usable with Linux 2.6 kernels. - # You also need a reasonably recent C library. - # In any case, if it fails to build the error will be skipped ('optional'). - cc = new_compiler() - if hasfunction(cc, 'inotify_add_watch'): - inotify = Extension('hgext.inotify.linux._inotify', - ['hgext/inotify/linux/_inotify.c'], - ['mercurial'], - depends=common_depends) - inotify.optional = True - extmodules.append(inotify) - packages.extend(['hgext.inotify', 'hgext.inotify.linux']) - packagedata = {'mercurial': ['locale/*/LC_MESSAGES/hg.mo', 'help/*.txt']}