Created by: WyattBlue
The distutils module is being removed in Python 3.121
This patch marks PyAv as only able to install Python versions less than 3.12 in setup.py. This allows pip to know if this version of av is installable with the Python version and act accordingly.
Alternate Approaches
I've also tried ripping out distutils altogether. However, there is so much code that PyAv relies on that removing distutils would be to big of a change to do all at once. I recommend moving away from using the distutils module in setup.py