3

I'm currently using boost-python to wrap a small C++ library and make it usable from Python. However, I'd like to stop using boost (mainly due to reasons relating to building/linking). So what other options are there?

Is there something that's equally convenient to use?

2
  • 2
    You'd probably be better off opening a new question about your building/linking problems. boost::python is pretty nice. Commented Jun 23, 2010 at 20:35
  • No, because my building/linking problem is well know: it's bloody difficult to find out what arguments to pass to the compiler/linker, because boost doesn't have something like pkg-config. Commented Jun 24, 2010 at 8:24

3 Answers 3

2

There's Riverbank's SIP, Beazley's Swig, and Scott's/Dubois'/Furnish's Cxx. See also this page with other potentially relevant projects (but no direct answer to your immediate needs, I believe).

Sign up to request clarification or add additional context in comments.

Comments

2

Take a look at SWIG.

Comments

0

Cython's syntax is very Pythonic, breaking the rules only where necessary.

3 Comments

Yep, but it doesn't do C++ -- in my answers, I listed only projects that do (SIP and Cxx are C++ only, SWIG supports multiple languages).
@Alex: Then how come the page at the link I gave exists?
There are people saying that Cython does C++ well in 0.13, but the latest release is 0.12.1 :( The main question however is whether I can easily use a library, written in Cython, from Python (CPython).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.