Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #28829
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Subject | Re: Compile python code into a dll |
| Date | 2012-09-10 12:06 -0400 |
| References | <504dd9c6$1@news.fhg.de> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.449.1347293236.27098.python-list@python.org> (permalink) |
On 9/10/2012 8:15 AM, Rolf Wester wrote: > I have Python code that I would like to compile into a dll (I have to > deliver a C/C++ callable dll and I don't want to reimpelement the Python > code in C/C++). It's not for extending Python but I want to call the > Python functions and classes from C/C++. It's more like extending C/C++ > with Python. I would be very appreciative for any help. Cython compiles CPython to C which can be compiled by and c/c++ compiler. I believe it can do the above. "This makes Cython the ideal language for wrapping external C libraries, embedding CPython into existing applications, ". I think the latter is what you want to do. http:cython.org -- Terry Jan Reedy
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Compile python code into a dll Rolf Wester <rolf.wester@ilt.fraunhofer.de> - 2012-09-10 14:15 +0200 Re: Compile python code into a dll Ramchandra Apte <maniandram01@gmail.com> - 2012-09-10 06:08 -0700 Re: Compile python code into a dll Miki Tebeka <miki.tebeka@gmail.com> - 2012-09-10 06:11 -0700 Re: Compile python code into a dll Terry Reedy <tjreedy@udel.edu> - 2012-09-10 12:06 -0400 Re: Compile python code into a dll Rolf Wester <rolf.wester@ilt.fraunhofer.de> - 2012-09-11 09:05 +0200
csiph-web