From: Alan W. I. <ir...@be...> - 2002-12-26 05:44:53
|
On Wed, 25 Dec 2002, Maurice LeBrun wrote: > OK, I found it on my RH7.3 system in the python1.5 install. But > unfortunately, not under python2.2. Probably the biggest flaw of RH7.3 in my > book is this split python distribution. I agree 100 per cent. When making the RH 7.3 rpm, I got around the RH split python problem by forcing a number of variables for plplot-5.1.0. I haven't tried this for CVS HEAD, but I believe it should work since I copied most of plplot/cf/sysloc.in to plplot/sysloc.in where these variables should override the python search that ordinarily fails completely on RH 7.3 because of their split system. PY_VERSION=python -c 'import sys ; print sys.version[0:3]' export PYTHON_INC_DIR=/usr/include/python${PY_VERSION}/ export PYTHON_MOD_DIR=/usr/lib/python${PY_VERSION}/ export PYTHON_CFG_DIR=${PYTHON_MOD_DIR}/config export PYTHON_NUM_DIR=${PYTHON_INC_DIR}/Numeric/ export PYTHON_MACH_DIR=${PYTHON_MOD_DIR}/site-packages export PYTHON_DIR=${PYTHON_MACH_DIR} ./configure --prefix=/usr --with-double --enable-dyndrivers --enable-gnome --ena ble-ntk --disable-linuxvga See plplot/rpm/plplot_redhat7.3.spec. Of course it is just a workaround, but it may be a necessary one since I am not sure we should expect sysloc.in to be able to deal with a split python version system. Hope this helps. Alan email: ir...@be... phone: 250-727-2902 FAX: 250-721-7715 snail-mail: Dr. Alan W. Irwin Department of Physics and Astronomy, University of Victoria, P.O. Box 3055, Victoria, British Columbia, Canada, V8W 3P6 __________________________ Linux-powered astrophysics __________________________ |