From c0c5cd8a3722276bc0dc7d0d8068972a912e72e8 Mon Sep 17 00:00:00 2001 From: Scott Purdy Date: Mon, 27 Jul 2015 17:57:00 -0700 Subject: [PATCH] Makes nupic a namespace package that other projects can extend. --- nupic/__init__.py | 4 ++-- setup.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/nupic/__init__.py b/nupic/__init__.py index c3944821e5..ab7d888e2e 100644 --- a/nupic/__init__.py +++ b/nupic/__init__.py @@ -1,6 +1,6 @@ # ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) -# Copyright (C) 2013, Numenta, Inc. Unless you have an agreement +# Copyright (C) 2013-2015, Numenta, Inc. Unless you have an agreement # with Numenta, Inc., for a separate license for this software code, the # following terms and conditions apply: # @@ -19,4 +19,4 @@ # http://numenta.org/licenses/ # ---------------------------------------------------------------------- -__version__ = "0.2.7.dev0" +__import__('pkg_resources').declare_namespace(__name__) diff --git a/setup.py b/setup.py index 38f1a7d3ed..93389ff1a5 100644 --- a/setup.py +++ b/setup.py @@ -637,6 +637,7 @@ def postProcess(): name="nupic", version=getVersion(), install_requires=findRequirements(), + namespace_packages=["nupic"], packages=find_packages(), package_data={ "nupic.support": ["nupic-default.xml",