logo       

Re: another bundlebuilder question: msg#00109

python.apple

Subject: Re: another bundlebuilder question


Hi and thanks again for helping !

The correct place would be your site-packages folder..

Ok great! I've put it there now.

I am still getting the same error:

mac$ python buildapp.py --standalone build

Finding module dependencies
Building 'build/myApp.app'
Copying files
Relocating libraries
Traceback (most recent call last):
File "buildapp.py", line 31, in ?
plist = infoPlist,
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/plat-mac/bundlebuilder2.py", line 974, in buildapp
main(builder)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/plat-mac/bundlebuilder2.py", line 962, in main
builder.build()
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/plat-mac/bundlebuilder2.py", line 159, in build
self._relocateHeaders()
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/plat-mac/bundlebuilder2.py", line 206, in _relocateHeaders
fobj.copyToFolder(dst, copyfile=self.copyFile, copytree=self.copyTree)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/plat-mac/macholib/util.py", line 180, in copyToFolder
IOError: [Errno 2] No such file or directory: 'build/myApp.app/Contents/Frameworks/SDL.framework/Versions/A/SDL'

What version of OS X and Python are you using? What buildapp.py script is this?

OS X 10.3.3, Python 2.3, latest pygame and it is basically your buildapp.py script
which I found in the CVS of the alien game you referred me to.

here is how I modified the script:
============================

from bundlebuilder2 import buildapp
from plistlib import Plist, Dict
import glob, imp, shutil, os

NAME = 'myApp'
VERSION = '0.1'

infoPlist = Plist(
CFBundleIconFile = 'myApp.icns',
CFBundleName = NAME,
CFBundleShortVersionString = VERSION,
CFBundleGetInfoString = ' '.join([NAME, VERSION]),
CFBundleExecutable = NAME,
)

# pkgdata stuff
pygamedata = os.path.join('pkgdata', 'pygame')
if not os.path.exists(pygamedata):
os.makedirs(pygamedata)
pygamedir = imp.find_module('pygame')[1]
for fn in glob.glob(os.path.join(pygamedir, '*.ttf')):
shutil.copy(fn, pygamedata)

buildapp(
name = 'myApp.app',
bundle_id = 'org.pygame.aliens',
mainprogram = 'main.py',
#nibname = 'MainMenu',
#resources = ["English.lproj", "../../data", "pkgdata"],
plist = infoPlist,
)

I commented out the nibname and resources out as I am not
using any of that in my program. Is that a mistake?
What does the bundle_id do by the way?

It's a complicated process right now.

Hmm. Yes, It seems quite complicated for me, but I am quite
new to Python. Getting this to work would be a big step and
make things much more interesting. (I might write some tuts
online of how I managed to do this if I will be able to, so your
help and tips could benefit others as well)

later
thor


_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG@xxxxxxxxxx
http://mail.python.org/mailman/listinfo/pythonmac-sig



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise