Go Back   Rhinocerus > Newsgroup > Newsgroup comp.lang.python

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 02-22-2012, 11:12 AM
Plumo
Guest
 
Posts: n/a
Default generate Windows exe on Linux

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
Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

  #2 (permalink)  
Old 02-22-2012, 04:19 PM
Waldek M.
Guest
 
Posts: n/a
Default Re: generate Windows exe on Linux

On Wed, 22 Feb 2012 04:12:29 -0800 (PST), Plumo wrote:
> 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
Reply With Quote
  #3 (permalink)  
Old 02-22-2012, 04:42 PM
Jérôme
Guest
 
Posts: n/a
Default Re: generate Windows exe on Linux

Wed, 22 Feb 2012 18:19:12 +0100
Waldek M. a écrit:

> On Wed, 22 Feb 2012 04:12:29 -0800 (PST), Plumo wrote:
> > 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?


Whatever.

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


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/

--
Jérôme
Reply With Quote
  #4 (permalink)  
Old 02-22-2012, 05:05 PM
Alec Taylor
Guest
 
Posts: n/a
Default Re: generate Windows exe on Linux

http://www.pyinstaller.org/

or

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

You can also run py2exe in WINE

On Thu, Feb 23, 2012 at 4:42 AM, Jérôme <jerome@jolimont.fr> wrote:
> Wed, 22 Feb 2012 18:19:12 +0100
> Waldek M. a écrit:
>
>> On Wed, 22 Feb 2012 04:12:29 -0800 (PST), Plumo wrote:
>> > 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?

>
> Whatever.
>
>> > 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.

>
> 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/
>
> --
> Jérôme
> --
> http://mail.python.org/mailman/listinfo/python-list

Reply With Quote
  #5 (permalink)  
Old 02-22-2012, 09:25 PM
Gelonida N
Guest
 
Posts: n/a
Default Re: generate Windows exe on Linux

On 02/22/2012 07:05 PM, Alec Taylor wrote:
> http://www.pyinstaller.org/
>
> or
>
> http://cx-freeze.sourceforge.net/
>
> You can also run py2exe in WINE
>


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.






Reply With Quote
  #6 (permalink)  
Old 02-22-2012, 09:43 PM
Stefan Behnel
Guest
 
Posts: n/a
Default Re: generate Windows exe on Linux

Gelonida N, 22.02.2012 23:25:
> On 02/22/2012 07:05 PM, Alec Taylor wrote:
>> http://www.pyinstaller.org/
>>
>> or
>>
>> http://cx-freeze.sourceforge.net/
>>
>> You can also run py2exe in WINE
>>

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

Reply With Quote
  #7 (permalink)  
Old 02-23-2012, 02:19 AM
Miki Tebeka
Guest
 
Posts: n/a
Default Re: generate Windows exe on Linux

> 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.
Reply With Quote
  #8 (permalink)  
Old 02-23-2012, 02:19 AM
Miki Tebeka
Guest
 
Posts: n/a
Default Re: generate Windows exe on Linux

> 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.
Reply With Quote
  #9 (permalink)  
Old 02-23-2012, 05:33 AM
Plumo
Guest
 
Posts: n/a
Default Re: generate Windows exe on Linux

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/?fro...er/KISZP5sHCWg

But it was not stable so will be removed:
https://groups.google.com/forum/?fromgroups#!searchin/PyInstaller/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
Reply With Quote
  #10 (permalink)  
Old 02-23-2012, 05:33 AM
Plumo
Guest
 
Posts: n/a
Default Re: generate Windows exe on Linux

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/?fro...er/KISZP5sHCWg

But it was not stable so will be removed:
https://groups.google.com/forum/?fromgroups#!searchin/PyInstaller/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
Reply With Quote
  #11 (permalink)  
Old 02-24-2012, 05:21 AM
Waldek M.
Guest
 
Posts: n/a
Default Re: generate Windows exe on Linux

On Wed, 22 Feb 2012 18:42:11 +0100, Jérôme wrote:
>>> 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.

>
> 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
Reply With Quote
  #12 (permalink)  
Old 02-26-2012, 10:57 AM
Albert van der Horst
Guest
 
Posts: n/a
Default Re: generate Windows exe on Linux

In article <mailman.55.1329949521.3037.python-list@python.org>,
Gelonida N <gelonida@gmail.com> wrote:
>On 02/22/2012 07:05 PM, Alec Taylor wrote:
>> http://www.pyinstaller.org/
>>
>> or
>>
>> http://cx-freeze.sourceforge.net/
>>
>> You can also run py2exe in WINE
>>

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

--
--
Albert van der Horst, UTRECHT,THE NETHERLANDS
Economic growth -- being exponential -- ultimately falters.
albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst

Reply With Quote
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 06:16 AM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.