- Timestamp:
- Feb 13, 2009 7:55:35 PM (16 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- cbee247
- Parents:
- 6c98b98
- Location:
- sansview
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/sansview.py
rd89f09b r365a17f6 19 19 # Additional perspectives can still be loaded 20 20 # dynamically 21 # Note: py2exe can't find dynamically loaded 22 # modules. We load the fitting module here 23 # to ensure a complete Windows executable build. 24 import perspectives.fitting as module 25 fitting_plug = module.Plugin() 26 self.gui.add_perspective(fitting_plug) 21 27 22 28 # Build the GUI -
sansview/setup_exe.py
rb30f001 r365a17f6 2 2 3 3 # 4 # The setup to create a single exe file. 4 # The setup to create a Windows executable. 5 # Inno Setup can then be used with the installer.iss file 6 # in the top source directory to create an installer. 5 7 # 8 # Setuptools clashes with py2exe 0.6.8 (and probably later too). 9 # For that reason, most of the code needs to have direct imports 10 # that are not going through pkg_resources. 11 # 12 # Attention should be paid to dynamic imports. Data files can 13 # be added to the distribution directory for that purpose. 14 # See for example the 'images' directory below. 6 15 7 16 import os, sys 8 9 17 from distutils.core import setup 10 11 18 from distutils.filelist import findall 12 13 19 import matplotlib 14 15 20 import py2exe 16 21 … … 25 30 type="win32" 26 31 /> 27 <description> PrView</description>32 <description>SansView</description> 28 33 <dependency> 29 34 <dependentAssembly> … … 46 51 self.__dict__.update(kw) 47 52 # for the versioninfo resources 48 self.version = "0. 1"53 self.version = "0.2" 49 54 self.company_name = "U Tennessee" 50 55 self.copyright = "copyright 2008" 51 self.name = " PrView"56 self.name = "SansView" 52 57 53 58 # … … 57 62 matplotlibdatadir = matplotlib.get_data_path() 58 63 matplotlibdata = findall(matplotlibdatadir) 59 matplotlibdata_files = []64 data_files = [] 60 65 61 66 for f in matplotlibdata: 62 dirname = os.path.join('m atplotlibdata', f[len(matplotlibdatadir)+1:])63 matplotlibdata_files.append((os.path.split(dirname)[0], [f]))67 dirname = os.path.join('mpl-data', f[len(matplotlibdatadir)+1:]) 68 data_files.append((os.path.split(dirname)[0], [f])) 64 69 70 # Copying the images directory to the distribution directory. 71 for f in findall('images'): 72 if os.path.split(f)[0].count('.svn')==0: 73 data_files.append((os.path.split(f)[0], [f])) 74 65 75 # 66 76 # packages 67 77 # 68 packages = [ 69 'matplotlib', 'pytz' 70 ] 71 78 packages = ['matplotlib', 'pytz'] 72 79 includes = [] 73 excludes = [ 'OpenGL']80 excludes = [] 74 81 75 82 dll_excludes = [ … … 79 86 ] 80 87 81 ## This is the client for PARK: run on wx82 88 target_wx_client = Target( 83 description = ' fit viewer',89 description = 'SanView', 84 90 script = 'sansview.py', 85 #other_resources = [(RT_MANIFEST, 1, manifest_template % dict(prog="AppJob"))],86 91 icon_resources = [(1, "images/ball.ico")], 87 92 other_resources = [(24,1,manifest)], 88 dest_base = " sansView"93 dest_base = "SansView" 89 94 ) 90 95 … … 106 111 }, 107 112 }, 108 data_files= matplotlibdata_files113 data_files=data_files 109 114 110 # Do something like this to add images to the distribution111 #data_files=[ ("prog",["kategorien.xml",])]112 115 ) 113 116
Note: See TracChangeset
for help on using the changeset viewer.