Example #1
0
        (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')
    }

    if which('git.exe'):
        variables.GIT = 'git.exe'
    else:
        variables.GIT = os.path.join(windows_defaults['ProgramFiles'], 'Git',
                                     'bin', 'git.exe')

    if which('gjslint.exe'):
        variables.GJSLINT = 'gjslint.exe'
    else:
        variables.GJSLINT = os.path.join(windows_defaults['Python27'],
                                         'Scripts', 'gjslint.exe')

    if which('java.exe'):
        variables.JAVA = 'java.exe'
    else:
        variables.JAVA = os.path.join(windows_defaults['ProgramFiles'], 'Java',
Example #2
0
def check_dependencies(t):
    for exe in EXECUTABLES:
        status = 'present' if which(exe) else 'MISSING'
        print 'Program "%s" seems to be %s.' % (exe, status)
    print 'For certain targets all above programs need to be present.'
Example #3
0
def check_dependencies(t):
    for exe in EXECUTABLES:
        status = 'present' if which(exe) else 'MISSING'
        print 'Program "%s" seems to be %s.' % (exe, status)
    print 'For certain targets all above programs need to be present.'
Example #4
0
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
        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')
    }

    if which('git.exe'):
        variables.GIT = 'git.exe'
    else:
        variables.GIT = os.path.join(windows_defaults['ProgramFiles'],
                                     'Git', 'bin', 'git.exe')

    if which('gjslint.exe'):
        variables.GJSLINT = 'gjslint.exe'
    else:
        variables.GJSLINT = os.path.join(windows_defaults['Python27'],
                                         'Scripts', 'gjslint.exe')

    if which('java.exe'):
        variables.JAVA = 'java.exe'
    else:
        variables.JAVA = os.path.join(windows_defaults['ProgramFiles'],
Example #5
0
File: build.py Project: igrcic/ol3
if sys.platform == 'win32':

    win = {
        'CLEANCSS': './node_modules/.bin/cleancss',
        'GIT': 'git.exe',
        'GJSLINT': 'gjslint.exe',
        'JSDOC': './node_modules/.bin/jsdoc',
        'JSHINT': './node_modules/.bin/jshint',
        'PYTHON': 'python.exe',
        'PHANTOMJS': './node_modules/.bin/phantomjs'
    }

    sys_dir = os.environ.get('SYSTEMDRIVE')
    program_files = os.environ.get('PROGRAMFILES')

    if not which(win['GIT']):
        win['GIT'] = os.path.join(program_files, 'Git', 'cmd', 'git.exe')
    if not which(win['GIT']):
        win['GIT'] = os.path.join(program_files, 'Git', 'bin', 'git.exe')

    if not which(win['PYTHON']):
        win['PYTHON'] = os.path.join(sys_dir, 'Python27', 'python.exe')

    if not which(win['GJSLINT']):
        win['GJSLINT'] = os.path.join(sys_dir, 'Python27', 'Scripts', 'gjslint.exe')

    if not which(win['PHANTOMJS']):
        win['PHANTOMJS'] = 'phantomjs.exe'
    if not which(win['PHANTOMJS']):
        win['PHANTOMJS'] = os.path.join(sys_dir, 'phantomjs-1.9.7-windows', 'phantomjs.exe')
Example #6
0
if sys.platform == 'win32':

    win = {
        'CLEANCSS': './node_modules/.bin/cleancss',
        'GIT': 'git.exe',
        'GJSLINT': 'gjslint.exe',
        'JSDOC': './node_modules/.bin/jsdoc',
        'JSHINT': './node_modules/.bin/jshint',
        'PYTHON': 'python.exe',
        'PHANTOMJS': './node_modules/.bin/phantomjs'
    }

    sys_dir = os.environ.get('SYSTEMDRIVE')
    program_files = os.environ.get('PROGRAMFILES')

    if not which(win['GIT']):
        win['GIT'] = os.path.join(program_files, 'Git', 'cmd', 'git.exe')
    if not which(win['GIT']):
        win['GIT'] = os.path.join(program_files, 'Git', 'bin', 'git.exe')

    if not which(win['PYTHON']):
        win['PYTHON'] = os.path.join(sys_dir, 'Python27', 'python.exe')

    if not which(win['GJSLINT']):
        win['GJSLINT'] = os.path.join(sys_dir, 'Python27', 'Scripts', 'gjslint.exe')

    if not which(win['PHANTOMJS']):
        win['PHANTOMJS'] = 'phantomjs.exe'
    if not which(win['PHANTOMJS']):
        win['PHANTOMJS'] = os.path.join(sys_dir, 'phantomjs-1.9.7-windows', 'phantomjs.exe')
Example #7
0

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
        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"),
    }

    if which("git.exe"):
        variables.GIT = "git.exe"
    else:
        variables.GIT = os.path.join(windows_defaults["ProgramFiles"], "Git", "bin", "git.exe")

    if which("gjslint.exe"):
        variables.GJSLINT = "gjslint.exe"
    else:
        variables.GJSLINT = os.path.join(windows_defaults["Python27"], "Scripts", "gjslint.exe")

    if which("java.exe"):
        variables.JAVA = "java.exe"
    else:
        variables.JAVA = os.path.join(windows_defaults["ProgramFiles"], "Java", "jre7", "bin", "java.exe")

    if which("jar.exe"):