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
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