SF.net SVN: geany-plugins:[903] trunk/geanylatex/wscript

frlan at users.sourceforge.net frlan at xxxxx
Tue Aug 18 17:10:50 UTC 2009


Revision: 903
          http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=903&view=rev
Author:   frlan
Date:     2009-08-18 17:10:49 +0000 (Tue, 18 Aug 2009)

Log Message:
-----------
GeanyLaTeX: Port an update for PEP 8 done for waf script on geany-plugins build script

Modified Paths:
--------------
    trunk/geanylatex/wscript

Modified: trunk/geanylatex/wscript
===================================================================
--- trunk/geanylatex/wscript	2009-08-17 06:38:34 UTC (rev 902)
+++ trunk/geanylatex/wscript	2009-08-18 17:10:49 UTC (rev 903)
@@ -26,12 +26,21 @@
 Waf build script for the Geany plugin GeanyLaTeX.
 
 
+The code of this file itself loosely follows PEP 8 with some exceptions
+(line width 100 characters and some other minor things).
+
 Requires WAF 1.5.7 and Python 2.4 (or later).
 """
 
 
-import Build, Options, Utils, preproc
-import glob, os, sys, tempfile
+import glob
+import os
+import sys
+import tempfile
+import Build
+import Options
+import Utils
+import preproc
 
 
 APPNAME = 'geanylatex'
@@ -204,15 +213,17 @@
 	print_message(conf, 'Using Geany version', geany_version)
 	if svn_rev != '-1':
 		print_message(conf, 'Compiling Subversion revision', svn_rev)
-		conf.env.append_value('CCFLAGS', '-g -O0 -DDEBUG'.split()) # -DGEANY_DISABLE_DEPRECATED')
+		conf.env.append_value('CCFLAGS', '-g -O0 -DDEBUG'.split()) # -DGEANY_DISABLE_DEPRECATED'
 
 	conf.env.append_value('CCFLAGS', '-DHAVE_CONFIG_H'.split())
 
-	if is_win32: # convenience script (script content copied from the original waf.bat)
+	# convenience script (script content copied from the original waf.bat)
+	if is_win32:
 		f = open('waf.bat', 'wb')
 		f.write('@python -x %~dp0waf %* & exit /b')
 		f.close
-	else: # write a simple Makefile
+	# write a simple Makefile
+	else:
 		f = open('Makefile', 'w')
 		f.write(makefile_template)
 		f.close
@@ -239,7 +250,7 @@
 		for file in files:
 			if os.path.exists(file):
 				bld.install_as(
-					'%s/%s%s' % (docdir, ucFirst(file, is_win32), ext), file)
+					'%s/%s%s' % (docdir, uc_first(file, is_win32), ext), file)
 		bld.install_files('%s' % docdir, 'doc/geanylatex.*')
 		bld.install_files('%s/img' % docdir, 'doc/img/*.png')
 
@@ -318,7 +329,7 @@
 	conf.check_message_2(result, color)
 
 
-def ucFirst(s, is_win32):
+def uc_first(s, is_win32):
 	if is_win32:
 		return s.title()
 	return s


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Plugins-Commits mailing list