def nupicBindingsPrereleaseInstalled():
 try:
  nupicDistribution = pkg_resources.get_distribution('nupic.bindings')
  if pkg_resources.parse_version(nupicDistribution.version).is_prerelease:
   return True
 except pkg_resources.DistributionNotFound:
  pass
 try:
  nupicDistribution = pkg_resources.get_distribution('nupic.research.bindings')
  return True
 except pkg_resources.DistributionNotFound:
  pass
 return False

def nupicBindingsPrereleaseInstalled ( ) : try : nupicDistribution = pkg_resources . get_distribution ( 'nupic.bindings' ) if pkg_resources . parse_version ( nupicDistribution . version ) . is_prerelease : return True except pkg_resources . DistributionNotFound : pass try : nupicDistribution = pkg_resources . get_distribution ( 'nupic.research.bindings' ) return True except pkg_resources . DistributionNotFound : pass return False
make an attempt to determine if a pre-release version of nupic .