LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 11-14-2006, 07:03 AM   #1
dudeman41465
Member
 
Registered: Jun 2005
Location: Kentucky
Distribution: Ubuntu
Posts: 794

Rep: Reputation: 56
Python Compiler for Linux


I've heard of a Linux equivalent of py2exe called freeze, but that the only way to get it is to compile the Linux version of python from source. Is there a way to add this to python that was installed from the repos? I would like to keep my python installation from the repos b/c I don't have to worry about keeping up with updates that way, synaptic tells me when it has an update and that's it.

The reason I want to compile python files into Linux executable binaries is because sometimes I use libraries that do not come standard with python. One example is the graphics library I got accustomed to using because we went over it in my CS class as a frontend for tk. In this instance I would like to be able to compile the file so that it includes all of the information used, libraries and all(just like p2exe), so that I don't have to worry about packaging the non-default library with the application.
 
Old 11-14-2006, 10:30 AM   #2
melinda_sayang
Member
 
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475

Rep: Reputation: 31
Just copy the python library to your project library. So your project consist of python library and your python code. Just make script to launch the project. Make sure you take care the path so your script can run your python code with python library inside your project directory.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
checking for C compiler default output... configure: error: C compiler cannot create fiorejm Linux - Software 6 11-12-2009 01:35 PM
LXer: Move to python 2.4 / Changing the packaging style for python packages LXer Syndicated Linux News 0 06-13-2006 08:54 PM
python problem - compiled from source - python -V still showing old version txm123 Linux - Newbie 1 02-15-2006 12:05 PM
Python upgradation,setting compiler $PATH jared78 Linux - Newbie 9 01-20-2006 01:12 AM
Perl or Python to C++ compiler JHuizingh Programming 0 07-16-2002 12:36 PM


All times are GMT -5. The time now is 05:05 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration