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