473,395 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Question about python code distribution...

Hi,

I am sure that this question might have come up repeatedly. Companies
may not want to distribute their python code in source form. Even
though pyc files are one option, it gets inconvenient to distribute
bunch of them . If there is some way to bundle pyc files (akin to
..jar), it would be really nice. I understand that pyc files are not
hard to decompile (from my reading of previous posts) and module
startup times may be longer if they have to be read from an archive.
Neverthless, an option to distribute in the form of an archive is
attractive. Has this ever been considered for Python? If one were to
consider it, what would be pros and cons of such approach?

Any comments are appreciated.

Thanks,
Raghu.

Jul 19 '05 #1
4 1259

dr*******@gmail.com wrote:
Hi,

I am sure that this question might have come up repeatedly. Companies
may not want to distribute their python code in source form. Even
though pyc files are one option, it gets inconvenient to distribute
bunch of them . If there is some way to bundle pyc files (akin to
.jar), it would be really nice. I understand that pyc files are not
hard to decompile (from my reading of previous posts) and module
startup times may be longer if they have to be read from an archive.
Neverthless, an option to distribute in the form of an archive is
attractive. Has this ever been considered for Python? If one were to
consider it, what would be pros and cons of such approach?

Any comments are appreciated.

Thanks,
Raghu.

As of version 2.3 of python zip files are supported:
http://www.python.org/doc/2.3.5/whatsnew/node5.html

Jul 19 '05 #2
dr*******@gmail.com wrote:
Hi,

I am sure that this question might have come up repeatedly. Companies
may not want to distribute their python code in source form. Even
though pyc files are one option, it gets inconvenient to distribute
bunch of them . If there is some way to bundle pyc files (akin to
.jar), it would be really nice. I understand that pyc files are not
hard to decompile (from my reading of previous posts) and module
startup times may be longer if they have to be read from an archive.
Neverthless, an option to distribute in the form of an archive is
attractive. Has this ever been considered for Python? If one were to
consider it, what would be pros and cons of such approach?

Any comments are appreciated.

Thanks,
Raghu.


Looks like it's in the works:
http://peak.telecommunity.com/DevCenter/PythonEggs

Cheers,
Steve
Jul 19 '05 #3
You didn't say what platform, but if it is Windows take a
look at Inno Installer. It is a complete installation
framework that allows you to package everything into a
single setup.exe file. I use a combination of py2exe and
Inno to do my apps that are to be distributed. Nothing
could be simpler.

-Larry Bates

dr*******@gmail.com wrote:
Hi,

I am sure that this question might have come up repeatedly. Companies
may not want to distribute their python code in source form. Even
though pyc files are one option, it gets inconvenient to distribute
bunch of them . If there is some way to bundle pyc files (akin to
.jar), it would be really nice. I understand that pyc files are not
hard to decompile (from my reading of previous posts) and module
startup times may be longer if they have to be read from an archive.
Neverthless, an option to distribute in the form of an archive is
attractive. Has this ever been considered for Python? If one were to
consider it, what would be pros and cons of such approach?

Any comments are appreciated.

Thanks,
Raghu.

Jul 19 '05 #4
Hi,

I would like for all platforms, not just for windows. In any case, the
above two replies about "zipfile" support and "eggs" answer my
question. That's exactly what I was looking for. Thanks for prompt and
useful responses.

Raghu.

Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: John Ladasky | last post by:
Hi, folks, At the beginning of 2003, I was a frustrated computer user, and lapsed programmer, with problems to solve that screamed for programming. Thanks to the Python language and community, I...
36
by: Tim Churches | last post by:
If a compiled Python extension module B includes code from some other software A which is licensed only under the GPL, do other Python programmes, C, which import module B also need to be licensed...
4
by: Logan | last post by:
Several people asked me for the following HOWTO, so I decided to post it here (though it is still very 'alpha' and might contain many (?) mistakes; didn't test what I wrote, but wrote it - more or...
0
by: Fuzzyman | last post by:
Movable Python has just been released on sourceforge. Movable Python is a frozen distribution of Python. It will run python scripts without needing to be installed. ...
1
by: Oh Kyu Yoon | last post by:
Hi! I have been using the python 2.3.3 distribution from Enthought Inc because it has most of the libraries I use included. Does anyone know when Enthought will release the python 2.4...
34
by: Blake T. Garretson | last post by:
I want to save some sensitive data (passwords, PIN numbers, etc.) to disk in a secure manner in one of my programs. What is the easiest/best way to accomplish strong file encryption in Python? ...
12
by: Claudio Grondi | last post by:
I have just discovered the existance of Puppy Linux which is a complete operating system with a suite of GUI apps, only about 50 - 60M booting directly off the CDROM ( http://www.puppylinux.org...
0
by: Fuzzyman | last post by:
It's finally happened, `Movable Python <http://www.voidspace.org.uk/python/movpy/>`_ is finally released. Versions for Python 2.3 & 2.4 are available from `The Movable Python Shop...
7
by: Anton Mellit | last post by:
Hi, I am working on a Pari-Python module (see about GP/PARI at http://pari.math.u-bordeaux.fr/). Similar project was started by Stefane Fermigier 12 years ago (you can find a post about it on...
0
by: eGenix Team: M.-A. Lemburg | last post by:
________________________________________________________________________ ANNOUNCING eGenix.com mx Base Distribution Version 3.1.1 for Python 2.6 Open Source Python extensions providing...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.