Commits

Satish Balay committed 7390fa2 Merge

Merge branch 'balay/configure-winpython-check' into maint

Comments (0)

Files changed (1)

config/configure.py

       sys.exit(3)
   return 0
 
+def chkusingwindowspython():
+  if sys.platform == 'win32':
+    print '==============================================================================='
+    print ' *** Windows python detected. Please rerun ./configure with cygwin-python. ***'
+    print '==============================================================================='
+    sys.exit(3)
+  return 0
+
 def chkcygwinpython():
   if os.path.exists('/usr/bin/cygcheck.exe') and sys.platform == 'cygwin' :
     sys.argv.append('--useThreads=0')
   chkbrokencygwin()
   # Disable threads on RHL9
   chkrhl9()
+  # Make sure cygwin-python is used on windows
+  chkusingwindowspython()
   # Threads don't work for cygwin & python...
   chkcygwinpython()
   chkcygwinlink()