old_contents: from setuptools import setup, find_packages
  from genologics.version import __version__
  import sys, os
  import subprocess
  import glob
  
  # Fetch version from git tags.
  # if git is not available (PyPi package), use stored version.py.
  version_py = os.path.join(os.path.dirname(__file__), 'genologics', 'version.py')
  
  version = subprocess.Popen(["git", "describe", "--abbrev=0"],stdout=subprocess.PIPE, universal_newlines=True).communicate()[0].rstrip()
  if not version:
      version = __version__
  else:
      version = version.decode("utf-8")
  
  try:
      with open("requirements.txt") as rq:
          requires=rq.readlines()
  except:
      requires=["requests"]
  
  setup(name='genologics',
        version=version,
        description="Python interface to the GenoLogics LIMS (Laboratory Information Management System) server via its REST API.",
        long_description="""A basic module for interacting with the GenoLogics LIMS server via its REST API.
                            The goal is to provide simple access to the most common entities and their attributes in a reasonably Pythonic fashion.""",
        classifiers=[
  	"Development Status :: 4 - Beta",
  	"Environment :: Console",
  	"Intended Audience :: Developers",
  	"Intended Audience :: Healthcare Industry",
  	"Intended Audience :: Science/Research",
  	"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
  	"Operating System :: POSIX :: Linux",
  	"Programming Language :: Python",
  	"Topic :: Scientific/Engineering :: Medical Science Apps."
  	],
        keywords='genologics api rest',
        author='Per Kraulis',
        author_email='per.kraulis@scilifelab.se',
        maintainer='Denis Moreno',
        maintainer_email='denis.moreno@scilifelab.se',
        url='https://github.com/scilifelab/genologics',
        license='GPLv3',
        packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
        scripts=glob.glob("scripts/*.py"),
        include_package_data=True,
        zip_safe=False,
        install_requires=[
            "requests"
        ],
        entry_points="""
        # -*- Entry points: -*-
        """,
        )
  
new_contents: from setuptools import setup, find_packages
  from genologics.version import __version__
  import sys, os
  import subprocess
  import glob
  
  # Fetch version from git tags.
  # if git is not available (PyPi package), use stored version.py.
  
  try:
      version = subprocess.Popen(["git", "describe", "--abbrev=0"],stdout=subprocess.PIPE, universal_newlines=True).communicate()[0].rstrip()
      version = version.decode("utf-8")
  except:
      try:
          version = __version__
      except:
          version_py = os.path.join(os.path.dirname(__file__), 'genologics', 'version.py')
  
  try:
      with open("requirements.txt") as rq:
          requires=rq.readlines()
  except:
      requires=["requests"]
  
  setup(name='genologics',
        version=version,
        description="Python interface to the GenoLogics LIMS (Laboratory Information Management System) server via its REST API.",
        long_description="""A basic module for interacting with the GenoLogics LIMS server via its REST API.
                            The goal is to provide simple access to the most common entities and their attributes in a reasonably Pythonic fashion.""",
        classifiers=[
  	"Development Status :: 4 - Beta",
  	"Environment :: Console",
  	"Intended Audience :: Developers",
  	"Intended Audience :: Healthcare Industry",
  	"Intended Audience :: Science/Research",
  	"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
  	"Operating System :: POSIX :: Linux",
  	"Programming Language :: Python",
  	"Topic :: Scientific/Engineering :: Medical Science Apps."
  	],
        keywords='genologics api rest',
        author='Per Kraulis',
        author_email='per.kraulis@scilifelab.se',
        maintainer='Denis Moreno',
        maintainer_email='denis.moreno@scilifelab.se',
        url='https://github.com/scilifelab/genologics',
        license='GPLv3',
        packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
        scripts=glob.glob("scripts/*.py"),
        include_package_data=True,
        zip_safe=False,
        install_requires=[
            "requests"
        ],
        entry_points="""
        # -*- Entry points: -*-
        """,
        )
  
subject: Update install script. Should fix #186