Can't build pyscopg2 in Snow Leopard...

Jerry LeVan <[email protected]>
Newsgroups gmane.comp.python.db.psycopg.devel
Message-ID <[email protected]>
Hi,

I have downloaded pyscopg2-2.0.12.

I don't see to have any luck trying to build the rascal
with MacPython 2.6.2 ( Installed in Snow Leopard...)

Here is a sample build attempt...

It appears that setup really wants to build
against 10.4...

Any suggestions?

Jerry



[mbp:~/python/psycopg2-2.0.12]$ export MACOSX_DEPLOYMENT_TARGET=10.5
[mbp:~/python/psycopg2-2.0.12]$ python setup.py build
running build
running build_py
creating build/lib.macosx-10.5-fat-2.6
creating build/lib.macosx-10.5-fat-2.6/psycopg2
copying lib/__init__.py -> build/lib.macosx-10.5-fat-2.6/psycopg2
copying lib/errorcodes.py -> build/lib.macosx-10.5-fat-2.6/psycopg2
copying lib/extensions.py -> build/lib.macosx-10.5-fat-2.6/psycopg2
copying lib/extras.py -> build/lib.macosx-10.5-fat-2.6/psycopg2
copying lib/pool.py -> build/lib.macosx-10.5-fat-2.6/psycopg2
copying lib/psycopg1.py -> build/lib.macosx-10.5-fat-2.6/psycopg2
copying lib/tz.py -> build/lib.macosx-10.5-fat-2.6/psycopg2
running build_ext
building 'psycopg2._psycopg' extension
creating build/temp.macosx-10.5-fat-2.6
creating build/temp.macosx-10.5-fat-2.6/psycopg
gcc -arch i386 -arch ppc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g - 
O3 -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.0.12 (dt dec  
ext pq3)" -DPG_VERSION_HEX=0x080400 -DPSYCOPG_EXTENSIONS=1 - 
DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -DHAVE_PQPROTOCOL3=1 -I/ 
Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -I.  
-I/usr/local/pgsql/include -I/usr/local/pgsql/include/server -c  
psycopg/psycopgmodule.c -o build/temp.macosx-10.5-fat-2.6/psycopg/ 
psycopgmodule.o
In file included from /Library/Frameworks/Python.framework/Versions/ 
2.6/include/python2.6/unicodeobject.h:4,
                  from /Library/Frameworks/Python.framework/Versions/ 
2.6/include/python2.6/Python.h:85,
                  from psycopg/psycopgmodule.c:23:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error:  
stdarg.h: No such file or directory
In file included from /Library/Frameworks/Python.framework/Versions/ 
2.6/include/python2.6/unicodeobject.h:4,
                  from /Library/Frameworks/Python.framework/Versions/ 
2.6/include/python2.6/Python.h:85,
                  from psycopg/psycopgmodule.c:23:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error:  
stdarg.h: No such file or directory
lipo: can't figure out the architecture type of: /var/folders/5N/ 
5N7bzOiYF3ONFPRhfGuq3k+++TI/-Tmp-//ccLDZpf6.out
error: command 'gcc' failed with exit status 1
[mbp:~/python/psycopg2-2.0.12]$
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.