[Python-apps-commits] r3319 - in packages/mayavi2/trunk/debian (4 files)

varun at users.alioth.debian.org varun at users.alioth.debian.org
Wed Jul 22 04:44:08 UTC 2009


    Date: Wednesday, July 22, 2009 @ 04:44:06
  Author: varun
Revision: 3319

Add patches/build_doc.diff to fix documentation generation

Added:
  packages/mayavi2/trunk/debian/patches/build_doc.diff
Modified:
  packages/mayavi2/trunk/debian/changelog
  packages/mayavi2/trunk/debian/patches/series
  packages/mayavi2/trunk/debian/rules

Modified: packages/mayavi2/trunk/debian/changelog
===================================================================
--- packages/mayavi2/trunk/debian/changelog	2009-07-22 02:49:25 UTC (rev 3318)
+++ packages/mayavi2/trunk/debian/changelog	2009-07-22 04:44:06 UTC (rev 3319)
@@ -4,8 +4,9 @@
   * debian/control: Add ipython to Suggests
   * debian/rules: fix build process by adding a workaround for 
     m2_about.jpg image created before build
+  * Add patches/build_doc.diff to fix documentation generation
 
- -- Varun Hiremath <varun at debian.org>  Tue, 21 Jul 2009 22:20:36 -0400
+ -- Varun Hiremath <varun at debian.org>  Tue, 21 Jul 2009 23:53:52 -0400
 
 mayavi2 (3.2.0-3) unstable; urgency=low
 

Added: packages/mayavi2/trunk/debian/patches/build_doc.diff
===================================================================
--- packages/mayavi2/trunk/debian/patches/build_doc.diff	                        (rev 0)
+++ packages/mayavi2/trunk/debian/patches/build_doc.diff	2009-07-22 04:44:06 UTC (rev 3319)
@@ -0,0 +1,23 @@
+Index: mayavi2-3.3.0/setup.py
+===================================================================
+--- mayavi2-3.3.0.orig/setup.py	2009-07-16 12:27:25.000000000 -0400
++++ mayavi2-3.3.0/setup.py	2009-07-22 00:17:52.000000000 -0400
+@@ -208,6 +208,8 @@
+                 os.path.join('docs', 'source', 'mayavi', 'auto',
+                 'examples.rst')):
+             try:
++                from enthought.mayavi import mlab
++                from enthought.mayavi.tools import auto_doc
+                 print "Generating the example list"
+                 subprocess.call('python %s' %
+                             os.path.basename(script_file_name), shell=True,
+Index: mayavi2-3.3.0/docs/source/render_examples.py
+===================================================================
+--- mayavi2-3.3.0.orig/docs/source/render_examples.py	2009-07-16 12:27:17.000000000 -0400
++++ mayavi2-3.3.0/docs/source/render_examples.py	2009-07-22 00:18:06.000000000 -0400
+@@ -476,3 +476,5 @@
+ 
+ if __name__ == '__main__':
+     render_examples()
++    import shutil
++    shutil.copyfile('../CHANGES.txt', './mayavi/auto/changes.rst')

Modified: packages/mayavi2/trunk/debian/patches/series
===================================================================
--- packages/mayavi2/trunk/debian/patches/series	2009-07-22 02:49:25 UTC (rev 3318)
+++ packages/mayavi2/trunk/debian/patches/series	2009-07-22 04:44:06 UTC (rev 3319)
@@ -1,2 +1,3 @@
+build_doc.diff
 manpage.diff
 wxversion.diff

Modified: packages/mayavi2/trunk/debian/rules
===================================================================
--- packages/mayavi2/trunk/debian/rules	2009-07-22 02:49:25 UTC (rev 3318)
+++ packages/mayavi2/trunk/debian/rules	2009-07-22 04:44:06 UTC (rev 3319)
@@ -18,6 +18,8 @@
 
 post-patches::
 	cp ./docs/source/mayavi/m2_about.jpg ./enthought/mayavi/images/
+	mkdir -p docs/source/mayavi/auto
+	cp -f docs/CHANGES.txt docs/source/mayavi/auto/changes.rst
 
 install/mayavi2::
 	find $(DEB_DESTDIR) -name 'image_LICENSE.txt' -delete




More information about the Python-apps-commits mailing list