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


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

RE: wrappers for C/C++

Started by"Ginga, Dick" <Dick.Ginga@PERKINELMER.COM>
First post2015-12-11 18:40 +0000
Last post2015-12-11 18:40 +0000
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++ "Ginga, Dick" <Dick.Ginga@PERKINELMER.COM> - 2015-12-11 18:40 +0000

#100302 — RE: wrappers for C/C++

From"Ginga, Dick" <Dick.Ginga@PERKINELMER.COM>
Date2015-12-11 18:40 +0000
SubjectRE: wrappers for C/C++
Message-ID<mailman.159.1449865671.12405.python-list@python.org>
Thank you Chris for this answer.  These are the _only_ versions the build creates. Are you saying that wrappers for 3.5 "may" continue to support future versions?

-----Original Message-----
From: Python-list [mailto:python-list-bounces+dick.ginga=perkinelmer.com@python.org] On Behalf Of Chris Angelico
Sent: Friday, December 11, 2015 1:29 PM
Cc: python-list@python.org
Subject: Re: wrappers for C/C++

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
--
https://mail.python.org/mailman/listinfo/python-list

[toc] | [standalone]


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


csiph-web