[SCM] Python wrapper for the GNU Triangulated Surface library (GTS) branch, master, updated. upstream/0.3.1-12-g47d6c1d
Anton Gladky
gladky.anton at gmail.com
Tue Oct 30 17:26:12 UTC 2012
The following commit has been merged in the master branch:
commit 607b3024e112f5fbe9af33c1342795deb279710a
Author: Anton Gladky <gladky.anton at gmail.com>
Date: Tue Oct 30 18:05:13 2012 +0100
Fix examples.
diff --git a/debian/control b/debian/control
index 5e92bc3..ab8ddd7 100644
--- a/debian/control
+++ b/debian/control
@@ -13,6 +13,7 @@ Homepage: http://pygts.sf.net
Package: python-gts
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
+Recommends: mayavi2
Description: Python wrapper for the GNU Triangulated Surface library (GTS)
PyGTS is a python package used to construct, manipulate, and perform
computations on 3D triangulated surfaces. It is a hand-crafted and pythonic
diff --git a/debian/patches/fix_examples.patch b/debian/patches/fix_examples.patch
new file mode 100644
index 0000000..9197bc6
--- /dev/null
+++ b/debian/patches/fix_examples.patch
@@ -0,0 +1,70 @@
+Description: Fix import of mlab-module in examples
+Author: Anton Gladky <gladky.anton at gmail.com>
+Last-Update: 2012-10-31
+
+--- a/examples/isosurface.py
++++ b/examples/isosurface.py
+@@ -33,7 +33,7 @@
+ import sys, string
+ from optparse import OptionParser
+ import numpy
+-from enthought.mayavi import mlab
++import mayavi.mlab as mlab
+ import gts
+
+ # Visualise a bug in GTS by running this with args --function=ellipsoid
+--- a/examples/plotgts.py
++++ b/examples/plotgts.py
+@@ -31,7 +31,7 @@
+
+ import numpy
+
+-from enthought.mayavi import mlab
++import mayavi.mlab as mlab
+ import gts
+
+ if len(sys.argv)!=2:
+--- a/examples/polyhedrons.py
++++ b/examples/polyhedrons.py
+@@ -28,7 +28,7 @@
+ """
+
+ import gts
+-from enthought.mayavi import mlab
++import mayavi.mlab as mlab
+
+ s1 = gts.tetrahedron()
+
+--- a/examples/set_operations.py
++++ b/examples/set_operations.py
+@@ -28,7 +28,7 @@
+ """
+
+ import gts
+-from enthought.mayavi import mlab
++import mayavi.mlab as mlab
+
+ def get_surfaces():
+ s1 = gts.tetrahedron()
+--- a/examples/test/cube.py
++++ b/examples/test/cube.py
+@@ -28,7 +28,7 @@
+ """
+
+ import gts
+-from enthought.mayavi import mlab
++import mayavi.mlab as mlab
+ from math import radians
+
+ EPS = 2**(-51)
+--- a/examples/test/die.py
++++ b/examples/test/die.py
+@@ -28,7 +28,7 @@
+ """
+
+ import gts
+-from enthought.mayavi import mlab
++import mayavi.mlab as mlab
+ import sys
+
+ s1 = gts.cube()
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..1e44127
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix_examples.patch
--
Python wrapper for the GNU Triangulated Surface library (GTS)
More information about the debian-science-commits
mailing list