skip to navigation
skip to content


buildout recipe to install phantomjs/casperjs

Latest Version:

Buildout recipe to install phantomjs/casperjs

Supported options

The recipe supports the following options:

Url to download phantomjs
If phantomjs-url is not specified, this recipe downloads phantomjs from phantomjs-url-base. Defaults to Set this if you want to use your own mirror for phantomjs.

If phantomjs-url and phantomjs-url-template are not specified, you can set a template which will populate various variables. The variables should be wrapped in {}, and the following values are supported:

  • arch: the architecture. x86_64 or i686
  • phantom_platform: the platform, following the format dictated by the standard phantomjs url (e.g. linux, macosx)
  • phantom_extension: the extension, as specified by the format dictated by the standard phantomjs url (e.g. tar.bz2, zip)
  • platform: the platform, which is one of: linux, darwin, or windows
  • version: the version of phantomjs

The default template is:{version}-{phantom_platform}.{phantom_extension}
Try to retreive phantomjs url from version
Url to download casperjs

Example usage

We’ll start by creating a buildout that uses the recipe:

>>> write('buildout.cfg',
... """
... [buildout]
... parts = casperjs
... [casperjs]
... recipe = gp.recipe.phantomjs
... """)

>>> system('buildout')

>>> ls('bin')
-  buildout
-  casperjs
-  phantomjs


  • Gael Pasgrimaud
  • Richard Barrell
  • Yusuke Tsutsumi

Change history (2014-05-10)

Improve url generation (2014-02-19)

Switch to PhantomJS 1.9.7

Allow to use buildout’s relative paths option


Switch to PhantomJS 1.9.1

Add phantomjs-url-base option for using phantomjs mirrors.

Switch to PhantomJS 1.9.0

Add windows support [agroszer]

Python3 compat

Also support linux3

Use correct arch (x86_64/i686) for linux systems

Use correct octal format for chmod


  • Upgrade to casperjs 1.0.0-RC4 and PhantomJS 1.7.0
  • Fix executable permissions issues


First “stable” release


File Type Py Version Uploaded on Size (md5) Source 2014-05-10 20KB