[fix] tests: restore compatibility with Python 3.12+ and 3.13
distutils was removed from the standard library in Python 3.12, breaking every test that builds the extdemo C extension fixture (its generated setup.py did "from distutils.core import setup, Extension" and is run as a bare subprocess, bypassing setuptools' site-level distutils shim). Import setuptools' setup/Extension instead, falling back to distutils for older Pythons where setuptools might not be present.
easy_install.py used an unescaped backslash sequence in a regex literal, which is now a SyntaxWarning; this polluted stdout in several update.txt scenarios and broke their doctest comparison. Use a raw string.
Python 3.13 appends "Did you forget to import 'x'?" to NameError messages; add a renormalizer so the existing internal_errors test still matches.
WebOb now depends on legacy_cgi on Python 3.13 (cgi was removed from the standard library); make the two doc examples that enumerate installed eggs tolerate it on that Python version.