Standalone applications ?

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

    #1

    Standalone applications ?

    Hi

    I just finished developing an application using Qt Designer in Python that
    uses pyqwt, gpib, etc. How does one create standalone executables for
    applications such as these ?

    Thanks.
  • Paolo Alexis Falcone

    #2
    Re: Standalone applications ?

    On Sat, 13 Aug 2005 23:29:27 -0400, Madhusudan Singh wrote:
    [color=blue]
    > Hi
    >
    > I just finished developing an application using Qt Designer in Python that
    > uses pyqwt, gpib, etc. How does one create standalone executables for
    > applications such as these ?[/color]

    Generally, you can't, as Python is an interpreted programming language.
    However, there are some projects like py2exe in Windows which approximates
    what you want to do - port the Python code into a stand-alone application.

    Comment

    • Madhusudan Singh

      #3
      Re: Standalone applications ?

      Paolo Alexis Falcone wrote:
      [color=blue]
      > On Sat, 13 Aug 2005 23:29:27 -0400, Madhusudan Singh wrote:
      >[color=green]
      >> Hi
      >>
      >> I just finished developing an application using Qt Designer in Python
      >> that uses pyqwt, gpib, etc. How does one create standalone executables
      >> for applications such as these ?[/color]
      >
      > Generally, you can't, as Python is an interpreted programming language.
      > However, there are some projects like py2exe in Windows which approximates
      > what you want to do - port the Python code into a stand-alone application.[/color]

      I should have added that my platform is Linux.

      Comment

      • henne

        #4
        Re: Standalone applications ?

        > I should have added that my platform is Linux.



        Squeeze works on Linux too.

        Comment

        • TPJ

          #5
          Re: Standalone applications ?

          > I should have added that my platform is Linux.

          In this case you shouldn't bother yourself with executables. Python is
          available on any major distribution.

          My Python apps are available as pyc files for Linux (and for those
          Windows users, who have Python installed) and as executables for Win
          (for those Windows users, who have no Python installed).

          Comment

          • Peter Decker

            #6
            Re: Standalone applications ?

            On 14 Aug 2005 03:49:08 -0700, TPJ <tprimke@interi a.pl> wrote:[color=blue][color=green]
            > > I should have added that my platform is Linux.[/color]
            >
            > In this case you shouldn't bother yourself with executables. Python is
            > available on any major distribution.
            >
            > My Python apps are available as pyc files for Linux (and for those
            > Windows users, who have Python installed) and as executables for Win
            > (for those Windows users, who have no Python installed).[/color]

            What about any dependencies? While Linux distros may have Python
            installed, it may be an older version, and may not have one or two
            libraries that your app needs. E.g., I have Python that came with my
            FC2 install, but it doesn't come with Tkinter, so if you build a
            Tkinter-based app and just send me the .pyc file, it won't work.
            --

            # p.d.

            Comment

            • Madhusudan Singh

              #7
              Re: Standalone applications ?

              TPJ wrote:
              [color=blue][color=green]
              >> I should have added that my platform is Linux.[/color]
              >
              > In this case you shouldn't bother yourself with executables. Python is
              > available on any major distribution.
              >
              > My Python apps are available as pyc files for Linux (and for those
              > Windows users, who have Python installed) and as executables for Win
              > (for those Windows users, who have no Python installed).[/color]

              My python app uses a lot of modules, some custom developed by myself (and
              which I am not planning on releasing right now). Which is why I posed the
              question in the first place (that and curiosity).

              Comment

              • Maurice LING

                #8
                Re: Standalone applications ?

                henne wrote:[color=blue][color=green]
                > > I should have added that my platform is Linux.[/color]
                >
                > http://davidf.sjsoft.com/mirrors/mcm.../install1.html
                >
                > Squeeze works on Linux too.[/color]

                It tells me that the installer files are not found.
                M

                Comment

                • TPJ

                  #9
                  Re: Standalone applications ?

                  It's just the same as with Java, GTK+, Qt or any other
                  library/platform. If you're doing development with Java, you can use
                  any version that you like (for example the version 1.5) - and your
                  application probably won't be able to run by an older version of Java.
                  The same is with, for example, GTK+ library - if you use the version
                  2.6, your application might not work on systems with older version of
                  the GTK+ library.

                  And the same is with Python. When you develop application with Python,
                  you must use some version of Python - and this is your dependency. You
                  might say that your application needs a particular version of Python
                  (and eventually particular versions of external modules).

                  Comment

                  • TPJ

                    #10
                    Re: Standalone applications ?

                    Well, I think I must answer to my own post...

                    There is at least one reason to bother with executables. I have just
                    read a message. Someone wanted to run a program written in Python +
                    wxPython. But he has failed. Why? Because the version of wxPython on
                    his system was newer and it's API was different.

                    Of course he could install an older (the proper) version of wxPython as
                    well... But he's not a developer. He don't know how to install Python,
                    wxPython and so on... And he's not interested in such knowledge.

                    So there *is* a reason for making executables.

                    Comment

                    Working...