Show More
@@ -12,6 +12,7 b" if not hasattr(sys, 'version_info') or s" | |||
|
12 | 12 | import os |
|
13 | 13 | from distutils.core import setup, Extension |
|
14 | 14 | from distutils.command.install_data import install_data |
|
15 | from distutils.ccompiler import new_compiler | |
|
15 | 16 | |
|
16 | 17 | import mercurial.version |
|
17 | 18 | |
@@ -66,7 +67,10 b' try:' | |||
|
66 | 67 | ext_modules.append(Extension('mercurial.osutil', ['mercurial/osutil.c'])) |
|
67 | 68 | |
|
68 | 69 | if sys.platform == 'linux2' and os.uname()[2] > '2.6': |
|
69 |
# |
|
|
70 | # The inotify extension is only usable with Linux 2.6 kernels. | |
|
71 | # You also need a reasonably recent C library. | |
|
72 | cc = new_compiler() | |
|
73 | if cc.has_function('inotify_add_watch'): | |
|
70 | 74 | ext_modules.append(Extension('hgext.inotify.linux._inotify', |
|
71 | 75 | ['hgext/inotify/linux/_inotify.c'])) |
|
72 | 76 | packages.extend(['hgext.inotify', 'hgext.inotify.linux']) |
General Comments 0
You need to be logged in to leave comments.
Login now