Cannot force configure/setup.py to pick up location of readline(SFWrline) on Solaris 10

C

Chris Miles

On a standard Solaris 10 installation with Sun-supplied open-source
packages installed (like SFWrline for readline libs) I cannot seem to
force Python configure/setup.py to build with readline support.

SFWrline installs readline in /opt/sfw/lib & /opt/sfw/include

(This is all attempted with Python-2.4.3 on Solaris 10 06/06 i386)

With this configure:
../configure --prefix=/opt/python-2.4.3 --enable-shared
CPPFLAGS=-I/opt/sfw/include CFLAGS=-I/opt/sfw/include LDFLAGS=-L/opt/sfw/lib

The resulting output includes:
....
checking for rl_callback_handler_install in -lreadline... yes
checking for rl_pre_input_hook in -lreadline... yes
checking for rl_completion_matches in -lreadline... yes
....


and config.log contains:
....
ac_cv_lib_readline_rl_callback_handler_install=yes
ac_cv_lib_readline_rl_completion_matches=yes
ac_cv_lib_readline_rl_pre_input_hook=yes
....


However, make doesn't build a readline module and I think this is
because setup.py is not taking the custom *FLAGS into account. Even if
I export them as environment variables, I get no readline module.

How do I force the build to use the custom paths?

And/or: can we teach configure/setup.py to include /opt/sfw/ when on
Solaris, as this is the standard location for Sun's supplied open-source
packages (ie: on the Companion disc) ?

btw: an answer to this is not to install other 3rd party readline
packages such as from sunfreeware.com or blastwave, as that should not
be necessary when Sun supply the packages themselves (and some
organisations will not allow those packages).

Cheers,
Chris
 
?

=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=

Chris said:
How do I force the build to use the custom paths?

Not through setup.py. Instead, you edit Modules/Setup
to provide per-module compile and link flags.

Regards,
Martin
 
?

=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=

Chris said:
How do I force the build to use the custom paths?

Not through setup.py. Instead, you edit Modules/Setup
to provide per-module compile and link flags.

Regards,
Martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top