Lenard Lindstrom avatar Lenard Lindstrom committed a787fef

small repairs for MinGW build

Comments (0)

Files changed (2)

mingw32distutils.py

         from mingw32ccompiler import Mingw32DefaultCCompiler
         return Mingw32DefaultCCompiler (None, dry_run, force)
     if compiler == 'mingw32-console':
-        from mingw32CCompiler import Mingw32ConsoleCCompiler
+        from mingw32ccompiler import Mingw32ConsoleCCompiler
         return Mingw32ConsoleCCompiler (None, dry_run, force)
     return original_new_compiler (plat, compiler, verbose, dry_run, force)
 
     if not f[-3:] == '.py' and not f[-4:] == '.doc' and os.path.isfile(f):
         data_files.append(f)
 
-# For Unix systems this is good enough.
-data_files_target = 'pygame'
-
 # Required. This will be filled if doing a Windows build.
 cmdclass = {}
 
         except ImportError:
             pass
         
-    # We want everything in the pygame package directory.
-    data_files_target = 'Lib\\site-packages\\pygame'
-
     #add dependency DLLs to the project
     import dll
 
         self.install_dir = getattr(install_cmd, 'install_lib')
         return install_data.run(self)
 
+cmdclass['install_data'] = smart_install_data
+
 #finally,
 #call distutils with all needed info
 PACKAGEDATA = {
-       "cmdclass":    {'install_data': smart_install_data},
+       "cmdclass":    cmdclass,
        "packages":    ['pygame', 'pygame.gp2x'],
        "package_dir": {'pygame': 'lib',
                        'pygame.gp2x': 'lib/gp2x'},
        "headers":     headers,
        "ext_modules": extensions,
-       "data_files":  [[data_files_target, data_files]],
+       "data_files":  [['pygame', data_files]],
 }
 PACKAGEDATA.update(METADATA)
 PACKAGEDATA.update(EXTRAS)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.