On ven, 2009-03-13 at 15:34 +0100, Sebastian Hilbert wrote:

> I have quietly followed the list for a year or so and I am now trying to put 
> pyinstaller to some use.
> 
> I am trying to package a fairly complex wxpython program. It is called GNUmed 
> and is a medical app.
> 
> It works by invoking gnumed.py with several commandline options. I am 
> targeting MS Windows because for GNU/Linux we provide true packages.
> 
> Anyway I have used pyinstaller 1.3 (which might not be the best idea).
> 
> GNUmed depends on
> python-egenix-mxtools
> python-PIL
> python-psycopg2
> python-wxGTK
> python-twainmodule
> 
> Up to now I have followed the docs to generate a spec file. I understand that 
> this is not enough to make it work.
> 
> How do you advise to proceed ?

First, update to PyInstaller SVN trunk, as it's much newer and has so
many fixed bugs.

Then, generate a spec file like this (which is a good first step to
debug any problems might arise):

  python PYINSTALLER_DIR\Makespec.py --onedir --debug --console gnumed.py

Then, try building it:

  python PYINSTALLER_DIR\Build.py gnumed.spec

It will create a directory "dist" with the program inside. Try running
it from the console, so you see any traceback it might happen. It
doesn't work, send us the whole output of the program being run and we
will help you tracking out problems.

If it works, regenerate the specfile using "--onefile --windowed". This
time, a single file "gnumed.exe" will be generated. Try it, it should
work.

To get a smaller file, makes sure that you have installed UPX and it's
available in the PATH. Then re-run Pyinstaller's Configure.py so that it
sees UPX and activate it.
-- 
Giovanni Bajo
Develer S.r.l.
http://www.develer.com



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to