From: Maurice L. <mj...@ga...> - 2003-01-18 19:30:06
|
Trying to clean out my inbox and finally getting back to this. Alan W. Irwin writes: > 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 Unfortunately this doesn't work. Putting: # Fixes to work with python 1.5 under RH 7.3 enable_python="yes" 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} in my ~/config/cf_plplot.in, gives the following line in bindings/python/Makefile: ourpythondir = ${prefix}//usr/lib/python1.5//site-packages so since I have set prefix to $HOME/tools, this results in absolute nonsense. The culprit is: ourpythondir = ${prefix}/@PYTHON_INSTDIR@ in bindings/python/Makefile.am. How to fix this? -- Maurice LeBrun mj...@ga... Research Organization for Information Science and Technology of Japan (RIST) |