Running commands from
setup.py is deprecated. E.g.: Why you shouldn't invoke setup.py directly by Paul Ganssle, October 2021.
Follow the tutorial: https://packaging.python.org/tutorials/packaging-projects/
Try the new "build" tool: https://pypa-build.readthedocs.io/en/stable/
See also the sample project: https://github.com/pypa/sampleproject
Maybe use tox or nox? Or pytest? Or just keep using make.