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


Groups > linux.debian.maint.python > #10622 > unrolled thread

Library package for multiple versions

Started byErvin Hegedüs <airween@gmail.com>
First post2018-06-06 23:20 +0200
Last post2018-06-06 23:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.debian.maint.python


Contents

  Library package for multiple versions Ervin Hegedüs <airween@gmail.com> - 2018-06-06 23:20 +0200

#10622 — Library package for multiple versions

FromErvin Hegedüs <airween@gmail.com>
Date2018-06-06 23:20 +0200
SubjectLibrary package for multiple versions
Message-ID<vXO0x-7J1-1@gated-at.bofh.it>
Hi,

I'm a (one of) maintainer of a library package, name is "hamlib":
https://packages.debian.org/sid/libhamlib2

Hamlib is a library for several languages, eg. Python, Perl, Lua,
Tcl, and of course, C and C++. The main goal is collect the
different HAM radio CAT controll API's to one API - that's a
quasi de facto RIG CAT library. Here are the upstream codebase(s):
https://github.com/Hamlib/Hamlib
https://sourceforge.net/projects/hamlib/

The code had written in C. All binding ports for languages made
with SWIG.
https://github.com/Hamlib/Hamlib/blob/master/bindings/hamlib.swg

About a year ago, the main developer of project made a short doc,
where he describes, how can we make the hamlib module for both
Python2 and Python3.
https://github.com/Hamlib/Hamlib/blob/master/bindings/README.python

There are some problems:
* as he write, the user needs to recompile at twice the binding;
  first for the Python 2, then need a "make clean", and then the
  Python 3
* this is because the naming convention of Python .so's are
  equal, eg. the final shared object will be _Hamlib.so

Now the Python module exists for Python2.
https://packages.debian.org/buster/python-libhamlib2

Could anybody help with some tips, how can I integrate the new,
Python3 module with the existing Python2?

Thanks,


Ervin
HA2OS

[toc] | [standalone]


Back to top | Article view | linux.debian.maint.python


csiph-web