[Chicago] Python on OSX Install

Ryan Manly ryan.manly at gmail.com
Fri Oct 12 02:08:34 CEST 2012


P.S. as far as making other modules easier to install on my old system I
simply installed setup_tools (which puts easy_install at the Python.org
package destinations) and prepended

/Library/Frameworks/Python.framework/Versions/2.7/bin

to $PATH and then things like

sudo easy_install ipython[zmq,test]

works with Python.org 2.7.3 etc. except on the rare occasion you need to

'arch -i386 ipython'

if still trying to use pygame for example.

P.P.S. I did this early last winter when I was planning on learning python
the first time, this is from my notes. Only spent about 3-4 hours one
weekend with it then before I had to use my learnin' time for other things.


:(

~Ryan



On Thu, Oct 11, 2012 at 6:33 PM, Ryan Manly <ryan.manly at gmail.com> wrote:

> I am a noob. I bought the 4th Edition book a few weeks ago and I signed up
> for that Coursera course last week, I think.
>
> But what is wrong with using the installer from Python.org? I mean aside
> from simply setting CFLAGS or something at compile time?
>
> A simple
>
> export
> PYTHONPATH=$PYTHONPATH:/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python:/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC
>
> even gets you access to Foundation in 2.7.3. Without any super obvious
> errors in my (really) limited usage.
>
> Truly curious if there are other reasons people are using brew and source
> for more than just compile time tweaks.
>
> Thanks,
> Ryan M. Manly
> Glenbrook High Schools
>
>
>
>
> On Thu, Oct 11, 2012 at 5:25 PM, Rob Kapteyn <robkapteyn at gmail.com> wrote:
>
>> I haven't done this for a while.
>> From what I recall, the "canned" python build is a 32-bit and I wanted to
>> try out 64-bit python.
>> According to my own notes:
>>
>> building python on Snow Leopard:
>> ./configure --enable-framework MACOSX_DEPLOYMENT_TARGET=10.6
>> --with-universal-archs=intel --enable-universalsdk=/
>> Optionally:  --with-framework-name=python64
>>
>> After this configure, the usual:
>> make
>> sudo make install
>>
>> Hope that helps.
>> -Rob
>>
>> On Thu, Oct 11, 2012 at 4:00 PM, Tom Yarrish <tom at yarrish.com> wrote:
>>
>>> Hey all,
>>> So I wanted to find out if there is a decent install doc on getting
>>> Python 2.x (from source) running correctly on OS X (in this case 10.6
>>> and higher).  I'm still in the process of googling, but I wasn't sure
>>> if anyone had a good reference guide to work off of.
>>>
>>> I've seen a lot about how there are some minor annoyances in how Apple
>>> packages it, and I run into some of them now and then when I'm trying
>>> to install some python modules that are more geared for *nix systems.
>>>
>>> So aside from running a Linux VM to do my Python stuff, are there any
>>> other good resources to look at?
>>>
>>> Thanks,
>>> Tom
>>> _______________________________________________
>>> Chicago mailing list
>>> Chicago at python.org
>>> http://mail.python.org/mailman/listinfo/chicago
>>>
>>
>>
>> _______________________________________________
>> Chicago mailing list
>> Chicago at python.org
>> http://mail.python.org/mailman/listinfo/chicago
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20121011/3067b60f/attachment.html>


More information about the Chicago mailing list