LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-14-2005, 01:33 PM   #1
charnel
Member
 
Registered: Mar 2005
Distribution: mandrake 10.0
Posts: 58

Rep: Reputation: 15
python basics


-How can I make a windows .exe file by using win python
-How can I mak an executable file without the source code in linux python (idle)
 
Old 07-14-2005, 03:18 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
There's a python tool called "Freeze" out there. I've never used it, only heard references to it, but I think it does what you're looking for. Keep in mind that python was not intended to build executables, it was designed as a scripting language, so YMMV.
 
Old 07-14-2005, 03:37 PM   #3
charnel
Member
 
Registered: Mar 2005
Distribution: mandrake 10.0
Posts: 58

Original Poster
Rep: Reputation: 15
thanks for reply. I just wondered that if I can use python for devoloping some software for industrial plants...and keping the source code to my self...
 
Old 07-14-2005, 04:16 PM   #4
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
Quote:
Originally posted by charnel
I just wondered that if I can use python for devoloping some software for industrial plants...and keping the source code to my self...
You could distribute only "compiled" python files (.pyc or .pyo). It's not impossible to figure out the internals of your program, but it makes it difficult to do so.

From the python tutorial:
Quote:
# It is possible to have a file called spam.pyc (or spam.pyo when -O is used) without a file spam.py for the same module. This can be used to distribute a library of Python code in a form that is moderately hard to reverse engineer.

# The module compileall can create .pyc files (or .pyo files when -O is used) for all modules in a directory.
 
Old 07-14-2005, 04:29 PM   #5
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
And, of course, anything can be reverse engineered. I mean, you can convert binarys to assembly language and hack at that, and there are decompilers for virtually every language. It's just a matter of how hard you're going to make it for them.

If this is being done for a company, why are you not providing them with the source? (Unless it's contract work, in which case you should be able to get away with a strong license: companies do try to stay on the legal side of things)
 
Old 07-15-2005, 06:58 AM   #6
charnel
Member
 
Registered: Mar 2005
Distribution: mandrake 10.0
Posts: 58

Original Poster
Rep: Reputation: 15
thanks every one for beeing so patient and answering
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Processing Conflict: python-devel conflicts python< 2.3.4-13.1 guarriman Fedora 2 04-23-2009 07:02 PM
installing python library's (Python Numeric) Four Linux - Newbie 1 10-16-2005 02:31 PM
Python guru's - Is this a python bug? or is it me? bardinjw Programming 2 06-23-2005 08:17 AM
WineX, python-gnome, and python-gtk DrD Fedora 0 08-03-2004 12:11 PM
install python 2.3 ,necssary to remove python 2.2 ngan_yine Linux - Newbie 7 12-28-2003 04:07 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration