I have certain scripts that are installed as console_scripts using Python's setuptools. This script is run as www-data user. But the script also needs access to SSL certs that can be read only by root user.
One of the possible solutions that I see to solving this problem is setting SUID on the generated console_script. I can do that manually using a Makefile, but I was looking for more of an out-of-the-box solution that is already provided by any packaging tool in the Python ecosystem.
Is this is possible at all? Or setting SUID using a Makefile is the best option I have?