LinuxQuestions.org
Help answer threads with 0 replies.
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 03-17-2004, 03:17 PM   #1
gamehack
Member
 
Registered: Jun 2003
Location: Sevenoaks, UK
Distribution: Ubuntu
Posts: 183

Rep: Reputation: 30
A Python question


I have read today that emerge is written in Python and want to ask is it possible in someway to produce executables for linux written in Python ? Because I think Python is an interpreted language.

Thanks in advance
 
Old 03-17-2004, 03:54 PM   #2
rootyard
Member
 
Registered: Aug 2003
Posts: 167

Rep: Reputation: 30
Yeah, you make it executable by doing chmod +x FILENAME.py. Make sure you include the shabang (#! /usr/bin/env python) on the first line of the file.

Now, if you're looking to do "binaries" you can use py2exe for windows apps but there's really no need to this for Linux. Also, keep in mind when you create a binaries package you automatically make it altogether 2.5mb even for a "Hello World" program.
 
Old 03-17-2004, 09:09 PM   #3
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Rep: Reputation: 32
You might find some information here:
http://psyco.sourceforge.net/

It's something like a JIT compiler for Python.
 
  


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
python variable question bendeco13 Programming 6 02-03-2005 07:22 AM
Python question gamehack Programming 5 01-03-2005 05:21 AM
Python question bluefire Programming 5 09-28-2004 12:30 PM
python question ywchen2000 Programming 1 04-20-2004 11:46 PM
Python question m4rccd Programming 1 08-24-2003 06:04 AM

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

All times are GMT -5. The time now is 10:56 PM.

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