1 | |
---|
2 | """ |
---|
3 | Installs the guiframe package |
---|
4 | """ |
---|
5 | from distutils.core import setup |
---|
6 | import os |
---|
7 | |
---|
8 | path = os.path.join(os.getcwd(), "src", "sans", |
---|
9 | "guiframe","local_perspectives") |
---|
10 | package_dir = {"sans":os.path.join("src", "sans"), |
---|
11 | "sans.guiframe":os.path.join("src", "sans", "guiframe"), |
---|
12 | "sans.guiframe.local_perspectives":path} |
---|
13 | |
---|
14 | package_data = {"sans.guiframe": ['images/*', 'media/*']} |
---|
15 | packages = ["sans.guiframe", 'sans', |
---|
16 | "sans.guiframe.local_perspectives"] |
---|
17 | # build local plugin |
---|
18 | for dir in os.listdir(path): |
---|
19 | if dir not in ['.svn','__init__.py', '__init__.pyc']: |
---|
20 | package_name = "sans.guiframe.local_perspectives." + dir |
---|
21 | packages.append(package_name) |
---|
22 | package_dir[package_name] = os.path.join("src", "sans", |
---|
23 | "guiframe", |
---|
24 | "local_perspectives", dir) |
---|
25 | |
---|
26 | |
---|
27 | setup( |
---|
28 | name="sansguiframe", |
---|
29 | version = "1.0.0", |
---|
30 | description = "Python module for SANS gui framework", |
---|
31 | author = "University of Tennessee", |
---|
32 | url = "http://danse.chem.utk.edu", |
---|
33 | package_dir = package_dir, |
---|
34 | packages = packages, |
---|
35 | package_data = package_data, |
---|
36 | ) |
---|