The Artima Developer Community
Sponsored Link

Python Buzz Forum
Why having multiple installed Pythons is a problem on OS X

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Bob Ippolito

Posts: 255
Nickname: etrepum
Registered: Nov, 2003

Bob Ippolito uses MacPython too much
Why having multiple installed Pythons is a problem on OS X Posted: Dec 8, 2003 4:38 PM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Bob Ippolito.
Original Post: Why having multiple installed Pythons is a problem on OS X
Feed Title: Bob's Rants
Feed URL: http://www.pycs.net/bob/weblog/rss.xml
Feed Description: from __future__ import *
Latest Python Buzz Posts
Latest Python Buzz Posts by Bob Ippolito
Latest Posts From Bob's Rants

Advertisement

Jack nailed down the reason that extension modules fail to link properly on 10.3 if you have a separate Python installed. The -framework search path on OS X for linking (compile and runtime) hits /System last, and the Makefile for the system Python does not override the search path with -F.

If you want to use the /System version of Python at all, you really shouldn't have another Python installed, because the extensions you build won't work. Proposed fixes include a patch to distutils, or the Makefile, but the easiest solution is just not installing another Python.

You really don't need one unless you're staring a 2.3.0 interpreter bug in the face, or you need to build 10.2 compatible extensions and app bundles. This may not even work reliably, it has not been thoroughly tested. Doing it properly would at least require setting the MACOSX_DEPLOYMENT_TARGET environment variable to 10.2, but it's probably not that easy, especially for non-trivial extensions. Personally, I just don't have enough time in my day to deal with building software for 10.2 users, especially because 10.3 has new frameworks and libraries that make development easier.

Read: Why having multiple installed Pythons is a problem on OS X

Topic: Playlist to XML Previous Topic   Next Topic Topic: De kritiek van Hans

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use