|
From: Matthias G. <m_g...@wi...> - 2025-09-30 13:25:55
|
Am 30.09.25 um 14:54 schrieb dave penkler:
> After applying your patch I get:
>
> Making all in python
> make[3]: Entering directory
> '/home/dave/src/linux-gpib-git/linux-gpib-user/language/python'
> { /usr/bin/python -m build && touch build; } || { rm -f -r build; exit
> 1; }
> /usr/bin/python: No module named build.__main__; 'build' is a package
> and cannot be directly executed
> make[3]: [Makefile:501: build] Error 1 (ignored)
> make[3]: Leaving directory
> '/home/dave/src/linux-gpib-git/linux-gpib-user/language/python
>
> without your patch I get:
>
> Making all in python
> make[3]: Entering directory
> '/home/dave/src/linux-gpib-git/linux-gpib-user/language/python'
> { /usr/bin/python setup.py build && touch build; } || { rm -f -r
> build; exit 1; }
> 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
> creating gpib.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
> writing manifest file 'gpib.egg-info/SOURCES.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
> gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC
> -I../../include -I/usr/include/python3.12 -c gpibinter.c -o
> build/temp.linux-x86_64-cpython-312/gpibinter.o
> gcc -shared build/temp.linux-x86_64-cpython-312/gpibinter.o
> -L../../lib/.libs -L/usr/lib64 -lgpib -lpthread -o
> build/lib.linux-x86_64-cpython-312/gpib.cpython-312-x86_64-linux-gnu.so
> <http://gpib.cpython-312-x86_64-linux-gnu.so>
> make[3]: Leaving directory
> '/home/dave/src/linux-gpib-git/linux-gpib-user/language/python'
>
> cheers,
> -dave
Hi Dave,
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
|