Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #100287

Re: wrappers for C/C++

From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Subject Re: wrappers for C/C++
Date 2015-12-12 05:29 +1100
Message-ID <mailman.152.1449858556.12405.python-list@python.org> (permalink)
References <6C6EE445A6F6CE4E8A0FFB51B071A4E2D869B96D@AMERMBX02.PERKINELMER.NET>

Show all headers | View raw


On Sat, Dec 12, 2015 at 4:21 AM, Ginga, Dick <Dick.Ginga@perkinelmer.com> wrote:
> I have inherited a product build that uses SWIG to product wrapper libraries for our C/C++ code. It currently builds these wrappers for 2.5, 2.6, 3.1 and 3.2.
>
> Is it necessary to have version specific wrappers?

Yes, it is, because of the way Python's internals work. But you can
probably build them all from the same source code.

I'm not sure whether you mean that those four are the _only_ versions
it's building for, or if you noted them as being particularly old
versions still being built for. Either way, you should be in full
control of your version support; if this is an internal project, you
could simply stipulate that only one version of Python is supported
(or maybe two - 2.7 and one 3.x), and save yourself some build
hassles. If you're posting it on PyPI, you can put the source code out
there and let Unix users build their own, and then you need only worry
about Windows; I haven't seen confirmation yet (as there's no official
3.6 builds), but supporting "3.5+" should be possible from a single
binary. (You would still need a separate binary for 2.7, though.)

ChrisA

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: wrappers for C/C++ Chris Angelico <rosuav@gmail.com> - 2015-12-12 05:29 +1100

csiph-web