creating .exe file

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Q X

    creating .exe file

    Hello everyone,

    I am wondering what kind of tools are available to wrap python scripts
    into just 1 .exe file (with no other files) in windows. I also want
    the .exe file to be able to use command line arguments ie.
    pythonprogram.e xe -classpath d:/temp -file c:/hi.text

    Also, is this possible to do this free ie. without a commercial
    compiler like Visual Studios?

    Help is greatly appreciated.

    Thanks!!!!
  • Peter Maas

    #2
    Re: creating .exe file

    Q X wrote:[color=blue]
    > I am wondering what kind of tools are available to wrap python scripts
    > into just 1 .exe file (with no other files) in windows. I also want
    > the .exe file to be able to use command line arguments ie.
    > pythonprogram.e xe -classpath d:/temp -file c:/hi.text[/color]

    Download py2exe for free. A distutils extension to create standalone windows programs from python scripts.


    Mit freundlichen Gruessen,

    Peter Maas

    --
    -------------------------------------------------------------------
    Peter Maas, M+R Infosysteme, D-52070 Aachen, Hubert-Wienen-Str. 24
    Tel +49-241-93878-0 Fax +49-241-93878-20 eMail peter.maas@mplu sr.de
    -------------------------------------------------------------------

    Comment

    • Peter Hansen

      #3
      Re: creating .exe file

      Peter Maas wrote:
      [color=blue]
      > Q X wrote:[color=green]
      >> I am wondering what kind of tools are available to wrap python scripts
      >> into just 1 .exe file (with no other files) in windows. I also want
      >> the .exe file to be able to use command line arguments ie.
      >> pythonprogram.e xe -classpath d:/temp -file c:/hi.text[/color]
      >
      > http://sourceforge.net/projects/py2exe[/color]

      He explicitly asked for "just one .exe file (with no other files)",
      but py2exe cannot do that.

      Unfortunately, unless the commonly available automatic
      decompressor programs can pass command line options on to the
      program they invoke, it's probably not possible...

      -Peter

      Comment

      • Larry Bates

        #4
        Re: creating .exe file

        As others have stated, py2exe creates a .EXE
        file consisting of all of your code. External
        ..pyd files (including python itself) are left
        as external files. I use InnoSetup to create
        a single "installati on" .EXE file for distribution
        but it installs all the files necessary for program
        execution separately. Doesn't seem to be a problem
        to me as almost all programs require that you
        have additional files beyond the .EXE file itself.

        You can use getopt to pick up any command line
        arguments but syntax would be:

        pythonprogram.e xe -c d:/temp -f c:/hi.text

        or

        pythonprogram.e xe --classpath d:/temp --file c:/hi.text

        (actually you can support both in a single program)

        And yes all of this is FREE!!!!

        HTH,
        Larry Bates
        Syscon, Inc.

        "Q X" <qxz_77@yahoo.c om> wrote in message
        news:3f0686ff.0 405260841.6deba 711@posting.goo gle.com...[color=blue]
        > Hello everyone,
        >
        > I am wondering what kind of tools are available to wrap python scripts
        > into just 1 .exe file (with no other files) in windows. I also want
        > the .exe file to be able to use command line arguments ie.
        > pythonprogram.e xe -classpath d:/temp -file c:/hi.text
        >
        > Also, is this possible to do this free ie. without a commercial
        > compiler like Visual Studios?
        >
        > Help is greatly appreciated.
        >
        > Thanks!!!![/color]


        Comment

        • Thomas Heller

          #5
          Re: creating .exe file

          Peter Hansen <peter@engcorp. com> writes:
          [color=blue]
          > Peter Maas wrote:
          >[color=green]
          >> Q X wrote:[color=darkred]
          >>> I am wondering what kind of tools are available to wrap python scripts
          >>> into just 1 .exe file (with no other files) in windows. I also want
          >>> the .exe file to be able to use command line arguments ie.
          >>> pythonprogram.e xe -classpath d:/temp -file c:/hi.text[/color]
          >> http://sourceforge.net/projects/py2exe[/color]
          >
          > He explicitly asked for "just one .exe file (with no other files)",
          > but py2exe cannot do that.[/color]

          Gordon McMillan's installer can do this. If you manage to find a copy
          to download. Or Tools/freeze.

          Thomas


          Comment

          • Thorsten Kampe

            #6
            Re: creating .exe file

            * Thomas Heller (2004-05-26 19:35 +0100)[color=blue]
            > Peter Hansen <peter@engcorp. com> writes:[color=green]
            >> Peter Maas wrote:[color=darkred]
            >>> Q X wrote:
            >>>> I am wondering what kind of tools are available to wrap python scripts
            >>>> into just 1 .exe file (with no other files) in windows. I also want
            >>>> the .exe file to be able to use command line arguments ie.
            >>>> pythonprogram.e xe -classpath d:/temp -file c:/hi.text
            >>> http://sourceforge.net/projects/py2exe[/color]
            >>
            >> He explicitly asked for "just one .exe file (with no other files)",
            >> but py2exe cannot do that.[/color]
            >
            > Gordon McMillan's installer can do this. If you manage to find a copy
            > to download.[/color]

            http://paulbaranowski. org/modules.php?nam e=Downloads&d_o p=viewdownloads impledetails&li d=8&title=Gordo n%20McMillan's% 20Installer
            [color=blue]
            > Or Tools/freeze.[/color]

            ?

            Thorsten

            Comment

            Working...