Earlier quoted context omitted.
Pair this with virtualenvs in separate directories (so that "rollback" is just a ssh mv and a reload for whatever supervisor process) and you get to skip the mess of building system packages. Also, are there seriously places that don't run their own PyPI mirrors? Places that have people who understand how to integrate platform-specific packages but can't be bothered to deploy one of the several PyPI-in-a-box systems…
Can you point me to your recommended PyPI-in-a-box system?
It works. It's django based and you can setup s3-backed storage. It also has a docker-compose script.