Modernizing an old Python project that had a heavy custom build process built into setup.py is unsurprisingly painful.