|
From: dave p. <dpe...@gm...> - 2025-09-30 12:54:49
|
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
make[3]: Leaving directory
'/home/dave/src/linux-gpib-git/linux-gpib-user/language/python'
cheers,
-dave
On Tue, 30 Sept 2025 at 11:34, Matthias Geiger <m_g...@wi...> wrote:
> Hi,
>
> I am finalizing my packaging of the userspace tools for Debian. The
> major blocker to get this uploaded are the python bindings.
> I ran into the following issues:
> - The install path is hardcoded to
> /usr/local/lib/python3.12/dist-packages; this should be
> /usr/lib/$(pythonversion)/distpackages
> - setuptools is deprecated:
>
> running install
> /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66:
> SetuptoolsDeprecationWarning: setup.py install is deprecated.
> !!
>
>
> ********************************************************************************
> Please avoid running ``setup.py`` directly.
> Instead, use pypa/build, pypa/installer or other
> standards-based tools.
>
> See
> https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for
> details.
>
> ********************************************************************************
>
> !!
>
> Attached you can find a patch that converts the userspace tools to use
> pyproject.toml. This does not work (yet), since
> pyproject can't deal with a header that is not in the same directory as
> the project root:
> https://discuss.python.org/t/include-header-above-project-root/102221/3
> None of the solutions for this are nice; IMO the best would be to
> symlink/copy Gpib.h to the language/python subdirectory.
> Alternatively, the whole build process could be implemented in make,
> however that is not ideal and I'd like to avoid that.
> I'd like to ask for guidance what the project prefers; the current
> setuptools approach will break sooner or later (it's already deprecated).
>
> --
> 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
> _______________________________________________
> Linux-gpib-general mailing list
> Lin...@li...
> https://lists.sourceforge.net/lists/listinfo/linux-gpib-general
>
|