Commits

mitar  committed 6d7ccbd

Added datasets hook.

  • Participants
  • Parent commits 7ec7866

Comments (0)

Files changed (3)

+recursive-include _multitask/datasets *

File _multitask/__init__.py

 from __future__ import absolute_import
 
+import pkg_resources
+
 import Orange
 
 from . import mtfeat
 
+def datasets():
+    yield ('multitask', pkg_resources.resource_filename(__name__, 'datasets'))
 
 def split_by_task(data, task_id='task'):
     """
 
 setup(
     name = "multitask",
-    packages = ["multitask"],
+    packages = ["_multitask"],
+    package_data = {},
     version = "0.3",
     description = "Orange add-on for multi-task learning",
     author = "Lan Zagar",
         "Topic :: Scientific/Engineering :: Artificial Intelligence",
         ],
     long_description = LONG_DESCRIPTION,
-    entry_points = {'orange.addons': ('multitask = multitask',),
-                    'orange.widgets': ('Multitask = multitask.widgets',)},
+    entry_points = {'orange.addons': ('multitask = _multitask',),
+                    'orange.widgets': ('Multitask = _multitask.widgets',),
+                    'orange.data.io.search_paths': ('multitask = _multitask:datasets',)},
     include_package_data = True,
+    zip_safe = False,
 )