Commits

Radomir Dopieralski committed ba2f26e

hackity hack on py2exe

  • Participants
  • Parent commits 5be4e42

Comments (0)

Files changed (2)

jelly/resource.py

             data = pkgutil.get_data('jelly', filename)
             f.write(data)
             f.seek(0)
+            print f.name
+
             font = pygame.font.Font(f.name, size)
         FONT_CACHE[filename, size] = font
     return font
 except ImportError:
     pass
 
+origIsSystemDLL = py2exe.build_exe.isSystemDLL # save the orginal before we edit it
+def isSystemDLL(pathname):
+    # checks if the freetype and ogg dll files are being included
+    if os.path.basename(pathname).lower() in ("libfreetype-6.dll", "libogg-0.dll","sdl_ttf.dll"): # "sdl_ttf.dll" added by arit.
+            return 0
+    return origIsSystemDLL(pathname) # return the orginal function
+py2exe.build_exe.isSystemDLL = isSystemDLL 
 
 setup(
     name='jelly',