Skip to main content

buildout recipe to install phantomjs/casperjs

Project description

Buildout recipe to install phantomjs/casperjs

Supported options

The recipe supports the following options:

phantomjs-url

Url to download phantomjs

phantomjs-url-base

If phantomjs-url is not specified, this recipe downloads phantomjs from phantomjs-url-base. Defaults to https://bitbucket.org/ariya/phantomjs/downloads/. Set this if you want to use your own mirror for phantomjs.

phantomjs-url-template

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, as specified by sys.platform (e.g. linux, darwin)

  • version: the version of phantomjs

The default template is:

https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-{version}-{phantom_platform}.{phantom_extension}

phantomjs-version

Try to retreive phantomjs url from version

casperjs-url

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

Contributors

  • Gael Pasgrimaud

  • Richard Barrell

Change history

1.9.7.1 (2014-05-08)

  • Nothing changed yet.

1.9.7.0 (2014-02-19)

Switch to PhantomJS 1.9.7

Allow to use buildout’s relative paths option

1.9.1

Switch to PhantomJS 1.9.1

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

1.9.0.2

Switch to PhantomJS 1.9.0

Add windows support [agroszer]

1.7.0.3

Python3 compat

1.7.0.4

Also support linux3

Use correct arch (x86_64/i686) for linux systems

1.7.0.2

Use correct octal format for chmod

1.7.0

  • Upgrade to casperjs 1.0.0-RC4 and PhantomJS 1.7.0

  • Fix executable permissions issues

1.3

First “stable” release

Download

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gp.recipe.phantomjs-1.9.7.1.zip (10.9 kB view details)

Uploaded Source

File details

Details for the file gp.recipe.phantomjs-1.9.7.1.zip.

File metadata

File hashes

Hashes for gp.recipe.phantomjs-1.9.7.1.zip
Algorithm Hash digest
SHA256 cf7181ba8d1a5a2d9e471de6e6095b666e006c3a566dc0b4ee8e9ec01eb93139
MD5 7a14f771d5c5808de3567867b2a50e36
BLAKE2b-256 c150f512c41f9f3774c64ce6177ed08e626317bfdb25a8675a11e1aed0283553

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page