move snapshot-versioning-mode code from anyconfig.globals to setup.py