Daniel Dunbar | 30c0f26 | 2010-01-24 02:02:07 +0000 | [diff] [blame] | 1 | //===----------------------------------------------------------------------===// |
| 2 | // Clang Python Bindings |
| 3 | //===----------------------------------------------------------------------===// |
| 4 | |
Daniel Dunbar | f51f20f | 2010-04-30 21:51:10 +0000 | [diff] [blame] | 5 | This directory implements Python bindings for Clang. |
Daniel Dunbar | 30c0f26 | 2010-01-24 02:02:07 +0000 | [diff] [blame] | 6 | |
Daniel Dunbar | f51f20f | 2010-04-30 21:51:10 +0000 | [diff] [blame] | 7 | You may need to alter LD_LIBRARY_PATH so that the Clang library can be |
Daniel Dunbar | 30c0f26 | 2010-01-24 02:02:07 +0000 | [diff] [blame] | 8 | found. The unit tests are designed to be run with 'nosetests'. For example: |
| 9 | -- |
| 10 | $ env PYTHONPATH=$(echo ~/llvm/tools/clang/bindings/python/) \ |
| 11 | LD_LIBRARY_PATH=$(llvm-config --libdir) \ |
| 12 | nosetests -v |
| 13 | tests.cindex.test_index.test_create ... ok |
| 14 | ... |
| 15 | |
| 16 | OK |
| 17 | -- |