Converting a python script into a standalone application

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

    Converting a python script into a standalone application

    Hi,

    I've written a commercial application that uses Python scripts for
    some of the functionality. Installing the Python portion of the
    application requires me to first install Python, and then install the
    scripts. I'm looking for an easier way to install the Python portion.

    I've been referred to: http://www.mcmillan-inc.com/install1.html

    Which application would people recommend for creating a standalone
    executable?

    Are there any licensing issues I need to consider wrt including a
    "Python runtime" with my distribution?

    Thanks
  • BW Glitch

    #2
    Re: Converting a python script into a standalone application

    Sandeep Gupta wrote:
    [color=blue]
    > Hi,
    >
    > I've written a commercial application that uses Python scripts for
    > some of the functionality. Installing the Python portion of the
    > application requires me to first install Python, and then install the
    > scripts. I'm looking for an easier way to install the Python portion.
    >
    > I've been referred to: http://www.mcmillan-inc.com/install1.html
    >
    > Which application would people recommend for creating a standalone
    > executable?
    >
    > Are there any licensing issues I need to consider wrt including a
    > "Python runtime" with my distribution?[/color]

    You can also look at py2exe at
    http://starship.python.net/crew/theller/py2exe/ . Its license is
    BSD-like, AFAICT.

    --
    Glitch

    -----BEGIN TF FAN CODE BLOCK-----
    G+++ G1 G2+ BW++++ MW++ BM+ Rid+ Arm-- FR+ FW-
    #3 D+ ADA N++ W OQP MUSH- BC- CN++ OM P75
    -----END TF FAN CODE BLOCK-----

    "I would've preferred a robot truck."
    "Heathen."
    -- Two Aliens, on Monkey Master, on January 23, 2001.


    Comment

    • David Bolen

      #3
      Re: Converting a python script into a standalone application

      sandeep182@hotm ail.com (Sandeep Gupta) writes:
      [color=blue]
      > I've been referred to: http://www.mcmillan-inc.com/install1.html
      >
      > Which application would people recommend for creating a standalone
      > executable?[/color]

      I've been using the McMillan installer for a long time now very
      successfully, although there are others (such as py2exe) that are also
      available.

      You don't mention platform, but assuming your use of "executable "
      implies a Windows platform, if by standalone executable, if you mean a
      single .exe to run the application, you can create that with
      installer, but it'll still automatically unpack any needed extension
      dll/pyd files when it starts and remove them when it ends.

      If instead you mean a single .exe that can be used to install your
      application (like a normal Windows installer), then you can use normal
      installation packages to take the results created by installer and
      package them up. I'm a fan of Inno Setup
      (http://www.jrsoftware.org/isinfo.php) but there are others around
      (such as NSIS).

      BTW, if instead you were referring to a Unix (or MacOSX) platform then
      installer may be the only system to support them the way you want (and
      installer not necessarily on all Unix variants - Linux is probably the
      most tested).

      If you're talking about a Mac classic setup, I believe there is in
      fact some support for packaging up Python stuff for Mac installations,
      but other than vaguely remembering reading about it on a MacPython
      specific web page, don't know anything further.
      [color=blue]
      > Are there any licensing issues I need to consider wrt including a
      > "Python runtime" with my distribution?[/color]

      There shouldn't be - the Python license permits this even for
      commercial situations. You should double check however, that if your
      application involves any extension modules that are not part of the
      basic Python distribution that they may have their own more
      restrictive licenses.

      -- David

      Comment

      Working...