forked from open-cogsci/OpenSesame
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·46 lines (36 loc) · 1.48 KB
/
setup.py
File metadata and controls
executable file
·46 lines (36 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env python
from distutils.core import setup
import glob
import os
import os.path
import libopensesame.misc
# Not all plugins are included
included_plugins = ["advanced_delay", "external_script", "fixation_dot", "text_display", "text_input", "notepad"]
def plugins():
"""
Create a list of all plugins that need to be included in the release
"""
global included_plugins
l = []
for plugin in os.listdir("plugins"):
if plugin in included_plugins:
l.append( ("/usr/share/opensesame/plugins/%s" % plugin, glob.glob("plugins/%s/*" % plugin)) )
return l
setup(name="opensesame",
version = libopensesame.misc.version,
description = "A graphical experiment builder for the social sciences",
author = "Sebastiaan Mathot",
author_email = "s.mathot@cogsci.nl",
url = "http://www.cogsci.nl",
scripts = ["opensesame", "opensesamerun"],
packages = ["openexp", "libopensesame", "libqtopensesame"],
package_dir = {"openexp" : "openexp", "libopensesame" : "libopensesame", "libqtopensesame" : "libqtopensesame"},
data_files=[
("/usr/share/opensesame", ["COPYING"]),
("/usr/share/applications", ["data/opensesame.desktop"]),
("/usr/share/opensesame/resources", glob.glob("resources/*.png") + glob.glob("resources/*.opensesame") + glob.glob("resources/*.ttf") + ["resources/tips.txt"]),
("/usr/share/opensesame/help", glob.glob("help/*.html")),
("/usr/share/opensesame/sounds", glob.glob("sounds/*")),
("/usr/share/opensesame/examples", glob.glob("examples/*")),
] + plugins()
)