On 2009-07-02 17:26-0400 Hazen Babcock wrote:

> [email protected] wrote:
>>
>>  import sys
>>  from PyQt4 import QtCore, QtGui
>> +from plplot_python_start import *
>>  import plplot
>>  import plplot_pyqt4
>
> I took that out since I could not run the example with it in the build
> tree. What is it supposed to do?

plplot_python_start.py is a file that we configure separately for the build
tree and install tree.  The build-tree version points to the location of the
python extension modules and ordinary python modules scattered in the build
tree.  I forgot to configure in the bindings/qt_gui/pyqt4 location, but I
just fixed that with revision 10115.  (The install-tree version of
plplot_python_start.py that is configured, simply points to the single
install tree location where the extension modules are installed.)
So that is why my install-tree tests worked before, but why a change was
needed to get the build-tree version to work.

After copying pyqt4_example.py from the source tree to the build tree
where the configured build-tree version of plplot_python_start.py is located,
(or running a -DBUILD_TEST=ON build which does the same thing),
I can run

PLPLOT_LIB=/home/software/plplot_cvs/HEAD/plplot_cmake_qt/data 
./pyqt4_example.py

without issues from that build-tree location.  I assume you can run
./pyqt4_example.py from the source tree location as well if you copy the
configured plplot_python_start.py back to there from its build tree
location. But that violates the principal of keeping your source tree
absolutely clean.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to