Move dynamically-generated portion of Python setup script into a separate file.