diff --git a/MANIFEST.in b/MANIFEST.in index 2ccda7dbc..3855b101b 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,9 +1,8 @@ include data/opensesame.desktop include data/x-opensesame-experiment.xml include resources/*.ttf -include resources/tips.txt include resources/templates/*.opensesame -recursive-exclude .hidden +exclude .hidden recursive-include resources/theme * recursive-exclude resources/theme *~ recursive-exclude resources/theme *.pyc diff --git a/debian/changelog b/debian/changelog index ecef10b22..7084e3788 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -opensesame (2.8.0-ubuntu1) saucy; urgency=low +opensesame (2.8.0-ubuntu3) saucy; urgency=low * New functionality and improvements - Add runner functionality diff --git a/setup.py b/setup.py index 2b69e729b..33335de36 100755 --- a/setup.py +++ b/setup.py @@ -89,11 +89,20 @@ def plugins(): l = [] for plugin in os.listdir("plugins"): if plugin in included_plugins: - l.append( (os.path.join(share_folder, "plugins", plugin), \ - glob.glob("plugins/%s/*" % plugin)) ) - # At plug-in subfolders where necessary + # Copy all files in the plug-in folder, but not any subdirectories, + # because those will trigger an error + target_folder = os.path.join(share_folder, "plugins", plugin) + src_folder = "plugins/%s" % plugin + file_list = [] + for fname in os.listdir(src_folder): + path = os.path.join(src_folder, fname) + if not os.path.isdir(path): + file_list.append(path) + l.append( (target_folder, file_list) ) + # Copy plug-in subfolders where necessary. These are manual hacks to deal + # with plug-ins that have subdirectories. l.append( (os.path.join(share_folder, 'plugins/joystick/_libjoystick'), \ - glob.glob('plugins/joystick/_libjoystick')) ) + glob.glob('plugins/joystick/_libjoystick/*')) ) return l setup(name="opensesame",