parameters: ()
return_statement: return version, release
docstring: Grabs and returns the version and release numbers from autotools.
docstring_summary: Grabs and returns the version and release numbers from autotools.
docstring_tokens: Grabs and returns the version and release numbers from autotools .
function: def get_versions():
      """
      Grabs and returns the version and release numbers from autotools.
      """
      import re
      version_h = open(os.path.join('..', '..', 'include', 'mega', 'version.h')).read()
      major = re.search('define MEGA_MAJOR_VERSION ([0-9]+)',
                        version_h)
      minor = re.search('define MEGA_MINOR_VERSION ([0-9]+)',
                        version_h)
      micro = re.search('define MEGA_MICRO_VERSION (.+?)',
                        version_h)
      if major:
          major, minor, micro = major.group(1), minor.group(1), micro.group(1)
          version = '.'.join([major, minor])
      else:
          version = 'raw_development'
      if micro:
          release = '.'.join([major, minor, micro])
      else:
          release = 'raw_development'
      return version, release
function_tokens: def get_versions ( ) : import re version_h = open ( os . path . join ( '..' , '..' , 'include' , 'mega' , 'version.h' ) ) . read ( ) major = re . search ( 'define MEGA_MAJOR_VERSION ([0-9]+)' , version_h ) minor = re . search ( 'define MEGA_MINOR_VERSION ([0-9]+)' , version_h ) micro = re . search ( 'define MEGA_MICRO_VERSION (.+?)' , version_h ) if major : major , minor , micro = major . group ( 1 ) , minor . group ( 1 ) , micro . group ( 1 ) version = '.' . join ( [ major , minor ] ) else : version = 'raw_development' if micro : release = '.' . join ( [ major , minor , micro ] ) else : release = 'raw_development' return version , release