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,
)

@@ -1,509 +1,1813 @@
-from setuptools import setup, find_packages%0A%0Arequirements = %5Breq.strip() for req in open(%22requirements.txt%22).readlines()%5D%0A%0Adescription = %22%22%22Vision tools and experiments for NuPIC.%0A%0AThe ImageSensor was originally part of the main NuPIC repository and%0Ahas been moved here with other image and vision components and%0Aexperiments to reduce the dependencies for NuPIC users that aren't%0Adoing vision-related work.%0A%22%22%22%0A%0Asetup(%0A    name=%22nupic.vision%22,%0A    description=description,%0A    namespace_packages=%5B%22nupic%22%5D
+# ----------------------------------------------------------------------%0A# Numenta Platform for Intelligent Computing (NuPIC)%0A# Copyright (C) 2016, Numenta, Inc.  Unless you have an agreement%0A# with Numenta, Inc., for a separate license for this software code, the%0A# following terms and conditions apply:%0A#%0A# This program is free software: you can redistribute it and/or modify%0A# it under the terms of the GNU Affero Public License version 3 as%0A# published by the Free Software Foundation.%0A#%0A# This program is distributed in the hope that it will be useful,%0A# but WITHOUT ANY WARRANTY; without even the implied warranty of%0A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.%0A# See the GNU Affero Public License for more details.%0A#%0A# You should have received a copy of the GNU Affero Public License%0A# along with this program.  If not, see http://www.gnu.org/licenses.%0A#%0A# http://numenta.org/licenses/%0A# ----------------------------------------------------------------------%0A%0A%22%22%22Vision tools and experiments for NuPIC.%0A%0AThe ImageSensor was originally part of the main NuPIC repository and%0Ahas been moved here with other image and vision components and%0Aexperiments to reduce the dependencies for NuPIC users that aren't%0Adoing vision-related work.%0A%22%22%22%0A%0Aimport os%0Afrom setuptools import setup, find_packages%0A%0AREPO_DIR = os.path.dirname(os.path.realpath(__file__))%0A%0Adef getRequirements():%0A  with open(os.path.join(REPO_DIR, %22requirements.txt%22)) as requirementsFile:%0A    requirements = %5Breq.strip() for req in requirementsFile.readlines()%5D%0A%0Adef getVersion():%0A  with open(os.path.join(REPO_DIR, %22VERSION%22)) as versionFile:%0A    return versionFile.read().strip()%0A%0Asetup(%0A    name=%22nupic.vision%22,%0A    version=getVersion(),%0A    description=__doc__,%0A    install_requires=getRequirements(),%0A    package_dir = %7B%22%22: %22src%22%7D
 ,%0A  
@@ -1837,44 +1837,48 @@
 ges(
+%22src%22
 ),%0A    
-install_requires=requirements
+namespace_packages=%5B%22nupic%22%5D
 ,%0A)%0A

Fix up setup.py