Skip to content

Commit 5fadbfa

Browse files
committed
add namespace package declaration
1 parent 47aa40a commit 5fadbfa

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

docs/source/plugins.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ configured.
181181
description = 'Enhancements to virtualenv',
182182
183183
# ... details omitted ...
184+
185+
namespace_packages = [ 'virtualenvwrapper' ],
184186
185187
entry_points = {
186188
'virtualenvwrapper.initialize': [
@@ -193,7 +195,7 @@ configured.
193195
# ... details omitted ...
194196
},
195197
)
196-
198+
197199
The ``entry_points`` argument to ``setup()`` is a dictionary mapping
198200
the entry point *group names* to lists of entry point specifiers. A
199201
different group name is defined by virtualenvwrapper for each
@@ -204,6 +206,11 @@ package.module:function``. By convention, the *name* of each entry
204206
point is the plugin name, but that is not required (the names are not
205207
used).
206208

209+
.. seealso::
210+
211+
* `namespace packages <http://packages.python.org/distribute/setuptools.html#namespace-packages>`__
212+
* `Extensible Applications and Frameworks <http://packages.python.org/distribute/setuptools.html#extensible-applications-and-frameworks>`__
213+
207214
The Hook Loader
208215
---------------
209216

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,11 @@ def find_package_data(
136136
],
137137

138138
provides=['virtualenvwrapper',
139+
'virtualenvwrapper.user_scripts',
139140
],
140141
requires=['virtualenv'],
141142

143+
namespace_packages = [ 'virtualenvwrapper' ],
142144
packages = find_packages(),
143145
include_package_data = True,
144146
# Scan the input for package information

0 commit comments

Comments
 (0)