← Back to team overview

agesys-dev team mailing list archive

[Bug 942583] Re: oursql 0.9.3 Py3k Doesn't compile on OSX Lion

 

Tried to compile other native extensions without success. It's clearly a
Python bug with 10.7.3 and the new way Xcode handle things inside it's
own "sandbox". We no longer have /Developer/... everything lies inside
Xcode.app/ dir.

I'll try to report this to Py3k team ASAP.

Also I'm trying one last test... building Python from the ground with my
existing Xcode setup to see if it links correctly with the libs
available. Them I will rebuild oursql and report back.


Thanks.

-- 
You received this bug notification because you are a member of Agesys
Team, which is subscribed to oursql.
https://bugs.launchpad.net/bugs/942583

Title:
  oursql 0.9.3 Py3k Doesn't compile on OSX Lion

Status in oursql:
  New

Bug description:
  Tried to compile on a Vanilla installation of OSX Lion 10.7.3 with
  Python 3.2.2.

  XCode 4.3 is installed.

  First it rants it can't find the proper SDK:

  
  Compiling with an SDK that doesn't seem to exist: /Developer/SDKs/MacOSX10.6.sdk
  Please check your Xcode installation

  (btw it is pointing to Snow Leopard's SDK... but I think it is a
  Python related problem).

  anyway, I did some trickery on the Terminal to override the includes,
  pointing to the new SDK locations on Lion:

  yAir:oursql-0.9.3 yg$ sudo CC=gcc CXX=g++ LDSHARED="gcc -bundle
  -undefined dynamic_lookup -arch i386 -arch x86_64 -isysroot
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk
  -isysroot
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk
  -g" python3 setup.py install

  lots of errors on compile time...

  tried with older sdk 10.6:

  sudo CC=gcc CXX=g++ LDSHARED="gcc -bundle -undefined dynamic_lookup
  -arch i386 -arch x86_64 -isysroot
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
  -isysroot
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
  -g" python3 setup.py install >> output 2>&1

  
  The output with all errors is attached...

  Is it a Python Mac binaries fault ? If so, are you aware of any
  relative bugs already reported on this?

  
  Also, I've found this and it seems related:
  http://grokbase.com/t/python/python-list/11ammtv326/sysconfig-on-os-x-10-7-lion-and-xcode-4-2

To manage notifications about this bug go to:
https://bugs.launchpad.net/oursql/+bug/942583/+subscriptions


References