Deployment of the Python application

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • psbasha
    Contributor
    • Feb 2007
    • 440

    #1

    Deployment of the Python application

    Hi,

    How to deploy the Python application to the end users without giving the Source code?

    Is there any procedure available to build the whole application and package it?

    Thanks & Regards
    PSB
  • bartonc
    Recognized Expert Expert
    • Sep 2006
    • 6478

    #2
    Originally posted by psbasha
    Hi,

    How to deploy the Python application to the end users without giving the Source code?

    Is there any procedure available to build the whole application and package it?

    Thanks & Regards
    PSB
    There are several ways to do this py2exe works for window. Another is pyInstaller. There are articles posted in the articles sub forum (temporary links above in the announcement and in the stick. Here is a link to one of them.

    Comment

    • psbasha
      Contributor
      • Feb 2007
      • 440

      #3
      I would like to use the applications developed in Python in both the OS Windows and Unix.Whether I can compile/build the application in Windows/Unix and can use in Windows and Unix (or) we have to compile and build the application (Same source code of the application) seperately in Windows and UNIX OS.

      Please suggest.
      PSB

      Comment

      • bartonc
        Recognized Expert Expert
        • Sep 2006
        • 6478

        #4
        Originally posted by psbasha
        I would like to use the applications developed in Python in both the OS Windows and Unix.Whether I can compile/build the application in Windows/Unix and can use in Windows and Unix (or) we have to compile and build the application (Same source code of the application) seperately in Windows and UNIX OS.

        Please suggest.
        PSB
        Py2exe is for Windows only. A common trick that I have seen is to leave the .py file that you don't want direct access to the source of out of the target installation them import the .pyd file from a main .py script. Note, however that the symbols can still be read from a .pyd file. The logic of the program will be obfuscated, though. This may also be the case with most python installers. If you need to truly hide source code run by a python script, write that code in C and import that using ctypes or build and interface to it using swig. Python is built by the open source community and most apps are distributed freely, so there doesn't need to be a native way to do what you are after.

        Comment

        Working...