As title, this revision attempts to patch the spidermonkey tarball to permit it to build using python 3.12.
This means updating various instances of vendored python package six (one copy vendored by spidermonkey directly, one copy vendored by urllib3, one copy vendored by virtualenv, and various copies vendored in the instances of urllib3 vendored inside the pip wheels vendored by virtualenv).
The sequence also replaces some (but not all) instances of distutils used within the build process. Essentially as few as possible to get this to build. Seriously: distutils is used a lot.
I tried to put this together in such a way as to hopefully make adapting this to work on ESR102 easier than it could be otherwise.
Yes, I know this is a mess. Looking at it makes me feel uncomfortable, and I realise I'm probably going to get flak for certain aspects of it. I figured it was worth sharing if only to show that it's possible. If anyone wishes to take this and clean it up - feel free.