On  18 Nov 2006, at 4:34 PM, [EMAIL PROTECTED] wrote:


Ronald> You probably have to add the directory containing readline to Ronald> the CFLAGS and LDFLAGS when running Python's configure, AFAIK
    Ronald> setup.py doesn't automaticly look for readline in
    Ronald> $prefix/{lib,include}.

Since readline is an extension module I think you want to specify this stuff
to distutils, e.g.:

Changing the CFLAGS/LDFLAGS at configure time works to (at least on darwin/OSX systems). I applied a patch to that effect in 2.4 and 2.5 because I got mightily annoyed with this. Before my patch you could specify other CFLAGS/LDFLAGS as much as you liked, but the autodetect code in setup.py would never use that. With my patch the include and library directories in those variablese are used to autodetect readline and other libraries.

The reason this is only done on OSX is that I never got around to asking on python-dev if this behaviour is useful on other platforms as well (IMHO it is, and the code should work at least on Linux and other GCC-using platforms).

Ronald

Attachment: smime.p7s
Description: S/MIME cryptographic signature

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

Reply via email to