12-19-2004, 03:59 AM #1
PYTHON PROGRAMMERS!!! how do i compile/run linux-based python code on OS X
- Member Since
- Nov 10, 2004
- Toronto, Canada
- stock 17" 2.8ghz unibody mbp.
any experienced programmers know what i can do to set up my osx so i can write python - i know osx supports python.. but my univ is being gay, we're learning to write python for the linux os... osx is based on bsd.. linux isn't.. i had some mac wiz tell me that linux is based on gnu while osx is bsd.. he suggested i run linux on my mac.. but i dont want to do that.. another option is via terminal and ssh to the school's inux server - dont want to do that either.. i want to full advantage of my pbook - but he said i need to learn how to create makefiles (that has linux and bsd targets) and write portable code << i doubt i'll be able to do that since i'm totally new to python..
so any experience programmer have any suggestions as to what i can do? any help will do - i dont start writing python till january..
thanx in advance
12-20-2004, 02:35 PM #2meltbanana314GuestOriginally Posted by pkny
01-22-2005, 10:01 AM #3ES.EGuest
In my experience you only need Python installed in your Mac.
And that's it. Python scripts are platform independent, at least
as far as my experience goes. I have developed some scripts
in my PowerBook which i run in Linux, and viceversa.
No problems with compiling because Python compiles on
run time. So your problem does not exist!
01-25-2005, 05:54 PM #4JdurrGuest
Linux isn't based off of GNU, it just uses GNU utilities. Linux is just the kernel. BSD is based off of UNIX, but so is Linux. Both BSD and OSX use GNU utilities. They also all use other open source utilities such as Python. If you open up a terminal in OSX (or console, I forget what they call thier command line) and type "python" you will get the little ">>>" python prompt and have access to the python interpreter. If that isn't enough, or missing for whatever reason then you can download a python IDLE at python.org
If you want to write re-usable Python scripts instead of just writting things into the interpreter, then you are going to need a text editor such as VI or Pico. I know these editors are out there for mac. If you are going to need to keep up with people using Linux, then I recommend you get Fink as it gives you access to alot of GNU programs.
03-20-2005, 06:17 PM #5mscnlnGuest
There is absolutely nothing to worry about, you couldnt write a python program that works on linux but not OS X even if you tried.
Well, unless you wrote a python module in C or something
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By Slancelot in forum OS X - Development and DarwinReplies: 4Last Post: 05-10-2015, 09:06 PM
By symbolix in forum OS X - Development and DarwinReplies: 4Last Post: 06-26-2013, 04:52 PM
By Mfred in forum OS X - Apps and GamesReplies: 1Last Post: 09-11-2012, 12:24 AM
By programmaster in forum OS X - Development and DarwinReplies: 5Last Post: 11-15-2011, 11:16 AM