Convert CPython library with C Code to Jython and Java

Gerhard Häring gh at ghaering.de
Mon May 12 19:34:36 EDT 2003


Thomas wrote:
> Hello!
> 
> I want to port a Python library that contains C code to Jython and
> Java. What is the easiest way to do that?
> 
> (1) Convert C library to Java.
> (2) Somehow integrate compiled .pyd library into Jython and Java.
> (3) Any other solution?
> 
> Since I don´t have enough C know-how, I would prefer not to go for
> option (1). Can you recommend me any workaround?

Option 2): In theory, JPE is the simplest solution: 
http://www.arakne.com/jpe.htm
But I think JPE is unfinished.

If 1) is feasible and you have somebody proficient in both C and Java 
(for example yourself), I think it might be the best option.

-- Gerhard





More information about the Python-list mailing list