Properly declare namespace package

The 'sphinxcontrib' is declared a namespace package by setuptools means
via pbr.  Setuptools 0.7 or later mandates explicit declaration via
pkg_resources.declare_namespace (PEP-382).

Otherwise refuses to "setup.py build" on systems with setuptools>0.7.

Change-Id: If0d214a3b2d148450faa2b09292aafcdcf6837e9
This commit is contained in:
Sascha Peilicke 2014-03-31 15:33:30 +02:00
parent 9218f010a9
commit e57ae0157b

View File

@ -0,0 +1,17 @@
# Copyright (C) 2013 eNovance SAS <licensing@enovance.com>
#
# Author: Cyril Roelandt <cyril.roelandt@enovance.com>
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
__import__('pkg_resources').declare_namespace(__name__)