generate Windows exe on Linux

P

Plumo

hello,

I have a python script using only the standard libraries.
Currently I use a Windows VM to generate exe's, which is cumbersome.

Has anyone had success generating exe's from within Linux?

Richard
 
W

Waldek M.

I have a python script using only the standard libraries.
Currently I use a Windows VM to generate exe's, which is cumbersome.

And what exactly *is* this exe about?
Has anyone had success generating exe's from within Linux?

That doesn't seem to have anything to do with Python,
but you might want to google for cross-compiling.

Best regards,
Waldek
 
J

Jérôme

Wed, 22 Feb 2012 18:19:12 +0100
Waldek M. a écrit:
And what exactly *is* this exe about?

Whatever.
That doesn't seem to have anything to do with Python,
but you might want to google for cross-compiling.

I think his question is totally python related.

As I understand it, Richard creates executables from python scripts using a
tool, such as py2exe [1], that requires windows. He would like to have an
equivalent tool that runs on linux, to avoid going through the trouble of
having to run a windows installation.

I'm interested in such a tool as well.

[1] http://www.py2exe.org/
 
A

Alec Taylor

http://www.pyinstaller.org/

or

http://cx-freeze.sourceforge.net/

You can also run py2exe in WINE

Wed, 22 Feb 2012 18:19:12 +0100
Waldek M. a écrit:
And what exactly *is* this exe about?
Whatever.


That doesn't seem to have anything to do with Python,
but you might want to google for cross-compiling.

I think his question is totally python related.

As I understand it, Richard creates executables from python scripts usinga
tool, such as py2exe [1], that requires windows. He would like to have an
equivalent tool that runs on linux, to avoid going through the trouble of
having to run a windows installation.

I'm interested in such a tool as well.

[1] http://www.py2exe.org/
 
S

Stefan Behnel

Gelonida N, 22.02.2012 23:25:
You want to say, that I could install python 2.6
some packages like win32api
PyQt and tand py2exe under Wine and then compile it.


Did you try this?

I didn't even think about trying this out,
but I know very little about the limits of Wine, so perhaps I
underestimate it.

The compliance requirements for software build tools tend to be rather easy
to meet, so Wine shouldn't have any real problems there.

Having said that, Wine is actually surprisingly capable these days. It
won't always run the latest release of our all-time favourite WYGIWYD
character pushing or number layouting programs from MS-Office fame, but at
least older versions of many a program tend to work rather nicely.

Stefan
 
M

Miki Tebeka

Having said that, Wine is actually surprisingly capable these days. It
won't always run the latest release of our all-time favourite WYGIWYD
character pushing or number layouting programs from MS-Office fame, but at
least older versions of many a program tend to work rather nicely.
Even newer ones, have a look at http://www.playonlinux.com/en/ to get a taste of what it's capable of.
 
M

Miki Tebeka

Having said that, Wine is actually surprisingly capable these days. It
won't always run the latest release of our all-time favourite WYGIWYD
character pushing or number layouting programs from MS-Office fame, but at
least older versions of many a program tend to work rather nicely.
Even newer ones, have a look at http://www.playonlinux.com/en/ to get a taste of what it's capable of.
 
P

Plumo

thanks Jérôme.

Closest I have found is pyinstaller added support for cross-compiling a year ago by mounting a Windows partition on Linux:
https://groups.google.com/forum/?fromgroups#!topic/pyinstaller/KISZP5sHCWg

But it was not stable so will be removed:
https://groups.google.com/forum/?fr...aller/linux$20windows/pyinstaller/veq3BlA_Bns

I have come across many vague suggestions to try using Wine with py2exe / pyinstaller / cx_Freeze, but few accounts from people who have actually succeeded.

Richard
 
P

Plumo

thanks Jérôme.

Closest I have found is pyinstaller added support for cross-compiling a year ago by mounting a Windows partition on Linux:
https://groups.google.com/forum/?fromgroups#!topic/pyinstaller/KISZP5sHCWg

But it was not stable so will be removed:
https://groups.google.com/forum/?fr...aller/linux$20windows/pyinstaller/veq3BlA_Bns

I have come across many vague suggestions to try using Wine with py2exe / pyinstaller / cx_Freeze, but few accounts from people who have actually succeeded.

Richard
 
W

Waldek M.

That doesn't seem to have anything to do with Python,
but you might want to google for cross-compiling.

I think his question is totally python related.

As I understand it, Richard creates executables from python scripts using a
tool, such as py2exe [1], that requires windows. He would like to have an
equivalent tool that runs on linux, to avoid going through the trouble of
having to run a windows installation.

Ah, that's the part I was missing :)
Thanks.

Waldek
 
A

Albert van der Horst

You want to say, that I could install python 2.6
some packages like win32api
PyQt and tand py2exe under Wine and then compile it.


Did you try this?

I didn't even think about trying this out,
but I know very little about the limits of Wine, so perhaps I
underestimate it.

As a case in point I have this example of another language:
colorforth.
It was made by a genius inventor (Chuck Moore), and only runs from a
boot-floppy and writes pixels to the screen.
Someone made an environment in MS-Windows to emulate the
booting process and all. This actually runs colorforth.

Now about Wine, how good is it? Actually it is good enough to
run the above emulator!
(We run a third emulator, of the GA144, on top at a decent speed.)

Groetjes Albert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top