[New-bugs-announce] [issue7580] distutils makefile from python.org installer doesn't work on OS X Snow Leopard

Ben Kaplan report at bugs.python.org
Sun Dec 27 05:02:05 CET 2009

New submission from Ben Kaplan <benjamin.kaplan at case.edu>:

Comes from this thread on comp.lang.python:

The Makefile for distutils in the Mac binary for Python 3.1 specifies
the use of the OS X 10.4u SDK. However, XCode only includes the SDK for
the newest two versions of OS X, currently 10.5 and 10.6. This causes
build problems with gmpy on OS X Snow Leopard and the newest XCode. It
probably will also cause problems on other libraries that are compiled
using distutils but I've seen no other reports of issues. I don't know
enough about makefiles to come up with a patch that would work on all
supported versions of OS X. 

The offending code is line 118 in the Makefile, which installs itself in
The line is

Here's a copy of Mensanator's errors:

$ /Library/Frameworks/Python.framework/Versions/3.1/bin/python3
setup.py install
running install
running build
running build_ext
building 'gmpy' extension
creating build/temp.macosx-10.3-fat-3.1
creating build/temp.macosx-10.3-fat-3.1/src
Compiling with an SDK that doesn't seem to exist: /Developer/SDKs/
Please check your Xcode installation
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -
fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -I./src -I/
opt/local/include -I/Library/Frameworks/Python.framework/Versions/3.1/
include/python3.1 -c src/gmpy.c -o build/temp.macosx-10.3-fat-3.1/src/
In file included from src/gmpy.c:206:
Python.h:11:20: error: limits.h: No such file or directory
Python.h:14:2: error: #error "Something's broken.  UCHAR_MAX should be
defined in limits.h."

assignee: tarek
components: Distutils, Installation, Macintosh
messages: 96896
nosy: bskaplan, tarek
severity: normal
status: open
title: distutils makefile from python.org installer doesn't work on OS X Snow Leopard
versions: Python 3.1

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list