From: Alan W. I. <ir...@be...> - 2002-09-06 16:43:09
|
The configure script is set up so you can override it by setting environment variables. For example, I use this approach to make RedHat rpm's. You didn't say, but your situation sounds like you may be using RedHat. RedHat's python command refers to python 1.5 while they use the python2 command to refer to python 2.x. Since their default python command refers to version 1.5, that is what I always use for RH. If you don't have RedHat the following instructions may still work for you. (1) Download the appropriate Numeric rpm from http://prdownloads.sf.net/numpy/ and install it. python-numpy-15.3-1.i386.rpm is appropriate for python 1.5 while I believe from the numbering scheme (multiply python version by 10 to get appropriate numeric version) that Numeric-21.0-1.i386.rpm will be appropriate for python2.1 and Numeric-22.0-1.i386.rpm will be appropriate for python-2.2 (2) Study plplot_redhat7.2.spec at http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/plplot/plplot/rpm/. This RH 7.2 spec file uses the following commands to set up environment variables before configuring: PY_VERSION=`python -c 'import sys ; print sys.version[0:3]'` export PYTHON_INC_DIR=/usr/include/python${PY_VERSION}/ echo PYTHON_INC_DIR=${PYTHON_INC_DIR} 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} The above PY_VERSION variable uses the python command (as opposed to python2) so that is how you get python-1.5 on RedHat. I won't try version 2 of python on RedHat until it becomes the default that you get with the "python" command. For Debian, version 2.1 of python is the default, and that works fine with plplot along with the python-numeric deb which is version 21.0 (see above comments on appropriate version of Numeric to use). Note the above spec file was used to build the RH 7.2 rpm's we have distributed, and those rpm's work fine. Note we also have a RH7.3 spec file in the same location. This spec file differs little from the RH7.2 version but is still a work in progress for the current CVS version of PLplot. On RH 7.3 it works fine for building the python interface to the plplot CVS version, but after the python interface is built and installed, the rpm goes on to attempt to install the plplot tcl/tk interface, and there are some problems due to the combination of RH7.3 and our plplot CVS version that we are still working out. 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 __________________________ On Fri, 6 Sep 2002, Paul Simmonds wrote: > Hi, > > I've been trying to configure Plplot for use with Python. However, I have 2 > versions of Python available- one has Numeric, one does not. > > The one with Numeric is in my home directory, but configure only finds > Python 1.5.2 (without Numeric) in the place it's expecting on the network. > The other version is Python 2.2.1, and is in ~/Python-2.2.1/ I was using > the command line: > > ./configure --prefix=~/plplot --enable-python=yes > > The configure script seems to ignore the second option in favour of it's own > test results. Is there an easy work around? > > I'd be grateful for any tips, > Paul > > _________________________________________________________________ > MSN Photos is the easiest way to share and print your photos: > http://photos.msn.com/support/worldwide.aspx > > > > ------------------------------------------------------- > This sf.net email is sponsored by: OSDN - Tired of that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > _______________________________________________ > Plplot-general mailing list > Plp...@li... > https://lists.sourceforge.net/lists/listinfo/plplot-general > |