A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/306111.html below:

Opinion on Pyrex

Opinion on PyrexDon don.nospam.grasberger at gmail.com
Fri Sep 30 17:53:11 EDT 2005
Carl wrote:

> I have recently started to use Pyrex and am amazed by it's useability.
> 
> Are there any alternatives to Pyrex?
> 
> One thing that I haven't figured out is how to embed pure C/C++ source
> code into Pyrex. For example, if you have a bunch of C files that you want
> to use together with some Python code snippets, how do you practically
> achieve this using Pyrex? I have come to the conclusion that it is not
> possible without some rewriting and adaptation (translation) of available
> C source code (if you don't want to compile and link all your C source
> into a statical or dynamical library).
> 
> Carl

I'm not sure exactly where you're having  problems, but that's what extern
cdef's are for.  Then you can add the source modules to setup.py, just like
you do with the pyrex source.  You'll probably gather by now that you're
building with distutils, not pyrexc.

I've done this on Windows, haven't tried in on other platforms.

Don

More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4