generate Windows exe on Linux

Discussion in 'Python' started by Plumo, Feb 22, 2012.

  1. Plumo

    Plumo Guest

    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
     
    Plumo, Feb 22, 2012
    #1
    1. Advertising

  2. Plumo

    Waldek M. Guest

    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
     
    Waldek M., Feb 22, 2012
    #2
    1. Advertising

  3. Plumo

    Jérôme Guest

    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
     
    Jérôme, Feb 22, 2012
    #3
  4. Plumo

    Alec Taylor Guest

    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 <> 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
     
    Alec Taylor, Feb 22, 2012
    #4
  5. Plumo

    Gelonida N Guest

    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.
     
    Gelonida N, Feb 22, 2012
    #5
  6. 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
     
    Stefan Behnel, Feb 22, 2012
    #6
  7. Plumo

    Miki Tebeka Guest

    > 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.
     
    Miki Tebeka, Feb 23, 2012
    #7
  8. Plumo

    Miki Tebeka Guest

    > 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.
     
    Miki Tebeka, Feb 23, 2012
    #8
  9. Plumo

    Plumo Guest

    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/?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
     
    Plumo, Feb 23, 2012
    #9
  10. Plumo

    Plumo Guest

    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/?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
     
    Plumo, Feb 23, 2012
    #10
  11. Plumo

    Waldek M. Guest

    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
     
    Waldek M., Feb 24, 2012
    #11
  12. In article <>,
    Gelonida N <> 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
     
    Albert van der Horst, Feb 26, 2012
    #12
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Weng Tianxiang
    Replies:
    5
    Views:
    1,332
    Christophe
    Feb 16, 2006
  2. Replies:
    3
    Views:
    423
    red floyd
    Apr 7, 2006
  3. Harlan Messinger
    Replies:
    2
    Views:
    2,323
    John Bell
    Mar 28, 2010
  4. Phil Tomson
    Replies:
    11
    Views:
    290
    Dick Davies
    May 8, 2004
  5. Krishna Chaitanya
    Replies:
    1
    Views:
    146
    Krishna Chaitanya
    Feb 27, 2009
Loading...

Share This Page