1. petsc
  2. PETSc
  3. petsc

Commits

Satish Balay  committed ee76e99

configure: check for windows-python and give error message

  • Participants
  • Parent commits d81f97e
  • Branches master

Comments (0)

Files changed (1)

File config/configure.py

View file
  • Ignore whitespace
       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()