Re: [Pythonmac-SIG] Pysqlite build problem

2006-10-16 Thread skip
 Ronald == Ronald Oussoren [EMAIL PROTECTED] writes:

Ronald On Oct 15, 2006, at 11:43 PM, [EMAIL PROTECTED] wrote:

 I'm trying to get pysqlite 2.3.2 built on my Mac (OSX 10.4.8, gcc-4.0,
 Python 2.4.4c1).  Sqlite built and installed into /usr/local just  
 fine.  I
 adjusted setup.cfg appropriately:
 
 [build_ext]
 define=
 include_dirs=/usr/local/include:/usr/include
 library_dirs=/usr/local/lib:/usr/lib
 libraries=sqlite3

Ronald Why do you add /usr/include and /usr/lib to include_dirs and
Ronald library_dirs? 

I didn't add them.  They were there by default.  I believe I tried taking
them out leaving just /usr/local/* and the results were worse.

I'll go back and give it another try when I have a chance.

Skip
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


[Pythonmac-SIG] Build/install framework Python in non-standard location

2006-10-16 Thread Kevin Walzer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I'm trying to build a framework Python 2.5 that installs to a
non-standard location (/usr/local/python-unix-framework). The reason I'm
doing this is to link to an X11-based version of Tcl/Tk, and still be
able to use py2app for app deployment. (I have previously been able to
build a standard non-framework Python that links to an X11-based Tcl/Tk,
but the resulting binaries cannot be wrapped via py2app, and the other
wrapping tools--freeze, cx_freeze, pyinstaller--don't work well or at
all on OS X.)

I thought that using these build flags would work:

./configure --enable-framework --enable-universalsdk
- --prefix=/usr/local/python-unix-framework

Everything built fine, but when I ran sudo make install, everything
started getting placed in /Library/Frameworks. This isn't what I
wanted--that's where the official build of Python 2.5 from python.org is
installed (and which links to Tcl/Tk Aqua). I need the second
installation to test the X11 version of my application, and the official
installation to test the Aqua version.

What do I need to hack to get the frameworks to install in my preferred
location, instead of the default? And why doesn't Python pick up the
./configure flags correctly anyway?

- --Kevin

- --
Kevin Walzer
Poetic Code
http://www.kevin-walzer.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFM6i3rTC5hIgjqTMRAmIKAKCqjLDYWqndY4DaIwA9tCY7TUecVQCbBqJQ
9oGQrBvJw1rnihRSnD4jJsk=
=htwQ
-END PGP SIGNATURE-
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Build/install framework Python in non-standard location

2006-10-16 Thread Bob Ippolito
On 10/16/06, Kevin Walzer [EMAIL PROTECTED] wrote:

 I'm trying to build a framework Python 2.5 that installs to a
 non-standard location (/usr/local/python-unix-framework). The reason I'm
 doing this is to link to an X11-based version of Tcl/Tk, and still be
 able to use py2app for app deployment. (I have previously been able to
 build a standard non-framework Python that links to an X11-based Tcl/Tk,
 but the resulting binaries cannot be wrapped via py2app, and the other
 wrapping tools--freeze, cx_freeze, pyinstaller--don't work well or at
 all on OS X.)

 I thought that using these build flags would work:

 ./configure --enable-framework --enable-universalsdk
 - --prefix=/usr/local/python-unix-framework

 Everything built fine, but when I ran sudo make install, everything
 started getting placed in /Library/Frameworks. This isn't what I
 wanted--that's where the official build of Python 2.5 from python.org is
 installed (and which links to Tcl/Tk Aqua). I need the second
 installation to test the X11 version of my application, and the official
 installation to test the Aqua version.

 What do I need to hack to get the frameworks to install in my preferred
 location, instead of the default? And why doesn't Python pick up the
 ./configure flags correctly anyway?

It does pick up the configure flags correctly, but you need to pass
the correct configure flags.

If you'd have used --help you'd have seen that --enable-framework
takes a path, which defaults to /Library/Frameworks. If you want it to
go somewhere else, give it a different path.

-bob
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


[Pythonmac-SIG] Problem with installation of Imaging (pil)

2006-10-16 Thread Benoit Dupont
Hello,

I want to install the Imaging (pil) library on a Mac OS X machine,  
but I need your help, cause I have the following problem when I try  
to build the lib using python setup.py install

  python setup.py install

running install
running build
running build_py
running build_ext
--- using frameworks at /System/Library/Frameworks
building '_imaging' extension
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk - 
fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd - 
fno-common -dynamic -DNDEBUG -g -O3 -DHAVE_LIBJPEG -DHAVE_LIBZ -I/ 
System/Library/Frameworks/Tcl.framework/Headers -I/System/Library/ 
Frameworks/Tk.framework/Headers -IlibImaging -I/opt/local/include -I/ 
Library/Frameworks/Python.framework/Versions/2.5/include -I/usr/local/ 
include -I/usr/include -I/Library/Frameworks/Python.framework/ 
Versions/2.5/include/python2.5 -c _imaging.c -o build/ 
temp.macosx-10.3-fat-2.5/_imaging.o
In file included from /usr/include/math.h:26,
  from /Library/Frameworks/Python.framework/Versions/ 
2.5/include/python2.5/pyport.h:200,
  from /Library/Frameworks/Python.framework/Versions/ 
2.5/include/python2.5/Python.h:57,
  from _imaging.c:74:
/usr/include/architecture/ppc/math.h:477: warning: conflicting types  
for built-in function 'scalb'
In file included from /usr/include/wchar.h:112In file included from / 
usr/include/wchar.h:112,
  from /Library/Frameworks/Python.framework/Versions/ 
2.5/include/python2.5/unicodeobject.h:118,
  from /Library/Frameworks/Python.framework/Versions/ 
2.5/include/python2.5/Python.h:83,
  from _imaging.c:74:
/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory,
  from /Library/Frameworks/Python.framework/Versions/ 
2.5/include/python2.5/unicodeobject.h:118,
  from /Library/Frameworks/Python.framework/Versions/ 
2.5/include/python2.5/Python.h:83,
  from _imaging.c:74:
/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory

_imaging.c:2765: warning: initialization from incompatible pointer type
_imaging.c:2767: warning: 'intargfunc' is deprecated
_imaging.c:2767: warning: initialization from incompatible pointer  
type_imaging.c:2765: warning: initialization from incompatible  
pointer type
_imaging.c:2767: warning: 'intargfunc' is deprecated
_imaging.c:2767: warning: initialization from incompatible pointer type
_imaging.c:2768: warning: 'intargfunc' is deprecated
_imaging.c:2768: warning: initialization from incompatible pointer type
_imaging.c:2769: warning: 'intintargfunc' is deprecated
_imaging.c:2769: warning: initialization from incompatible pointer type
_imaging.c:2770: warning: initialization from incompatible pointer type
_imaging.c:2771: warning: initialization from incompatible pointer type

_imaging.c:2768: warning: 'intargfunc' is deprecated
_imaging.c:2768: warning: initialization from incompatible pointer type
_imaging.c:2769: warning: 'intintargfunc' is deprecated
_imaging.c:2769: warning: initialization from incompatible pointer type
_imaging.c:2770: warning: initialization from incompatible pointer type
_imaging.c:2771: warning: initialization from incompatible pointer type
lipo: can't figure out the architecture type of: /var/tmp//ccV3P1kE.out


**

When i try python setup.py build_ext -i, and 've got the following  
message...

benoit-duponts-computer:~/Documents/2ème license/IA/Python/ 
Imaging-1.1.5 benoitdupont$ python setup.py build_ext -i
running build_ext
--- using frameworks at /System/Library/Frameworks
building '_imaging' extension
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk - 
fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd - 
fno-common -dynamic -DNDEBUG -g -O3 -DHAVE_LIBJPEG -DHAVE_LIBZ -I/ 
System/Library/Frameworks/Tcl.framework/Headers -I/System/Library/ 
Frameworks/Tk.framework/Headers -IlibImaging -I/opt/local/include -I/ 
Library/Frameworks/Python.framework/Versions/2.5/include -I/usr/local/ 
include -I/usr/include -I/Library/Frameworks/Python.framework/ 
Versions/2.5/include/python2.5 -c _imaging.c -o build/ 
temp.macosx-10.3-fat-2.5/_imaging.o
In file included from /usr/include/math.h:26,
  from /Library/Frameworks/Python.framework/Versions/ 
2.5/include/python2.5/pyport.h:200,
  from /Library/Frameworks/Python.framework/Versions/ 
2.5/include/python2.5/Python.h:57,
  from _imaging.c:74:
/usr/include/architecture/ppc/math.h:477: warning: conflicting types  
for built-in function 'scalb'
In file included from /usr/include/wchar.h:112,
  from /Library/Frameworks/Python.framework/Versions/ 
2.5/include/python2.5/unicodeobject.h:118,
  from /Library/Frameworks/Python.framework/Versions/ 
2.5/include/python2.5/Python.h:83,
  from _imaging.c:74:
/usr/include/stdarg.h:4:25: error: