Source

pygame / make_prebuilt.py

Diff from to

make_prebuilt.py

     # Top level directories.
     if dest_dir is None:
         dest_dir = prebuilt_dir
+    if re.match(r'([A-Za-z]:){0,1}[^"<>:|?*]+$', dest_dir) is None:
+        print "Invalid directory path name %s" % dest_dir
+        return 1
     dest_dir = os.path.abspath(dest_dir)
     if os.path.isdir(dest_dir):
         if not confirm("Directory %s already exists;\ncontinue" % dest_dir):
                 if not src_header_dir in copied_dirs:
                     copy_dir(src_header_dir, dest_header_dir)
                     copied_dirs.add(src_header_dir)
+    if 'SDL' in have_dlls:
+        # For MSVC use SDL_config_win32.h in place of configure
+        # generated SDL_config.h.
+        file_copy(
+            os.path.join(src_dir, 'include', 'SDL', 'SDL_config_win32.h'),
+            os.path.join(dest_dir, 'include', 'SDL', 'SDL_config.h'))
 
     # msvcr71.dll linking support.
     src_msvcr71_dir = os.path.join(src_dir, 'lib', 'msvcr71')