[Python-bugs-list] [ python-Bugs-492496 ] distutils, shared libraries and Mac OS X

noreply@sourceforge.net noreply@sourceforge.net
Thu, 13 Dec 2001 07:49:31 -0800


Bugs item #492496, was opened at 2001-12-13 07:49
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=492496&group_id=5470

Category: Distutils
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Matthew King (kyrrigle)
Assigned to: Nobody/Anonymous (nobody)
Summary: distutils, shared libraries and Mac OS X

Initial Comment:
My python:
Python 2.1.1 (#33, Dec  9 2001, 12:26:52) 
[GCC 2.95.2 19991024 (release)] on darwin5

I was trying to configure the sketch app and 
setup.py was complaining that it could not find my 
tcl/tk libraries.  The problem is that Darwin uses 
the .dylib extension for shared libraries and 
distutils was looking for .so.

as a "fix", in distutils/unixccompiler.py I made the 
following change:

76c76,78
<
---
>     import sys
>     if sys.platform[:-1] == "darwin": # Mac OS X
>         shared_lib_extension = ".dylib"

this worked, but I'm sure there's a better way...

i'd imagine that this would also be an issue on 
HP-UX with the .sl extension?



----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=492496&group_id=5470