I am trying to simplify the installation of a ctypes python module. However I do not understand how to control the suffix mechanism in setuptools.Extension
.
poetry install
gives me either:
error: can't copy 'build\lib.win-amd64-cpython-310\libdicm.cp310-win_amd64.pyd': doesn't exist or not a regular file
or
error: can't copy 'build/lib.linux-i686-cpython-310/libdicm.cpython-310-x86_64-linux-gnu.so': doesn't exist or not a regular file
How do I control the suffix part of the python name? In my case I want either dicm.dll
or libdicm.so.0
. It seems to have been supported at some point.
My current setup.py is inspired from:
I am trying to keep the cmake-based build system, and this cannot use the solution described at: