Skip to content

Commit

Permalink
Updated the README. Thanks Mark Lee.
Browse files Browse the repository at this point in the history
[#12]
  • Loading branch information
Paul Davis committed May 12, 2009
1 parent 584ba6f commit c29ad86
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 4 deletions.
39 changes: 39 additions & 0 deletions README.md
Expand Up @@ -21,6 +21,10 @@ Debian/Ubuntu:
Where X.X is the version of Python you are using. I have not tested
python-spidermonkey on Py3K so it may be horribly broken there.

Gentoo:

If you have python installed, then the headers should already be installed.

Netscape Portable Runtime (nspr)
--------------------------------

Expand All @@ -35,11 +39,40 @@ Mac OS X:
Debian/Ubuntu:

$ sudo apt-get install libnspr4-dev

Gentoo:

$ sudo emerge nspr

Alternatively you can build from [source][nspr]. If you choose this route make
sure that the nspr-config command is on your $PATH when running the install
commands below.

If you choose this route make
sure that the pkg-config command is on your `$PATH` when running the install
commands below. Additionally, make sure that `$PKG_CONFIG_PATH` is properly
set.

XULRunner (optional)
--------------------
You can optionally build the extension linked to your system's spidermonkey
library, which is installed with XULRunner. You should be able to grab it from
your package manager of choice with something like the following:

Mac OS X:

$ sudo port install xulrunner

Debian/Ubuntu:

$ sudo apt-get install xulrunner-1.9-dev

Gentoo:

$ sudo emerge xulrunner

As with [nspr][nspr], you can also build [xulrunner][xulrunner] from source. And as with [nspr][nspr] you need to make sure hat `$PATH` and `$PKG_CONFIG_PATH` are properly set when building the module.

Installation
============

Expand All @@ -54,6 +87,11 @@ Installation

$ sudo python setup.py develop

If you want to build with the system spidermonkey library, replace the build
command with the following:

$ python setup.py --system-library build

Having Issues?
==============

Expand Down Expand Up @@ -117,3 +155,4 @@ Previous Authors

[lh]: http://davisp.lighthouseapp.com/projects/26898-python-spidermonkey/overview
[nspr]: ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases
[xulrunner]: ftp://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases
17 changes: 13 additions & 4 deletions THANKS
@@ -1,7 +1,16 @@

Thanks For Patches and Pointers
===============================
benoitc - build system tweaks, compiling on OpenBSD
Mark Lee - Patch for iterating JS arrays in Python
sk89q - Info for FreeBSD builds
spahl - Heads up on the signal hack and fix for a compiler warning.

benoitc
* build system tweaks, compiling on OpenBSD

Mark Lee
* Patch for iterating JS arrays in Python
* Patch to allow linking against Xulrunner's libmozjs

sk89q
* Info for FreeBSD builds

spahl
* Heads up on the signal hack and fix for a compiler warning.

0 comments on commit c29ad86

Please sign in to comment.