Update of /cvsroot/pythonreports/PythonReports
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25347
Modified Files:
setup.py
Log Message:
fix: rst2html failed when there is no target file
Index: setup.py
===================================================================
RCS file: /cvsroot/pythonreports/PythonReports/setup.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** setup.py 4 Nov 2006 07:20:18 -0000 1.3
--- setup.py 7 Nov 2006 05:36:49 -0000 1.4
***************
*** 3,6 ****
--- 3,7 ----
# FIXME! generate_docs() must be reimplemented as a distutils command
"""History:
+ 07-nov-2006 [als] fix: rst2html failed when there is no target file
04-nov-2006 [als] added maintainer_email and download_url;
name the license and platform in addition to classifiers
***************
*** 62,66 ****
"""
if not force:
! force = os.stat(source).st_mtime > os.stat(target).st_mtime
if force:
print "Generating %s => %s" % (source, target)
--- 63,68 ----
"""
if not force:
! force = (not os.path.isfile(target)) \
! or (os.stat(source).st_mtime > os.stat(target).st_mtime)
if force:
print "Generating %s => %s" % (source, target)
|