Skip to content

Commit

Permalink
improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
fijal committed Dec 4, 2014
1 parent 3c67c2b commit 1ec8498
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
10 changes: 8 additions & 2 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,14 @@ An example of usage:

Download `64bit binary`_ or `32bit binary`_ for linux::



~$ wget http://buildbot.pypy.org/nightly/trunk/pypy-c-jit-74798-f1b314da580e-linux64.tar.bz2
~$ tar xjf pypy-c-jit-74798-f1b314da580e-linux64.tar.bz2
~$ export PYPY_HOME=`pwd`/pypy-c-jit-74798-f1b314da580e-linux64/bin/
~$ pip install jitpy
And you should be able not run examples (**NOTE:** since jitpy takes source
code via ``inspect`` module, you can't run jittify on functions typed
from python interactive prompt)

Using jitpy
===========
Expand Down
5 changes: 5 additions & 0 deletions jitpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
import py
import cffi
import os
try:
import numpy
except:
raise Exception("numpy install is required - warning numpy will not "
"install it's headers if installed via pip")

ptr = None

Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
cffi
numpy
pytest

0 comments on commit 1ec8498

Please sign in to comment.