473,394 Members | 1,902 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,394 software developers and data experts.

Distributing programs

A non-python programming friend of mine has said that any programs made
with Python must be distributed with, or an alternative link, to the
source of the program.

Is this true?

Oct 2 '05 #1
6 1806
Jason wrote:
A non-python programming friend of mine has said that any programs made
with Python must be distributed with, or an alternative link, to the
source of the program.

Is this true?


Sorta, but not really. Typically, you might distribute the source (.py)
files, but if you don't want to do that, you can distribute the
compiled .pyc files instead. Python creates these files automatically
when your modules are imported.
Oct 2 '05 #2
Jeff Schwab wrote:
Sorta, but not really. Typically, you might distribute the source (.py)
files, but if you don't want to do that, you can distribute the
compiled .pyc files instead. Python creates these files automatically
when your modules are imported.


But remember that Python bytecode can be easily decompiled with a
publicly-available program.
Oct 2 '05 #3
Leif K-Brooks wrote:
But remember that Python bytecode can be easily decompiled with a
publicly-available program.

I hope it is not considered too antisocial to bring it up here, but
there is always PyObfuscate:

http://www.lysator.liu.se/~astrand/p...s/pyobfuscate/

-Steve Bergman
Oct 2 '05 #4
>A non-python programming friend of mine has said that any programs made
with Python must be distributed with, or an alternative link, to the
source of the program.


Yes, and you must also include a blank sheet, signed by you in blood.

Seriously, whatever the license of Python itself is, a program you
have *written in Python* (which Iassume you are referring to) is
completely yours.
Wouter van Ooijen

-- ------------------------------------
http://www.voti.nl
Webshop for PICs and other electronics
http://www.voti.nl/hvu
Teacher electronics and informatics
Oct 2 '05 #5
Wouter van Ooijen (www.voti.nl) wrote:
Yes, and you must also include a blank sheet, signed by you in blood.

I thought you only had to do that if you were submitting a patch to
MySQL, Qt, OpenOffice, or OpenSolaris. ;-)

-Steve Bergman
Oct 2 '05 #6
Jason wrote:
A non-python programming friend of mine has said that any programs made
with Python must be distributed with, or an alternative link, to the
source of the program.

Is this true?


There seems to be some confusion regarding what you are asking.

Are you asking about legal issues of about technical issues?
Perhaps your friend is confused about these issues.

There are no licence problems with Python. It doesn't use
anything like GPL. You do what you like with your code.

Technically, Python code is compiled into bytecode (like Java)
but in contrast with typical Java apps, it's common that
Python code is delivered as source. As someone else mentioned,
python modules are automatically compiled the first time they
are imported, and the compiled modules will be used directly
the next time, unless you change the source code (Python looks
at file modification times).

Typically, it seems professional programmers developing commercial
software with Python worry little about their sourcecode being
accessible. Source code is protected by copyright after all, and
hiding source code doesn't prevent people from stealing software
anyway.

For some strange reason, it seems that it's almost always complete
beginners that express their worries that someone will steal their
valuable intellectual property if they distribute source, and that
somehow strikes me as unlikely.
Oct 4 '05 #7

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

Similar topics

4
by: Doug D | last post by:
Is there a way I can sell a PHP "module" without distributing the source code? I haven't heard of one, but if you have an idea, please let me know. thanks, -d
5
by: NEWS | last post by:
Can I install Python on a networked server and have any user run Python programs without having to go through the 9Mb client install? What are my options for distributing Python programs to my...
5
by: Jiri Barton | last post by:
Hi, I'd like to be able to distribute some python modules of my system (plugins) without the source. So far, I have done this by including only the *.pyc files. However, I have recently found...
2
by: RickMuller | last post by:
I really appreciate the ease that the distutils make distributing Python modules. However, I have a question about using them to distribute non-Python (i.e. text) data files that support Python...
10
by: John Phelan | last post by:
I read an article by, by Mike Groh, in Access-VB-SQL Advisor Magazine, Week 37 that concerns me quite a bit on distributing Access Applications commercially. First I need to describe a "commercial...
3
by: bill | last post by:
What is a good way to distribute a new version of a Windows Forms application over a LAN? I guess the client needs to recognize that an update is available, and then get it with a minimum of...
2
by: Finger.Octopus | last post by:
Hello, It has been such a painful thing for me. As I made a program to encrypt files, now I want to distribute that program over other computers. I created .EXE file with py2exe but the "dist"...
11
by: Tina I | last post by:
Hi list, Is there a preferred way to distribute programs that depends on third party modules like PyQt, Beautifulsoup etc? I have used setuptools and just having the setup script check for the...
5
by: xkenneth | last post by:
Hi All, I'll shortly be distributing a number of python applications that use proprietary. The software is part of a much larger system and it will need to be distributed securely. How can i...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.