Need advice to make a cross-platform wx program

59 views
Skip to first unread message

Tony Cappellini

unread,
Aug 23, 2012, 10:46:58 AM8/23/12
to wxpytho...@googlegroups.com

I've used py2exe for windows apps failry successfully.

I now need to make a Wx app which will be used on both windows & Mac.
(If I can get it working on linux too with minimal effort, that would be ideal, but linux isn't a priority)

The app will just parse text files. No network, database or hardware interaction (other than basic file I/O) is required.

Given that Python on the Mac is so contrived & problematic, what is the best way to deploy a simple wxPython app for both Windows & Mac, so that end users will not need to have Python & wx on their systems?

Is Andrea's executable maker still alive & active, or are there other cross-platform deployment tools available for wx apps?

How do I handle that some users may be running 32-bit an others may be running 64-bit OSs?

Thanks

Cody

unread,
Aug 23, 2012, 10:51:19 AM8/23/12
to wxpytho...@googlegroups.com
Hi,

On Thu, Aug 23, 2012 at 9:46 AM, Tony Cappellini <capp...@gmail.com> wrote:
>
> I've used py2exe for windows apps failry successfully.
>
> I now need to make a Wx app which will be used on both windows & Mac.
> (If I can get it working on linux too with minimal effort, that would be
> ideal, but linux isn't a priority)
>
> The app will just parse text files. No network, database or hardware
> interaction (other than basic file I/O) is required.
>
> Given that Python on the Mac is so contrived & problematic, what is the best
> way to deploy a simple wxPython app for both Windows & Mac, so that end
> users will not need to have Python & wx on their systems?
>

Contrived and problematic?

> Is Andrea's executable maker still alive & active, or are there other
> cross-platform deployment tools available for wx apps?
>
> How do I handle that some users may be running 32-bit an others may be
> running 64-bit OSs?
>

Just use py2app on OSX, its almost exactly the same as py2exe on
Windows. There is a simple example of doing this in my book (which
IIRC you have a copy of ;) ).


Cody

Mike Driscoll

unread,
Aug 23, 2012, 11:33:30 AM8/23/12
to wxpytho...@googlegroups.com
Hi Tony,

On Thu, Aug 23, 2012 at 9:46 AM, Tony Cappellini <capp...@gmail.com> wrote:

I've used py2exe for windows apps failry successfully.

I now need to make a Wx app which will be used on both windows & Mac.
(If I can get it working on linux too with minimal effort, that would be ideal, but linux isn't a priority)

The app will just parse text files. No network, database or hardware interaction (other than basic file I/O) is required.

Given that Python on the Mac is so contrived & problematic, what is the best way to deploy a simple wxPython app for both Windows & Mac, so that end users will not need to have Python & wx on their systems?

In addition to py2app, you might look at PyInstaller. It supports all three major platforms and I'm pretty sure GUI2Exe works with it too.

 

Is Andrea's executable maker still alive & active, or are there other cross-platform deployment tools available for wx apps?

I know he still maintains it, but I haven't seen much action on it lately.

 

How do I handle that some users may be running 32-bit an others may be running 64-bit OSs?

Thanks



32-bit apps work on 64-bit systems most of the time, just not the reverse. So you can either create just 32-bit versions or create both and name them accordingly.

- Mike

Chris Barker

unread,
Aug 23, 2012, 12:04:28 PM8/23/12
to wxpytho...@googlegroups.com
On Thu, Aug 23, 2012 at 8:33 AM, Mike Driscoll <mi...@pythonlibrary.org> wrote:
>> Given that Python on the Mac is so contrived & problematic,

problematic, maybe, contrived? huh? Anyway, if you think of the Mac
like Windows -- i.e. dont expect a system Python, it's pretty much the
same deal.

> In addition to py2app, you might look at PyInstaller. It supports all three
> major platforms and I'm pretty sure GUI2Exe works with it too.

Has anhyone use PyINstaller for OS-X? I have not seen a single post
abou tit on the pytonmac list. THis page:

http://www.pyinstaller.org/wiki/Features/MacOsCompatibility

MAke it sound a bit incomplete and minimally tested. Bu tit would be
nice to have one solution that works everywhere -- while py2app was
designed to mirror the py2exe API, it has, in fact, diverged, an I
find I have to essentially write two totally different setup.py files
anyway.

A tiny bit about py2app:

If you use one of Apple's Python installs, py2app does not include
python (Apple's licensing makes that illegal), so you really do'nt
have a stand alone.

So I suggest using the pyton.org binary builds:

The 32bit PPC+Intel build will support OS-X > = 10.4 -- very good coverage.

The 32+64 bit Intel build will support OS-X >= 10.6 Intel only --
which is probably most people by now anyway.

Note that if you are compiling any of your own extensions, the 32 bit
build required XCode 3.8, NOT XCode 4.* -- you can get it from Apple,
but they bury it a bit, so poke around to find it.

-good luck,

-Chris










>
>>
>>
>> Is Andrea's executable maker still alive & active, or are there other
>> cross-platform deployment tools available for wx apps?
>
>
> I know he still maintains it, but I haven't seen much action on it lately.
>
>
>>
>>
>> How do I handle that some users may be running 32-bit an others may be
>> running 64-bit OSs?
>>
>> Thanks
>>
>>
>
> 32-bit apps work on 64-bit systems most of the time, just not the reverse.
> So you can either create just 32-bit versions or create both and name them
> accordingly.
>
> - Mike
>
> --
> To unsubscribe, send email to wxPython-user...@googlegroups.com
> or visit http://groups.google.com/group/wxPython-users?hl=en



--

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris....@noaa.gov

Mike Driscoll

unread,
Aug 23, 2012, 1:26:20 PM8/23/12
to wxpytho...@googlegroups.com
Chris,

On Thu, Aug 23, 2012 at 11:04 AM, Chris Barker <chris....@noaa.gov> wrote:
On Thu, Aug 23, 2012 at 8:33 AM, Mike Driscoll <mi...@pythonlibrary.org> wrote:
>> Given that Python on the Mac is so contrived & problematic,

problematic, maybe, contrived? huh? Anyway, if you think of the Mac
like Windows -- i.e. dont expect a system Python, it's pretty much the
same deal.

> In addition to py2app, you might look at PyInstaller. It supports all three
> major platforms and I'm pretty sure GUI2Exe works with it too.

Has anhyone use PyINstaller for OS-X? I have not seen a single post
abou tit on the pytonmac list. THis page:

http://www.pyinstaller.org/wiki/Features/MacOsCompatibility


If I had a Mac I'd certainly try PyInstaller. I just keep seeing that they make it known that they support Macs on their front page, so I figured they had tested it a bit. I know I shouldn't do that.


-----------------
Mike Driscoll

Blog:   http://blog.pythonlibrary.org
Reply all
Reply to author
Forward
0 new messages