[Distutils] distutils on OS X?

Thomas Heller thomas.heller@ion-tof.com
Fri Nov 9 05:39:01 2001


> Hi,
> 
> I haven't seen many postings about Darwin and Mac OS X in this 
> group, so let me add one!
> 
> Has anybody a clue about the official status of distutils on 
> this platform? I'm trying to build the reportlab package, 
> but find that distutils seems to be fully unaware of anything
> like a 'darwin' platform...
> 
> On my OS X box I get the following:
> 
> [localhost:~/Desktop/reportlab/lib] dinu% python
> Python 2.1 (#4, 05/17/01, 18:34:21) 
> [GCC Apple DevKit-based CPP 6.0alpha] on darwin1
> Type "copyright", "credits" or "license" for more information.
> >>> import sys, os
> >>> from distutils.util import get_platform
> >>> os.name
> 'posix'
> >>> sys.platform
> 'darwin1'
> >>> get_platform()
> 'darwin-1.4-Power Macintosh'
> >>> 
> 
> (Note the space in 'darwin-1.4-Power Macintosh'!) I checked the 
> distutils packge of 2.2a?, but that doesn't seem to be any 
> different.
> 
So what's the problem? Has it to do with the space?
Probably best would be to prepare a patch, assure that it works,
and upload it to sourceforge.

Thomas