Hello everyone, I have recently spent some time setting up development environments on both Windows and OSX that make use of wxPython inside a virtualenv. As part of this I also had to set it up to allow me to build my application using py2app and py2exe, and I wrote up some information that might prove useful to others if they ever have to do the same.
I made use of the excellent wiki article as a basis for my OSX solution, but had to solve it myself for Windows. The full articles are available here:
It might be worth linking them on the wxPython wiki itself, because the few sources I could find to do this weren’t entirely sufficient, so it might be useful to have information about accomplishing this in a central location.
Thanks for documenting this, great info.
Over time this might become a little easier.
- PIL could be replaced with Pillow which in turn can be installed
by pip - - py2exe 0.9 is available for Python 3 which can be installed by pip
-
- wxPython Phoenix (still in development) can be installed with pip
as it uses the ‘wheel’ format
- pywin32, not sure what the plans are there, there is 214 on pypi -
Werner
···
Hi Alexander,
On 8/26/2014 20:54, alexander wrote:
Hello everyone, I have recently spent some time
setting up development environments on both Windows and OSX that
make use of wxPython inside a virtualenv. As part of this I also
had to set it up to allow me to build my application using
py2app and py2exe, and I wrote up some information that might
prove useful to others if they ever have to do the same.
I made use of the excellent
wiki article as a basis for my OSX solution, but had to
solve it myself for Windows. The full articles are available
here:
It might be worth linking
them on the wxPython wiki itself, because the few sources I
could find to do this weren’t entirely sufficient, so it
might be useful to have information about accomplishing this
in a central location.
https://pypi.python.org/pypi/Pillow
https://pypi.python.org/pypi/py2exe/0.9.2.0/
https://pypi.python.org/pypi/pywin32
http://aodj.ghost.io/isolation-in-practice-part-1/
http://aodj.ghost.io/isolation-in-practice-part-2/
Some of those points are exactly what I ended up doing;
- I did indeed swap PIL for Pillow due mainly to the fact it was
pip install
-able.
- My project isn’t Python 3 compatible, so the 0.9 version of py2exe doesn’t help me unfortunately.
- I don’t think Phoenix is feature complete yet, and so whilst it is available in wheel and egg formats, I can’t make use of them yet.
- pywin32 is actually available at version 219 (at the time of writing) but it’s only available on the Sourceforge site. I’m probably going to make this upgrade soon enough.
These points, and a few others, were exactly my motivations for writing it down; hopefully it will prove useful to someone else at some point 
···
On Wednesday, 27 August 2014 09:03:31 UTC, werner wrote:
Hi Alexander,
On 8/26/2014 20:54, alexander wrote:
Hello everyone, I have recently spent some time
setting up development environments on both Windows and OSX that
make use of wxPython inside a virtualenv. As part of this I also
had to set it up to allow me to build my application using
py2app and py2exe, and I wrote up some information that might
prove useful to others if they ever have to do the same.
I made use of the excellent
wiki article as a basis for my OSX solution, but had to
solve it myself for Windows. The full articles are available
here:
It might be worth linking
them on the wxPython wiki itself, because the few sources I
could find to do this weren’t entirely sufficient, so it
might be useful to have information about accomplishing this
in a central location.
Thanks for documenting this, great info.
Over time this might become a little easier.
- PIL could be replaced with Pillow which in turn can be installed
by pip - https://pypi.python.org/pypi/Pillow
- py2exe 0.9 is available for Python 3 which can be installed by pip