Skip to main content

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, which is one of: linux, darwin, or windows

  • 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

  • Yusuke Tsutsumi

Change history

2.0.0.0 (2015-02-11)

  • Nothing changed yet.

1.9.7.2 (2014-05-10)

Improve url generation

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

Release files for gp.recipe.phantomjs 2.0.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gp.recipe.phantomjs 2.0.0.0
File Size Uploaded
gp.recipe.phantomjs-2.0.0.0.zip 20.8 kB Details

Release files / gp.recipe.phantomjs-2.0.0.0.zip

Download URL gp.recipe.phantomjs-2.0.0.0.zip
Size 20.8 kB
Tags Source
SHA-256 checksum
How to use checksums
cd01fd64ed02b704f881c1f3734da2fd53b142df76d3f3f81db46d36d2d34bfb
BLAKE2b-256 checksum
How to use checksums
fb3c65e7a8f92e267b14419d1bbf7a2d7ec7c8c5c7ed55c00a229ec181f4def3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

2.0.0.0 This release

1 release file

1.9.7.2

1 release file

1.9.7.0

1 release file

1.9.1.0

1 release file

1.7.0.5

1 release file

1.7.0.4

1 release file

1.7.0.1

1 release file

1.7.0

1 release file

1.3

1 release file

1.2

1 release file

1.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page