Testing front-end python
/usr/share/plplot5.9.2/examples/python/xw19.py:66: DeprecationWarning:
PyArray_FromDimsAndDataAndDescr: use PyArray_NewFromDescr.
plmap(nullmapform,"usaglobe", minx, maxx, miny, maxy)
/usr/share/plplot5.9.2/examples/python/xw19.py:75: DeprecationWarning:
PyArray_FromDimsAndDataAndDescr: use PyArray_NewFromDescr.
plmap(nullmapform, "usaglobe", minx, maxx, miny, maxy)
/usr/share/plplot5.9.2/examples/python/xw19.py:83: DeprecationWarning:
PyArray_FromDimsAndDataAndDescr: use PyArray_NewFromDescr.
plmap(mapform19,"globe", minx, maxx, miny, maxy)
/usr/share/plplot5.9.2/examples/python/xw19.py:86: DeprecationWarning:
PyArray_FromDimsAndDataAndDescr: use PyArray_NewFromDescr.
plmeridians(mapform19,10.0, 10.0, 0.0, 360.0, -10.0, 80.0)
Traceback (most recent call last):
File "/usr/share/plplot5.9.2/examples/python/x20", line 36, in <module>
import xw20
File "/usr/share/plplot5.9.2/examples/python/xw20.py", line 304, in
<module>
main()
File "/usr/share/plplot5.9.2/examples/python/xw20.py", line 234, in main
plabort("No such file")
NameError: global name 'plabort' is not defined
Ideas?
Testing front-end tcl
/usr/share/plplot5.9.2/examples/test_tcl.sh: line 34: test.error:
Permission denied
cat: test.error: No such file or directory
test_tcl.sh insists on changing directories to "$tcldir". I can work
around some of this, but not tcl/x01 sourcing x01.tcl from the current
directory.
I've also attached my current patch to plplot-test.sh.cmake for comment.
This allows me as a user in a writable directory run
/usr/share/plplot5.9.2/examples/plplot-test.sh.
--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA/CoRA Division FAX: 303-415-9702
3380 Mitchell Lane or...@cora.nwra.com
Boulder, CO 80301 http://www.cora.nwra.com
--- plplot-5.9.2/plplot_test/plplot-test.sh.cmake.test 2009-01-18 13:24:12.000000000 -0700
+++ plplot-5.9.2/plplot_test/plplot-test.sh.cmake 2009-02-13 16:04:24.000000000 -0700
@@ -34,8 +34,9 @@
versi...@version@
-EXAMPLES_DIR=${EXAMPLES_DIR:-.}
-SRC_EXAMPLES_DIR=${SRC_EXAMPLES_DIR:-.}
+EXE_DIR=`dirname $0`
+EXAMPLES_DIR=${EXAMPLES_DIR:=$EXE_DIR}
+SRC_EXAMPLES_DIR=${SRC_EXAMPLES_DIR:=$EXE_DIR}
OUTPUT_DIR=${OUTPUT_DIR:-.}
device=${DEVICE:-psc}
export EXAMPLES_DIR SRC_EXAMPLES_DIR OUTPUT_DIR device DEBUG_CMD
@@ -143,18 +144,6 @@
shift
done
-# This script is only designed to work when EXAMPLES_DIR is a directory
-# with a subdirectory called "c". Check whether this conditions is true.
-
-if [ ! -d $EXAMPLES_DIR/c ] ; then
-echo '
-This script is only designed to work when the EXAMPLES_DIR environment
-variable (overridden by option --examples-dir) is a directory with a
-subdirectory called "c". This condition has been violated.
-'
-exit 1
-fi
-
# These variables set by default assuming you are going to run this
# script from the installed demos directory $prefix/lib/plplot$version/examples.
cdir=$EXAMPLES_DIR/c
@@ -279,19 +268,17 @@
dsuffix=$device
export dsuffix options
-# Find out what front-ends have been configured
+# Find out what front-ends have been configured and installed
if [ -z "$FRONT_END" ] ; then
- FRONT_END=c
- test "@ENABLE_cxx@" = "ON" && FRONT_END="$FRONT_END cxx"
- test "@ENABLE_f77@" = "ON" && FRONT_END="$FRONT_END f77"
- test "@ENABLE_f95@" = "ON" && FRONT_END="$FRONT_END f95"
- test "@ENABLE_java@" = "ON" && FRONT_END="$FRONT_END java"
- test "@ENABLE_octave@" = "ON" && FRONT_END="$FRONT_END octave"
- test "@ENABLE_python@" = "ON" && FRONT_END="$FRONT_END python"
- test "@ENABLE_tcl@" = "ON" && FRONT_END="$FRONT_END tcl"
- test "@ENABLE_pdl@" = "ON" && FRONT_END="$FRONT_END perl"
- test "@ENABLE_ada@" = "ON" && FRONT_END="$FRONT_END ada"
- test "@ENABLE_ocaml@" = "ON" && FRONT_END="$FRONT_END ocaml"
+ for front_end_status in c:@ENABLE_c@ cxx:@ENABLE_cxx@ f77:@ENABLE_f77@ \
+ f95:@ENABLE_f95@ java:@ENABLE_java@ \
+ octave:@ENABLE_octave@ python:@ENABLE_python@ \
+ tcl:@ENABLE_tcl@ perl:@ENABLE_perl@ \
+ ada:@ENABLE_ada@ ocaml:@ENABLE_ocaml@
+ do
+ front_end=${front_end_status/:ON/}
+ [ $front_end != $front_end_status ] && [ -d $EXAMPLES_DIR/$front_end ] && FRONT_END="$FRONT_END $front_end"
+ done
fi
# Find where the front-end scripts are by looking at the directory name of the
@@ -309,9 +296,6 @@
for i in $FRONT_END ; do
echo "Testing front-end $i"
script=$scripts_dir/test_$i.sh
- if [ "@WIN32@" != "1" ] ; then
- chmod +x $script
- fi
@SH_EXECUTABLE@ $script || status=1
done
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel