[Python-apps-commits] r2914 - in packages/vitables/trunk/debian/patches (1 file)
xnox-guest at users.alioth.debian.org
xnox-guest at users.alioth.debian.org
Mon May 11 03:30:12 UTC 2009
Date: Monday, May 11, 2009 @ 03:30:11
Author: xnox-guest
Revision: 2914
Added a check in setup.py so that we can build twice in a row
Modified:
packages/vitables/trunk/debian/patches/use_distutils_for_docs.patch
Modified: packages/vitables/trunk/debian/patches/use_distutils_for_docs.patch
===================================================================
--- packages/vitables/trunk/debian/patches/use_distutils_for_docs.patch 2009-05-11 03:23:03 UTC (rev 2913)
+++ packages/vitables/trunk/debian/patches/use_distutils_for_docs.patch 2009-05-11 03:30:11 UTC (rev 2914)
@@ -1,8 +1,8 @@
Index: vitables-2.0+hg96+dfsg/setup.py
===================================================================
---- vitables-2.0+hg96+dfsg.orig/setup.py 2009-05-11 04:16:22.000000000 +0100
-+++ vitables-2.0+hg96+dfsg/setup.py 2009-05-11 04:20:47.000000000 +0100
-@@ -21,12 +21,85 @@
+--- vitables-2.0+hg96+dfsg.orig/setup.py 2009-05-11 04:25:15.000000000 +0100
++++ vitables-2.0+hg96+dfsg/setup.py 2009-05-11 04:28:28.000000000 +0100
+@@ -21,12 +21,87 @@
#----------------------------------------------------------------------
# Setup script for the vitables package
@@ -71,14 +71,16 @@
+
+ input_file_name = os.path.splitext(input_file)[0]
+ input_dir =os.path.dirname(input_file)
-+ os.mkdir(os.path.join(input_dir,"html"))
-+ spawn([self.xsltproc_path, "-o", os.path.join(input_dir, "html", ""), self.xsl_style, input_file])
-+ spawn([self.xsltproc_path, "-o", input_file_name+".fo", self.fop_style, input_file])
-+ spawn([self.fop_path, "-q", input_file_name+".fo", input_file_name+".pdf"])
+
-+ shutil.copytree(os.path.join(input_dir,"images"),os.path.join(input_dir,"html","images"))
++ if not os.path.exists(os.path.join(input_dir,"html"))):
++ os.mkdir(os.path.join(input_dir,"html"))
++ spawn([self.xsltproc_path, "-o", os.path.join(input_dir, "html", ""), self.xsl_style, input_file])
++ spawn([self.xsltproc_path, "-o", input_file_name+".fo", self.fop_style, input_file])
++ spawn([self.fop_path, "-q", input_file_name+".fo", input_file_name+".pdf"])
+
++ shutil.copytree(os.path.join(input_dir,"images"),os.path.join(input_dir,"html","images"))
+
++
+def has_docbook(build):
+ return (build.distribution.docbooks is not None and
+ build.distribution.docbooks != [])
@@ -89,7 +91,7 @@
use_py2app = False
if sys.platform == 'darwin' and 'py2app' in sys.argv:
-@@ -267,7 +340,9 @@
+@@ -267,7 +342,9 @@
``macosxapp/make.sh`` script.)
"""
@@ -100,7 +102,7 @@
version = "%s" % vt_version,
description = 'A viewer for pytables package',
long_description = \
-@@ -295,8 +370,18 @@
+@@ -295,8 +372,18 @@
'vitables.preferences', 'vitables.plugins',
'vitables.vtTables', 'vitables.vtWidgets'],
scripts = ['scripts/vitables'],
@@ -120,7 +122,7 @@
('examples', glob.glob('examples/*.h5')),
('examples/arrays', glob.glob('examples/arrays/*.h5')),
('examples/misc', glob.glob('examples/misc/*.h5')),
-@@ -304,9 +389,6 @@
+@@ -304,9 +391,6 @@
('examples/tables', glob.glob('examples/tables/*.h5')),
('examples/tests', glob.glob('examples/tests/*.h5')),
('examples/timeseries', glob.glob('examples/timeseries/*.h5')),
More information about the Python-apps-commits
mailing list