|
From: Matthias G. <m_g...@wi...> - 2025-10-02 10:28:19
|
Am 30.09.25 um 15:44 schrieb Matthias Geiger: > After hacking some more on my source tree: > a) does not work as cc does not know against which library to link. > b) would be indeed the way to go; however this would require splitting > the python bindings in a separate repo, so they can link against the C > libgpib. > I'd be willing to write patches for this if you agree to go ahead with > this. This would make python-gpib futureproof and ease distribution, > e.g. on pypi. > In my Debian packaging I hacked around setup.py, but it's kinda ugly > and it will break sooner or later. > Hi all, I extracted the python bindings in a standalone repo and cleaned up the examples a bit. The build now works fine with modern python tooling (i.e. pyproject.toml); I kept the Makefile for now. To run the build you just need to have python3-build, python3 and the library bindings (libgpib) installed. I would appreciate testing/comments; it works for me, but python is not my strong suit. Work is at [0], ideally this would live also on sourceforge in its own repo. [0] https://codeberg.org/werdahias/python-gpib -- Freundliche Grüsse / Best regards Matthias Geiger __________________________________________________________________ Matthias Geiger Werkstudent Forschung & Entwicklung/Research & Development Phone : +49-6441-609-3004 Email : m_g...@wi... URL : www.wiwa.de WIWA Wilhelm Wagner GmbH & Co. KG Gewerbestrasse 1-3, 35633 Lahnau, Germany Besucheranschrift/visitor address: Georg-Ohm-Strasse 12, 35633 Lahnau, Germany AG WETZLAR HRA 3223, Komplementär : Wagner GmbH (AG Wetzlar HRB 363) UST-ID Nr: / VAT-No: DE113745802 Geschäftsführer: Dipl.-Ing. (FH) Peter Turczak, Dipl.-Wirt.-Ing. Malte Weber |