[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] missing modules in py2exe build of a pygame app



Hi,

Running into some problems.

I'm using the following in Windows 7:

py2exe-0.6.9.win64-py2.6.amd64.exe
pygame-1.9.2pre.win-amd64-py2.6.exe
python-2.6.amd64.msi

Here is the relevant output from py2exe:

The following modules appear to be missing
['AppKit', 'Foundation', 'Numeric', 'OpenGL.GL', 'copyreg',
'dummy.Process', 'email.Generator', 'email.Iterators', 'numpy',
'pkg_resources', 'queue', 'winreg','pygame.sdlmain_osx']

*** binary dependencies ***
Your executable(s) also depend on these dlls which are not included,
you may or may not need to distribute them.

Make sure you have the license if you distribute any of them, and
make sure you don't distribute files belonging to the operating system.

   OLEAUT32.dll - C:\Windows\system32\OLEAUT32.dll
   USER32.dll - C:\Windows\system32\USER32.dll
   SHELL32.dll - C:\Windows\system32\SHELL32.dll
   KERNEL32.dll - C:\Windows\system32\KERNEL32.dll
   WINMM.dll - C:\Windows\system32\WINMM.dll
   WSOCK32.dll - C:\Windows\system32\WSOCK32.dll
   ADVAPI32.dll - C:\Windows\system32\ADVAPI32.dll
   WS2_32.dll - C:\Windows\system32\WS2_32.dll
   GDI32.dll - C:\Windows\system32\GDI32.dll
   ole32.dll - C:\Windows\system32\ole32.dll

I notice it lists a bunch of modules it could not find. Is this normal
for a pygame app or do I need to add something to my py2exe build
script? I've pasted it at the bottom. Also there are a bunch of DLLs
it says are required. Do I just copy these over into the directory
where my python source files are and py2exe will automatically include
them? Also what is the legality of doing this?

Here is my py2exe build script:

from distutils.core import setup
import py2exe, pygame
import glob, shutil

setup(windows=["__init__.py"],
name='Netrek Pygame',
version='0.3.1',
description='Netrek Pygame Client',
author='James Cameron',
author_email='',
url='www.netrek.org',
py_modules=['__init__','cache','cap','client','constants','mercenary','meta','mis','motd','options','rcd','repair','test-cairo','test-keys','util']
)

#shutil.copytree('data', 'dist/data')
shutil.copyfile('freesansbold.ttf', 'dist/freesansbold.ttf')

Zach


<>< http://www.fidei.org ><>