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 ?
I have two choices as GNUmed software source. Either from a tar.gz or from the
already installed application. The difference is in the directory layout.
Can anyone here provide a sample spec for a wxpython application. Any help is
appreciated.
Sebastian
> 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