As the title says, directly running setup.py is deprecated and newer versions of python (e.g. python 3.11) yell at you for running it directly.