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


Groups > comp.lang.python > #100287 > unrolled thread

Re: wrappers for C/C++

Started byChris Angelico <rosuav@gmail.com>
First post2015-12-12 05:29 +1100
Last post2015-12-12 05:29 +1100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#100287 — Re: wrappers for C/C++

FromChris Angelico <rosuav@gmail.com>
Date2015-12-12 05:29 +1100
SubjectRe: wrappers for C/C++
Message-ID<mailman.152.1449858556.12405.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web