[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] missing modules in py2exe build of a pygame app
- To: Brian Fisher <brian@xxxxxxxxxxxxxxxxxxx>
- Subject: [pygame] missing modules in py2exe build of a pygame app
- From: Zachary Uram <netrek@xxxxxxxxx>
- Date: Sun, 31 Oct 2010 03:27:25 -0400
- Cc: pygame-users@xxxxxxxx, py2exe-users@xxxxxxxxxxxxxxxxxxxxx
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Sun, 31 Oct 2010 03:27:54 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:cc:content-type; bh=po5TWo6/ugIkUz8qWOOuywOftQdPwPWcanoyJkDiNiA=; b=HLP2ZsD/3F2oQZye8Pe6pSa4UybmdyEkf1gnMaYN4AlfPX71Cj4SqeqrJcI7zehf4R TgCH1lt/A7qWha3nRC8dFm+DNz+kZiv6oH3LkdL9fAobzKn8UjB6eR9q1kfZKXgG6CyF /nbVanHTL16mnx6k+YHL1GonKrLMrgKrsUzE0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:cc:content-type; b=YaKMuRa72FmKLkXLUBFgF1+48qFwXwSJpXuEOJ8fV06lh8ivb9NJcwR5SNWN6kUrSA qKgE+YCO01WTpQ0ucpW+O0gkJSdBqjgFqho+0C8xEryh91+fqWvlRyaSwyHp+3j3KUT9 XDbxNgZ6Tyg+TCVYXZDE4syG8ye8I0QxYmwSE=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
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 ><>