Merge pull request #486 from twpayne/build-py-pep8

Make build.py PEP8 compliant again
This commit is contained in:
Tom Payne
2013-04-06 05:22:43 -07:00

View File

@@ -9,21 +9,22 @@ import re
import shutil
import sys
from pake import Target, ifind, main, output, rule, target, variables, virtual, which
from pake import Target
from pake import ifind, main, output, rule, target, variables, virtual, which
if sys.platform == 'win32':
""" windows_defaults assumes that jsdoc was installed at a specific place
(C:\jsdoc). It also fixes a certain version (1.9.0) of phantomjs which might
not anymore be proposed on
(C:\jsdoc). It also fixes a certain version (1.9.0) of phantomjs which
might not anymore be proposed on
http://code.google.com/p/phantomjs/downloads/list"""
windows_defaults = {
'ProgramFiles': os.environ.get('ProgramFiles', 'C:\\Program Files'),
'Python27': os.environ.get('SystemDrive', 'C:') + '\\Python27',
'jsdoc': os.environ.get('SystemDrive', 'C:') + '\\jsdoc3',
'phantomjs': os.environ.get('SystemDrive', 'C:') + \
'\\phantomjs-1.9.0-windows'
'phantomjs': (os.environ.get('SystemDrive', 'C:') +
'\\phantomjs-1.9.0-windows')
}
if which('git.exe'):
@@ -524,8 +525,9 @@ def split_example_file(example, dst_dir):
@target('host-resources', phony=True)
def host_resources(t):
resources_dir = 'build/gh-pages/%(BRANCH)s/resources'
t.rm_rf(resources_dir);
t.cp_r('resources', resources_dir);
t.rm_rf(resources_dir)
t.cp_r('resources', resources_dir)
@target('host-examples', 'build', 'host-resources', 'examples', phony=True)
def host_examples(t):