source: sasview/guiframe/setup.py @ 614ce1b1

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 614ce1b1 was bdcc69e, checked in by Gervaise Alina <gervyh@…>, 14 years ago
  • Property mode set to 100644
File size: 1.4 KB
RevLine 
[41d466f]1"""
2    Installs the guiframe package
3"""
[bdcc69e]4
5   
[41d466f]6from distutils.core import setup, Extension
7
[b90decd]8from distutils.sysconfig import get_python_lib
9import os, sys
10
11package_dir = { "sans.guiframe":".",
12                "sans.guiframe.local_perspectives":"local_perspectives",
13                "sans.guiframe.local_perspectives.plotting":"local_perspectives/plotting"}
14
15packages = ["sans.guiframe", 
16            "sans.guiframe.local_perspectives",
17            "sans.guiframe.local_perspectives.plotting"]
18
19# Check whether the sans module exists,
20# if not, make sure a default __init__ is created
21if 'install' in sys.argv:
22    try:
23        lib_dir = get_python_lib()
24        danse_init = os.path.join(lib_dir, 'sans', '__init__.py')
25        if not os.path.isfile(danse_init):
26            if not os.path.isdir("tmp_sans"):
27                os.mkdir("tmp_sans")
28            f = open("tmp_sans/__init__.py",'w')
29            f.close()
30            package_dir['sans'] = "tmp_sans"
31            packages.append("sans")
32    except:
33        print "Couldn't create sans/__init__.py\n  %s" % sys.exc_value
34
[41d466f]35setup(
36    name="guiframe",
37    version = "0.1",
38    description = "Python module for SANS gui framework",
39    author = "University of Tennessee",
40    url = "http://danse.chem.utk.edu",
41   
[b90decd]42    package_dir = package_dir,
43
44    packages = packages,
[41d466f]45   
46    package_data={"sans.guiframe": ['images/*']},
47    )
48       
Note: See TracBrowser for help on using the repository browser.