Commits

illume  committed 6e1e6f7

Added a WARNING to tell you if Setup.in is newer than Setup.

  • Participants
  • Parent commits daea0bd

Comments (0)

Files changed (1)

                        "-Wnested-externs -Wshadow -Wredundant-decls"
     sys.argv.remove ("-warnings")
 
-import os.path, glob
+import os.path, glob, stat
 import distutils.sysconfig
 from distutils.core import setup, Extension
 from distutils.extension import read_setup_file
     print '\nContinuing With "setup.py"'
 
 
+try:
+    s_mtime = os.stat("Setup")[stat.ST_MTIME]
+    sin_mtime = os.stat("Setup.in")[stat.ST_MTIME]
+    if sin_mtime > s_mtime:
+        print '\n\nWARNING, "Setup.in" newer than "Setup", you might need to modify Setup."'
+except:
+    pass
 
 #get compile info for all extensions
 try: extensions = read_setup_file('Setup')