Skip to content

Commit c29ad86

Browse files
author
Paul Davis
committed
Updated the README. Thanks Mark Lee.
[#12]
1 parent 584ba6f commit c29ad86

File tree

2 files changed

+52
-4
lines changed

2 files changed

+52
-4
lines changed

README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ Debian/Ubuntu:
2121
Where X.X is the version of Python you are using. I have not tested
2222
python-spidermonkey on Py3K so it may be horribly broken there.
2323

24+
Gentoo:
25+
26+
If you have python installed, then the headers should already be installed.
27+
2428
Netscape Portable Runtime (nspr)
2529
--------------------------------
2630

@@ -35,11 +39,40 @@ Mac OS X:
3539
Debian/Ubuntu:
3640

3741
$ sudo apt-get install libnspr4-dev
42+
43+
Gentoo:
44+
45+
$ sudo emerge nspr
3846

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

51+
If you choose this route make
52+
sure that the pkg-config command is on your `$PATH` when running the install
53+
commands below. Additionally, make sure that `$PKG_CONFIG_PATH` is properly
54+
set.
55+
56+
XULRunner (optional)
57+
--------------------
58+
You can optionally build the extension linked to your system's spidermonkey
59+
library, which is installed with XULRunner. You should be able to grab it from
60+
your package manager of choice with something like the following:
61+
62+
Mac OS X:
63+
64+
$ sudo port install xulrunner
65+
66+
Debian/Ubuntu:
67+
68+
$ sudo apt-get install xulrunner-1.9-dev
69+
70+
Gentoo:
71+
72+
$ sudo emerge xulrunner
73+
74+
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.
75+
4376
Installation
4477
============
4578

@@ -54,6 +87,11 @@ Installation
5487

5588
$ sudo python setup.py develop
5689

90+
If you want to build with the system spidermonkey library, replace the build
91+
command with the following:
92+
93+
$ python setup.py --system-library build
94+
5795
Having Issues?
5896
==============
5997

@@ -117,3 +155,4 @@ Previous Authors
117155

118156
[lh]: http://davisp.lighthouseapp.com/projects/26898-python-spidermonkey/overview
119157
[nspr]: ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases
158+
[xulrunner]: ftp://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases

THANKS

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11

22
Thanks For Patches and Pointers
33
===============================
4-
benoitc - build system tweaks, compiling on OpenBSD
5-
Mark Lee - Patch for iterating JS arrays in Python
6-
sk89q - Info for FreeBSD builds
7-
spahl - Heads up on the signal hack and fix for a compiler warning.
4+
5+
benoitc
6+
* build system tweaks, compiling on OpenBSD
7+
8+
Mark Lee
9+
* Patch for iterating JS arrays in Python
10+
* Patch to allow linking against Xulrunner's libmozjs
11+
12+
sk89q
13+
* Info for FreeBSD builds
14+
15+
spahl
16+
* Heads up on the signal hack and fix for a compiler warning.

0 commit comments

Comments
 (0)