On Wed, Oct 12, 2011 at 12:24 PM, Martin Zibricky <[email protected]> wrote:
> David Cortesi píše v St 12. 10. 2011 v 11:48 -0700:
>>
>> The bundled app makes a 27MB zip file. Would it help you if I made a
>> very minimal PyQt4 app and sent the bundle to you?
>
> That would be fine. Maybe the minimal example source code and your
> makespec would be also helpful.
>
I ran pyinstaller to make a bundle of the simplest program from
Summerfield's book that has menus, and it also came to 74mb just like
my much longer program, so all the bulk is in the pyqt and qt imports.
It is no smaller but maybe better that you have a failure in a
known-good program. I am uploading the 26mb zip'd bundle to here:

http://www.tassos-oak.com/tempp/imagechanger.zip

Summerfield's book is here:

http://www.qtrac.eu/pyqtbook.html

and it has a link to download the example source code, however that's
a big zip file and all you need is the single file that I will append
to this note. The spec file is what pyinstaller makes by default plus
the bundle code at the end:

# -*- mode: python -*-
a = Analysis([os.path.join(HOMEPATH,'support/_mountzlib.py'),
os.path.join(CONFIGDIR,'support/useUnicode.py'),
'/Users/original/Documents/Dprojects/Python/chap06/imagechanger.pyw'],
             pathex=['/Users/original/Dropbox/David/PPQT/pyinstaller-r1655'],
             hookspath=None)
pyz = PYZ(a.pure)
exe = EXE(pyz,
          a.scripts,
          exclude_binaries=1,
          name=os.path.join('build/pyi.darwin/imagechanger', 'imagechanger'),
          debug=False,
          strip=None,
          upx=True,
          console=True )
coll = COLLECT( exe,
               a.binaries,
               a.zipfiles,
               a.datas,
               strip=None,
               upx=True,
               name=os.path.join('dist', 'imagechanger'))
# build an app bundle
import sys
if sys.platform.startswith("darwin"):
   app = BUNDLE(coll,
       name=os.path.join('dist','imagechanger.app'),
       version='1.0')

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.

Attachment: imagechanger.pyw
Description: Binary data

Reply via email to