Hack to make __versions__ callable from setup.py

This fixes #7425.