# HG changeset patch # User Bryan O'Sullivan # Date 1205361223 25200 # Node ID a718e66836e8253708ab36842b86a54c5fb9fc55 # Parent 6679405e95dabcce30a4ffcf307eaf52a77d9cc1 setup.py: os.uname is not available on Windows diff -r 6679405e95da -r a718e66836e8 setup.py --- a/setup.py Wed Mar 12 15:31:10 2008 -0700 +++ b/setup.py Wed Mar 12 15:33:43 2008 -0700 @@ -61,15 +61,15 @@ packages = ['mercurial', 'mercurial.hgweb', 'hgext', 'hgext.convert'] -if sys.platform == 'linux2' and os.uname()[2] > '2.6': - # the inotify extension is only usable with Linux 2.6 kernels - ext_modules.append(Extension('hgext.inotify.linux._inotify', - ['hgext/inotify/linux/_inotify.c'])) - packages.extend(['hgext.inotify', 'hgext.inotify.linux']) - try: import posix ext_modules.append(Extension('mercurial.osutil', ['mercurial/osutil.c'])) + + if sys.platform == 'linux2' and os.uname()[2] > '2.6': + # the inotify extension is only usable with Linux 2.6 kernels + ext_modules.append(Extension('hgext.inotify.linux._inotify', + ['hgext/inotify/linux/_inotify.c'])) + packages.extend(['hgext.inotify', 'hgext.inotify.linux']) except ImportError: pass