|
From: Matthias G. <m_g...@wi...> - 2025-09-30 09:33:31
|
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 |