Changeset c4a7660 in sasview
- Timestamp:
- Mar 31, 2015 4:49:11 PM (10 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:
- 415fb82
- Parents:
- c971c98 (diff), 4e080980 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sasview/sasview.py
rf76bf17 r4e080980 12 12 import sys 13 13 import logging 14 from shutil import copy 14 import traceback 15 15 16 logging.basicConfig(level=logging.INFO, 16 17 format='%(asctime)s %(levelname)s %(message)s', … … 109 110 self.gui.add_perspective(fitting_plug) 110 111 except Exception as inst: 111 logging.error("Fitting problems: " + str(inst)) 112 logging.error("%s: could not find Fitting plug-in module"% APP_NAME) 113 logging.error(sys.exc_value) 112 logging.error("%s: could not find Fitting plug-in module"% APP_NAME) 113 logging.error(traceback.format_exc()) 114 114 115 115 # P(r) perspective … … 120 120 except: 121 121 logging.error("%s: could not find P(r) plug-in module"% APP_NAME) 122 logging.error( sys.exc_value)123 122 logging.error(traceback.format_exc()) 123 124 124 #Invariant perspective 125 125 try: … … 131 131 logging.error("%s: could not find Invariant plug-in module"% \ 132 132 APP_NAME) 133 logging.error( sys.exc_value)134 133 logging.error(traceback.format_exc()) 134 135 135 #Calculator perspective 136 136 try: … … 141 141 logging.error("%s: could not find Calculator plug-in module"% \ 142 142 APP_NAME) 143 logging.error( sys.exc_value)144 143 logging.error(traceback.format_exc()) 144 145 145 146 146 # Add welcome page -
src/sas/guiframe/gui_statusbar.py
r1805b87 r4342107f 22 22 CONSOLE_WIDTH = 500 23 23 CONSOLE_HEIGHT = 300 24 FRAME_ICON = wx.Icon(GUIFRAME_ICON.FRAME_ICON_PATH, wx.BITMAP_TYPE_ICON)24 FRAME_ICON = wx.Icon(GUIFRAME_ICON.FRAME_ICON_PATH, wx.BITMAP_TYPE_ICO) 25 25 26 26 if sys.platform.count("win32") > 0: -
sasview/setup_exe.py
r2eeca83 rc971c98 14 14 # See for example the 'images' directory below. 15 15 16 import os , sys17 import platform16 import os 17 import sys 18 18 19 19 # put the build directory at the front of the path … … 22 22 from distutils.util import get_platform 23 23 root = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 24 platform = '%s-%s'%(get_platform(), sys.version[:3])25 build_path = os.path.join(root, 'build', 'lib.'+platform)24 platform = '%s-%s'%(get_platform(), sys.version[:3]) 25 build_path = os.path.join(root, 'build', 'lib.'+platform) 26 26 sys.path.insert(0, build_path) 27 27 … … 62 62 except ImportError: 63 63 import modulefinder 64 import win32com , sys64 import win32com 65 65 for p in win32com.__path__[1:]: 66 66 modulefinder.AddPackagePath(win32_folder, p) … … 211 211 manifest = manifest_for_python25 212 212 py26MSdll = None 213 213 214 214 215 class Target: 215 216 def __init__(self, **kw): … … 260 261 # Copy the settings file for the sas.dataloader file extension associations 261 262 import sas.dataloader.readers 262 f = os.path.join(sas.dataloader.readers.get_data_path(), 'defaults.json')263 f = os.path.join(sas.dataloader.readers.get_data_path(), 'defaults.json') 263 264 if os.path.isfile(f): 264 265 data_files.append(('.', [f])) … … 276 277 277 278 if os.path.isfile("BUILD_NUMBER"): 278 data_files.append(('.', ["BUILD_NUMBER"]))279 data_files.append(('.', ["BUILD_NUMBER"])) 279 280 280 281 # Copying the images directory to the distribution directory. … … 303 304 raise Exception("You must first build the documentation before creating an installer.") 304 305 305 if py26MSdll !=None:306 if py26MSdll is not None: 306 307 # install the MSVC 9 runtime dll's into the application folder 307 308 data_files.append(("Microsoft.VC90.CRT", py26MSdll)) 308 if py26MSdll_x86 !=None:309 if py26MSdll_x86 is not None: 309 310 # install the MSVC 9 runtime dll's into the application folder 310 311 data_files.append(("Microsoft.VC90.CRT", py26MSdll_x86)) … … 332 333 'reportlab.platypus', 333 334 ]) 335 packages.append('periodictable.core') # not found automatically 334 336 #packages.append('IPython') 335 includes = ['site', 'lxml._elementpath', 'lxml.etree']337 includes = ['site', 'lxml._elementpath', 'lxml.etree'] 336 338 337 339 # Exclude packages that are not needed but are often found on build systems … … 357 359 script = 'sasview.py', 358 360 icon_resources = [(1, os.path.join(images_dir, "ball.ico"))], 359 other_resources = [(24, 1,manifest)],361 other_resources = [(24, 1, manifest)], 360 362 dest_base = "SasView" 361 363 ) … … 376 378 'py2exe': { 377 379 'dll_excludes': dll_excludes, 378 'packages' 379 'includes': includes,380 'excludes': excludes,380 'packages': packages, 381 'includes': includes, 382 'excludes': excludes, 381 383 "compressed": 1, 382 384 "optimize": 0, 383 "bundle_files": bundle_option,385 "bundle_files": bundle_option, 384 386 }, 385 387 }, 386 388 data_files=data_files, 387 388 389 ) 389 390
Note: See TracChangeset
for help on using the changeset viewer.