[Pythonmac-SIG] Question about "setup.py build"

Bob Ippolito bob at redivi.com
Wed Jan 24 23:26:36 CET 2007

On 1/24/07, Daniel Lord <daniellord at mac.com> wrote:
> I admit to being a novice at this yet, but I couldn't find anything
> relevant to this issue on-line:
> I am trying to build a version of pysqlite that works with sqllite3 :
> 1. Apple's installed version doesn't work with the latest so I
> reinstalled
> 2. sqllite3 won't build shared libs for universal binaries (typical
> of a lot of linux/UNIX build since the developers never have that
> problem except on OS X)

Why would you want shared libs anyway? I'm pretty sure the Mac build
script that comes with Python 2.5 (Mac/BuildScript/build-installer.py)
will automatically download SQLite and compile it universally as a
static lib. Take a look in there.

> 3. so I built Intel-only but....
> 4. pysqlite keeps trying to build a universal build (CFLAGS="-O -g -
> isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"; etc.
> etc.) with "python setup.py build"
> 5. But nowhere in the setup.py or setup.cfg  is that set. I
> explicitly unset CFLAGS and LDFLAGS to ensure it wasn't coming from
> there.
> So where is it being set? By the Python build? Where? I jsut need a
> little pointer or two and I'll do the rest. Thanks.

The same place that everything else that distutils knows about is
coming from, the Makefile in your Python library that was created when
Python was built: lib/python2.4/config/Makefile


More information about the Pythonmac-SIG mailing list