From 63655166ea52d24101c59d91f8b222a42c105937 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 28 Feb 2013 11:48:13 +0000 Subject: Install plugins as a Python package, not package data Previously, we were installing morphlib/plugins/*.py as package data. It now needs to be a proper Python package, so that "import morophlib.plugins" works (or "import morphlib.plugins.foo_plugin"). This requires us to install the morphlib/plugins/__init__.py file in setup.py, which this patch makes happen. Reported-By: Jonathan Maw --- setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index aaa164ac..b00b64a8 100644 --- a/setup.py +++ b/setup.py @@ -139,10 +139,9 @@ FIXME author_email='lars.wirzenius@codethink.co.uk', url='http://www.baserock.org/', scripts=['morph'], - packages=['morphlib'], + packages=['morphlib', 'morphlib.plugins'], package_data={ 'morphlib': [ - 'plugins/*_plugin.py', 'exts/*', 'version', 'commit', -- cgit v1.2.1