old_contents: from setuptools import setup, find_packages
  
  requirements = [req.strip() for req in open("requirements.txt").readlines()]
  
  description = """Vision tools and experiments for NuPIC.
  
  The ImageSensor was originally part of the main NuPIC repository and
  has been moved here with other image and vision components and
  experiments to reduce the dependencies for NuPIC users that aren't
  doing vision-related work.
  """
  
  setup(
      name="nupic.vision",
      description=description,
      namespace_packages=["nupic"],
      packages = find_packages(),
      install_requires=requirements,
  )
  
new_contents: # ----------------------------------------------------------------------
  # Numenta Platform for Intelligent Computing (NuPIC)
  # Copyright (C) 2016, Numenta, Inc.  Unless you have an agreement
  # with Numenta, Inc., for a separate license for this software code, the
  # following terms and conditions apply:
  #
  # This program is free software: you can redistribute it and/or modify
  # it under the terms of the GNU Affero Public License version 3 as
  # published by the Free Software Foundation.
  #
  # This program is distributed in the hope that it will be useful,
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  # See the GNU Affero Public License for more details.
  #
  # You should have received a copy of the GNU Affero Public License
  # along with this program.  If not, see http://www.gnu.org/licenses.
  #
  # http://numenta.org/licenses/
  # ----------------------------------------------------------------------
  
  """Vision tools and experiments for NuPIC.
  
  The ImageSensor was originally part of the main NuPIC repository and
  has been moved here with other image and vision components and
  experiments to reduce the dependencies for NuPIC users that aren't
  doing vision-related work.
  """
  
  import os
  from setuptools import setup, find_packages
  
  REPO_DIR = os.path.dirname(os.path.realpath(__file__))
  
  def getRequirements():
    with open(os.path.join(REPO_DIR, "requirements.txt")) as requirementsFile:
      requirements = [req.strip() for req in requirementsFile.readlines()]
  
  def getVersion():
    with open(os.path.join(REPO_DIR, "VERSION")) as versionFile:
      return versionFile.read().strip()
  
  setup(
      name="nupic.vision",
      version=getVersion(),
      description=__doc__,
      install_requires=getRequirements(),
      package_dir = {"": "src"},
      packages = find_packages("src"),
      namespace_packages=["nupic"],
  )
  
subject: Fix up setup.py