So, when you create a new app with the bench new-app command, this is what the setup.py looks like. I haven’t chased all the internals, but these changes were prompted by changes to PIP and are Python 3 compatible. So if you’re having problems installing an older App on V11 or with Python 3.x, try refactoring with this example. New apps should follow this format automatically.
I threw up my hands about this the first few times I encountered it because the error looks so serious… anytime I see import ast I back away like it’s some kind of Australian snake.