Changeset d66dbcc in sasview
- Timestamp:
- May 2, 2017 7:17:05 PM (8 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, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 2f6d340
- Parents:
- 914ba0a
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sasview/setup_mac.py
r914ba0a rd66dbcc 11 11 12/05/2011: Needs macholib >= 1.4.3 and py2app >= 0.6.4 to create a 64-bit app 12 12 """ 13 from setuptools import setup 13 from __future__ import print_function 14 14 15 import os 15 16 import string 16 17 import sys 17 #Extending recursion limit18 sys.setrecursionlimit(10000)19 20 import macholib_patch21 18 22 19 from distutils.util import get_platform 23 20 from distutils.filelist import findall 24 21 from distutils.sysconfig import get_python_lib 22 23 from setuptools import setup 24 25 import macholib_patch 26 25 27 root = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 26 platform = '%s-%s'%(get_platform(), sys.version[:3])28 platform = '%s-%s'%(get_platform(), sys.version[:3]) 27 29 doc_path = os.path.join(root, 'build', 'lib.'+platform, 'doc') 28 30 env = os.path.join(root, 'sasview-install', 'lib', 'python2.7', 'site-packages') 29 31 #sys.path.insert(0, env) 30 32 31 print "BUILDING PATH INSIDE", env 33 #Extending recursion limit 34 sys.setrecursionlimit(10000) 35 36 print("BUILDING PATH INSIDE", env) 32 37 33 38 from sas.sasview import local_config … … 60 65 custom_config_file = os.path.join(sasview_path, 'custom_config.py') 61 66 local_config_file = os.path.join(sasview_path, 'local_config.py') 67 logging_ini = os.path.join(sasview_path, 'logging.ini') 62 68 DATA_FILES.append(('.', [custom_config_file])) 63 69 DATA_FILES.append(('config', [custom_config_file])) 64 70 DATA_FILES.append(('.', [local_config_file])) 71 DATA_FILES.append(('.', [logging_ini])) 65 72 66 73 # default_categories.json is beside the config files … … 111 118 112 119 # See if the documentation has been built, and if so include it. 113 print doc_path120 print(doc_path) 114 121 if os.path.exists(doc_path): 115 122 for dirpath, dirnames, filenames in os.walk(doc_path): -
setup.py
r914ba0a rd66dbcc 6 6 TODO: Add checks to see that all the dependencies are on the system 7 7 """ 8 from __future__ import print_function 8 9 9 10 import os … … 66 67 67 68 if os.path.exists(SASVIEW_BUILD): 68 print "Removing existing build directory", SASVIEW_BUILD, "for a clean build"69 print("Removing existing build directory", SASVIEW_BUILD, "for a clean build") 69 70 shutil.rmtree(SASVIEW_BUILD) 70 71 -
src/sas/sasgui/guiframe/documentation_window.py
r914ba0a rd66dbcc 1 """2 documentation module provides a simple means to add help throughout the3 application. It checks for the existence of html2 package needed to support4 fully html panel which supports css. The class defined here takes a title for5 the particular help panel, a pointer to the html documentation file of interest6 within the documentation tree along with a 'command' string such as a page7 anchor or a query string etc. The path to the doc directory is retrieved8 automatically by the class itself. Thus with these three pieces of information9 the class generates a panel with the appropriate title bar and help file10 formatted according the style sheets called in the html file. Finally, if an11 old version of Python is running and the html2 package is not available the12 class brings up the default browser and passes the file:/// string to it. In13 this case however the instruction portion is usually not passed for security14 reasons.15 """16 import os17 import logging18 import urllib19 20 import webbrowser21 import wx22 23 from sas.sasgui import get_app_dir24 25 SPHINX_DOC_ENV = "SASVIEW_DOC_PATH"26 WX_SUPPORTS_HTML2 = True27 try:28 import wx.html2 as html29 except:30 WX_SUPPORTS_HTML2 = False31 32 33 =======34 1 """ 35 2 documentation module provides a simple means to add help throughout the -
src/sas/sasview/welcome_panel.py
r914ba0a rd66dbcc 73 73 """ 74 74 self.frame = frame 75 if frame !=None:75 if frame is not None: 76 76 self.frame.Bind(wx.EVT_CLOSE, self.on_close_page) 77 77
Note: See TracChangeset
for help on using the changeset viewer.