version_info=(5,2,1)__version__='.'.join(map(str,version_info[:3]))# pep440 is annoying, beta/alpha/rc should _not_ have dots or pip/setuptools# confuses which one between the wheel and sdist is the most recent.iflen(version_info)==4:extra=version_info[3]ifextra.startswith(('a','b','rc')):__version__=__version__+extraelse:__version__=__version__+'.'+extraiflen(version_info)>4:raiseNotImplementedErrorkernel_protocol_version_info=(5,3)kernel_protocol_version='%s.%s'%kernel_protocol_version_info