Exemplo n.º 1
0
Arquivo: gae.py Projeto: mattorb/Ale
 def install(self, args=None):
     downloadAndExtract(remotePath, extractPath)
     os.system('chmod +x %s' % join(join(extractPath, 'google_appengine'), 'dev_appserver.py'))
     os.system('chmod +x %s' % join(join(extractPath, 'google_appengine'), 'appcfg.py'))
     gitignore('*.pyc')
     gitignore('.DS_Store')
     gitignore('.Trashes')
     gitignore('.fseventsd')
Exemplo n.º 2
0
    def install(self, args=None):
        extractPath = os.path.join(os.path.join(alePath('recipes_installed'), 'pyflakes'), 'pkgs')

        downloadAndExtract('http://pypi.python.org/packages/source/p/pyflakes/pyflakes-0.3.0.tar.gz', extractPath)

        pyflakesPyPath = join(alePath('recipes_installed/pyflakes/pkgs/pyflakes-0.3.0/pyflakes/scripts'), 'pyflakes.py')
        patch1Path = join(alePath('recipes_all/pyflakes/'), 'pyflakeignore.patch')

        logging.info('Patching pyflakes to allow the pyflakes:ignore directive ...')
        os.system('patch %s %s' % (pyflakesPyPath, patch1Path))
Exemplo n.º 3
0
Arquivo: test.py Projeto: mattorb/Ale
    def install(self, args=None):
        extractPath = os.path.join(os.path.join(alePath('recipes_installed'), 'test'), 'pkgs')

        downloadAndExtract('http://python-nose.googlecode.com/files/nose-0.11.0.tar.gz', extractPath)
        downloadAndExtract('http://pypi.python.org/packages/source/c/coverage/coverage-3.2b3.tar.gz', extractPath)

        coverPyPath = join(alePath('recipes_installed/test/pkgs/nose-0.11.0/nose/plugins'), 'cover.py')
        patch1Path = join(alePath('recipes_all/test/'), 'excludecoveragepatch.patch')
        patch2Path = join(alePath('recipes_all/test/'), 'excludenosepatch.patch')

        logging.info('Patching coverage plugin...')
        os.system('patch %s %s' % (coverPyPath, patch1Path))
        os.system('patch %s %s' % (coverPyPath, patch2Path))

        logging.info('Adding to .gitignore...')
        gitignore('.coverage')
Exemplo n.º 4
0
 def install(self, args=None):
     downloadAndExtract('ftp://ftp.mozilla.org/pub/mozilla.org/js/rhino1_7R2.zip', finalJslintDir)
     download('http://www.jslint.com/rhino/jslint.js', 'jslint.js')
     shutil.move(join(alePath('tmp'), 'jslint.js'), finalJslintPath)