CLPython is an open-source implementation of Python written in Common Lisp. With CLPython you can run Python programs in a Lisp environment. Libraries written in Lisp are available to Python code, and Python libraries can be accessed by Lisp code.
CLPython is developed by Willem Broekema and is released as open source under the LLGPL.
Please see the Introduction and Manual on common-lisp.net.
CLPython runs successfully on each of the following platforms:
- Allegro CL 8.2 (ANSI and Modern)
- Clozure CL 1.5-r13651
- CMUCL 20b-pre2
- ECL (git: 2011.02.11)
- LispWorks 6.0
- SBCL 1.0.45
There are dependencies on:
- CL-Yacc (not for Allegro CL)
- Closer to MOP
- CL-Custom-Hash-Table (only for ECL)
- ptester (not for Allegro CL)
To compile and load CLPython you need asdf. First create a link from the repository to files clpython.asd and clpython-test.asd. Then load the system:
(asdf:operate 'asdf:load-op :clpython)
To run the test suite:
(asdf:operate 'asdf:test-op :clpython)
The test result printed at the end should be a message like "Errors detected in this test: 4" (which are a handful known issues) and many successes. Unintended test errors are marked as "unexpected" in the summary; please report them if they occur.
There are two mailing lists, both low-traffic:
- clpython-devel for general discussion and bug reports;
- clpython-announce for announcements of new releases.