setup.py
changeset 7056 2c1f18b88b6a
parent 7008 8fee8ff13d37
child 7081 2fdbf2ccd03a
--- a/setup.py	Mon Sep 29 09:30:36 2008 +0200
+++ b/setup.py	Sun Sep 14 09:57:33 2008 -0400
@@ -102,6 +102,12 @@
             'hgext.highlight']
 
 try:
+    import msvcrt
+    ext_modules.append(Extension('mercurial.osutil', ['mercurial/osutil.c']))
+except ImportError:
+    pass
+
+try:
     import posix
     ext_modules.append(Extension('mercurial.osutil', ['mercurial/osutil.c']))