README.md 779 Bytes
Newer Older
1
CFFI
2
====
Armin Rigo's avatar
Armin Rigo committed
3

4
Foreign Function Interface for Python calling C code.
5
6
Please see the [Documentation](http://cffi.readthedocs.org/) or uncompiled
in the doc/ subdirectory.
7

8
9
Download
--------
10

11
[Download page](https://bitbucket.org/cffi/cffi/downloads)
12

13
14
15
Contact
-------

Maciej Fijalkowski's avatar
syntax    
Maciej Fijalkowski committed
16
[Mailing list](https://groups.google.com/forum/#!forum/python-cffi)
Maciej Fijalkowski's avatar
fixes    
Maciej Fijalkowski committed
17

Armin Rigo's avatar
Armin Rigo committed
18
19
20
Testing/development tips
------------------------

Armin Rigo's avatar
Armin Rigo committed
21
To run tests under CPython, run::
Maciej Fijalkowski's avatar
fixes    
Maciej Fijalkowski committed
22

Armin Rigo's avatar
Armin Rigo committed
23
    pip install pytest     # if you don't have py.test already
Matti Picus's avatar
tweak    
Matti Picus committed
24
    pip install pycparser
Armin Rigo's avatar
Armin Rigo committed
25
    python setup.py build_ext -f -i
Matti Picus's avatar
tweak    
Matti Picus committed
26
    py.test c/ testing/
Armin Rigo's avatar
Armin Rigo committed
27
28
29
30

If you run in another directory (either the tests or another program),
you should use the environment variable ``PYTHONPATH=/path`` to point
to the location that contains the ``_cffi_backend.so`` just compiled.