summaryrefslogtreecommitdiff
path: root/README.md
blob: 21c82b8492b9df69facff618b5dcc4fb38fd0ab3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
CFFI
====

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

Download
--------

[Download page](https://foss.heptapod.net/pypy/cffi/-/tags)

Source Code
-----------

CFFI is developed using [Mercurial SCM](mercurial-scm.org/).
The source code is publicly available on
[heaptapod](https://foss.heptapod.net/pypy/cffi).

You can read more about how to contribute to the project on
[PyPy's documentation](https://doc.pypy.org/en/latest/contributing.html).

Contact
-------

[Mailing list](https://groups.google.com/forum/#!forum/python-cffi)

Testing/development tips
------------------------

To run tests under CPython, run::

    pip install pytest     # if you don't have pytest already
    pip install pycparser
    python setup.py build_ext -f -i
    pytest c/ testing/

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.