By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,345 Members | 1,790 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,345 IT Pros & Developers. It's quick & easy.

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

P: n/a
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

--
http://chrismiles.info/

Oct 13 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Chris Miles schrieb:
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
Oct 13 '06 #2

P: n/a
Chris Miles schrieb:
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
Oct 13 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.