[PATCH 1 of 3] setup: kill pure hack for osutil on Windows for Python 2.4

Adrian Buehlmann adrian at cadifra.com
Thu May 14 09:11:51 UTC 2015


# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1431594271 -7200
# Node ID 528f2c892eed77ed7d750efaa5a6f654d82f6a2b
# Parent  407a0d664643a749071a9f720f79664d81fbcf52
setup: kill pure hack for osutil on Windows for Python 2.4

see e1fb276d4619

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -505,13 +505,9 @@
 if sys.platform == 'darwin':
     osutil_ldflags += ['-framework', 'ApplicationServices']
 
-# disable osutil.c under windows + python 2.4 (issue1364)
-if sys.platform == 'win32' and sys.version_info < (2, 5, 0, 'final'):
-    pymodules.append('mercurial.pure.osutil')
-else:
-    extmodules.append(Extension('mercurial.osutil', ['mercurial/osutil.c'],
-                                extra_link_args=osutil_ldflags,
-                                depends=common_depends))
+extmodules.append(Extension('mercurial.osutil', ['mercurial/osutil.c'],
+                            extra_link_args=osutil_ldflags,
+                            depends=common_depends))
 
 try:
     from distutils import cygwinccompiler


More information about the Mercurial-devel mailing list