[prev in list] [next in list] [prev in thread] [next in thread]
List: pythonmac-sig
Subject: Re: [Pythonmac-SIG] Does anyone on the planet know how to build
From: Ronald Oussoren <ronaldoussoren () mac ! com>
Date: 2006-11-18 15:42:07
Message-ID: 563A1842-1DC9-4F00-A349-38035C4B43DA () mac ! com
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On 18 Nov 2006, at 4:34 PM, skip@pobox.com 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
["smime.p7s" (application/pkcs7-signature)]
_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic