text: import re
  
  from codecs import open
  from setuptools import setup
  
  version = ''
  license = ''
  title = ''
  author = ''
  contact = ''
  with open('rap/__init__.py', 'r') as fd:
      file_content = fd.read()
      version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
                          file_content, re.MULTILINE).group(1)
      license = re.search(r'^__license__\s*=\s*[\'"]([^\'"]*)[\'"]',
                          file_content, re.MULTILINE).group(1)
      title = re.search(r'^__title__\s*=\s*[\'"]([^\'"]*)[\'"]', file_content,
                        re.MULTILINE).group(1)
      author = re.search(r'^__author__\s*=\s*[\'"]([^\'"]*)[\'"]', file_content,
                         re.MULTILINE).group(1)
      contact = re.search(r'^__contact__\s*=\s*[\'"]([^\'"]*)[\'"]',
                          file_content, re.MULTILINE).group(1)
  
  setup(
      name=title,
      version=version,
      description="""Geospatial dataset exploration with Routers As Probes """,
      author=author,
      author_email=contact,
      license=license,
      packages=['rap'],
      entry_points={
          'console_scripts': [
              'rapy=rap.rapy:main'
          ]
      })
  