Commits

Anonymous committed 44cc554

setup maintenance

  • Participants
  • Parent commits 578d427

Comments (0)

Files changed (2)

File config_win.py

 ]
 
 
-    
+def setup_prebuilt():
+    setup = open('Setup', 'w')
+    for line in open('Setup.in').readlines():
+        if line.startswith('#--'): continue
+        if line.startswith('SDL = '):
+            line = 'SDL = -Iprebuilt/include -Lprebuilt/lib -lSDL\n'
+        setup.write(line)
+
+
 
 def main():
     if os.path.isdir('prebuilt'):
         reply = raw_input('\nUse the SDL libraries in "prebuilt"? [Y/n]')
         if not reply or reply[0].lower() != 'n':
-            shutil.copyfile('prebuilt\\Setup', 'Setup')
-            return None
+            return setup_prebuilt()
 
     global DEPS
     for d in DEPS:
 {
 	int ticks;
 	PyObject* arg0;
-	/*for some resone PyArg_ParseTuple pukes on -1's! BLARG!*/
+	/*for some reason PyArg_ParseTuple pukes on -1's! BLARG!*/
 
 	if(PyTuple_Size(arg) != 1)
 		return RAISE(PyExc_ValueError, "delay requires one integer argument");