illume  committed 6e1e6f7

Added a WARNING to tell you if 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 ""'
+    s_mtime = os.stat("Setup")[stat.ST_MTIME]
+    sin_mtime = os.stat("")[stat.ST_MTIME]
+    if sin_mtime > s_mtime:
+        print '\n\nWARNING, "" newer than "Setup", you might need to modify Setup."'
+    pass
 #get compile info for all extensions
 try: extensions = read_setup_file('Setup')