|
From: Matthias G. <m_g...@wi...> - 2025-09-30 13:44:54
|
Am 30.09.25 um 15:25 schrieb Matthias Geiger: > > > this is because the python3 build module needs to be installed. > With that it just fails because the gpib/ib.h header is not present: > > > * Building wheel from sdist > * Creating venv isolated environment... > * Installing packages in isolated environment... (setuptools>=61) > * Getting build dependencies for wheel... > /tmp/build-env-qiaffj9e/lib/python3.12/site-packages/setuptools/config/pyprojecttoml.py:72: > _ExperimentalConfiguration: `[tool.setuptools.ext-modules]` in > `pyproject.toml` is still *experimental* and likely to cha > nge in future releases. > config = read_configuration(filepath, True, ignore_option_errors, dist) > running egg_info > writing gpib.egg-info/PKG-INFO > writing dependency_links to gpib.egg-info/dependency_links.txt > writing top-level names to gpib.egg-info/top_level.txt > reading manifest file 'gpib.egg-info/SOURCES.txt' > writing manifest file 'gpib.egg-info/SOURCES.txt' > * Building wheel... > /tmp/build-env-qiaffj9e/lib/python3.12/site-packages/setuptools/config/pyprojecttoml.py:72: > _ExperimentalConfiguration: `[tool.setuptools.ext-modules]` in > `pyproject.toml` is still *experimental* and likely to cha > nge in future releases. > config = read_configuration(filepath, True, ignore_option_errors, dist) > running bdist_wheel > running build > running build_py > creating build/lib.linux-x86_64-cpython-312 > copying Gpib.py -> build/lib.linux-x86_64-cpython-312 > running egg_info > writing gpib.egg-info/PKG-INFO > writing dependency_links to gpib.egg-info/dependency_links.txt > writing top-level names to gpib.egg-info/top_level.txt > reading manifest file 'gpib.egg-info/SOURCES.txt' > writing manifest file 'gpib.egg-info/SOURCES.txt' > running build_ext > building 'gpib' extension > creating build/temp.linux-x86_64-cpython-312 > x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g > -O2 -Wall -fPIC -I../../include -I/tmp/build-env-qiaffj9e/include > -I/usr/include/python3.12 -c gpibinter.c -o > build/temp.linux-x86_64-cpython-31 > 2/gpibinter.o > gpibinter.c:12:10: fatal error: gpib/ib.h: Datei oder Verzeichnis > nicht gefunden > 12 | #include <gpib/ib.h> > | ^~~~~~~~~~~ > compilation terminated. > error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1 > > ERROR Backend subprocess exited when trying to invoke build_wheel > make[3]: [Makefile:494: build] Fehler 1 (ignoriert) > > From what I understand, this would require the header to a) either be > present locally *in the same* directory, or b) to be included via > /usr/share/include. > Since the latter is IMO not feasible I will look into getting a) to work. > > best, > > 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. -- 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 |