##// END OF EJS Templates
building: build inotify for sys.platform='linux*'...
Nikolaj Sjujskij -
r15163:f4bc0b9e stable
parent child Browse files
Show More
@@ -309,7 +309,7 b" if sys.platform == 'win32' and sys.versi"
309 else:
309 else:
310 extmodules.append(Extension('mercurial.osutil', ['mercurial/osutil.c']))
310 extmodules.append(Extension('mercurial.osutil', ['mercurial/osutil.c']))
311
311
312 if sys.platform == 'linux2' and os.uname()[2] > '2.6':
312 if sys.platform.startswith('linux') and os.uname()[2] > '2.6':
313 # The inotify extension is only usable with Linux 2.6 kernels.
313 # The inotify extension is only usable with Linux 2.6 kernels.
314 # You also need a reasonably recent C library.
314 # You also need a reasonably recent C library.
315 # In any case, if it fails to build the error will be skipped ('optional').
315 # In any case, if it fails to build the error will be skipped ('optional').
@@ -443,7 +443,7 b' class socketlistener(object):'
443 if err.args[0] != errno.EPIPE:
443 if err.args[0] != errno.EPIPE:
444 raise
444 raise
445
445
446 if sys.platform == 'linux2':
446 if sys.platform.startswith('linux'):
447 import linuxserver as _server
447 import linuxserver as _server
448 else:
448 else:
449 raise ImportError
449 raise ImportError
@@ -366,7 +366,7 b' else:'
366 extmodules.append(Extension('mercurial.osutil', ['mercurial/osutil.c'],
366 extmodules.append(Extension('mercurial.osutil', ['mercurial/osutil.c'],
367 extra_link_args=osutil_ldflags))
367 extra_link_args=osutil_ldflags))
368
368
369 if sys.platform == 'linux2' and os.uname()[2] > '2.6':
369 if sys.platform.startswith('linux') and os.uname()[2] > '2.6':
370 # The inotify extension is only usable with Linux 2.6 kernels.
370 # The inotify extension is only usable with Linux 2.6 kernels.
371 # You also need a reasonably recent C library.
371 # You also need a reasonably recent C library.
372 # In any case, if it fails to build the error will be skipped ('optional').
372 # In any case, if it fails to build the error will be skipped ('optional').
General Comments 0
You need to be logged in to leave comments. Login now