Changeset d66dbcc in sasview


Ignore:
Timestamp:
May 2, 2017 7:17:05 PM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
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
Message:

complete the merge

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sasview/setup_mac.py

    r914ba0a rd66dbcc  
    1111   12/05/2011: Needs macholib >= 1.4.3 and py2app >= 0.6.4 to create a 64-bit app 
    1212""" 
    13 from setuptools import setup 
     13from __future__ import print_function 
     14 
    1415import os 
    1516import string 
    1617import sys 
    17 #Extending recursion limit 
    18 sys.setrecursionlimit(10000) 
    19  
    20 import macholib_patch 
    2118 
    2219from distutils.util import get_platform 
    2320from distutils.filelist import findall 
    2421from distutils.sysconfig import get_python_lib 
     22 
     23from setuptools import setup 
     24 
     25import macholib_patch 
     26 
    2527root = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 
    26 platform = '%s-%s'%(get_platform(),sys.version[:3]) 
     28platform = '%s-%s'%(get_platform(), sys.version[:3]) 
    2729doc_path = os.path.join(root, 'build', 'lib.'+platform, 'doc') 
    2830env = os.path.join(root, 'sasview-install', 'lib', 'python2.7', 'site-packages') 
    2931#sys.path.insert(0, env) 
    3032 
    31 print "BUILDING PATH INSIDE", env 
     33#Extending recursion limit 
     34sys.setrecursionlimit(10000) 
     35 
     36print("BUILDING PATH INSIDE", env) 
    3237 
    3338from sas.sasview import local_config 
     
    6065custom_config_file = os.path.join(sasview_path, 'custom_config.py') 
    6166local_config_file = os.path.join(sasview_path, 'local_config.py') 
     67logging_ini = os.path.join(sasview_path, 'logging.ini') 
    6268DATA_FILES.append(('.', [custom_config_file])) 
    6369DATA_FILES.append(('config', [custom_config_file])) 
    6470DATA_FILES.append(('.', [local_config_file])) 
     71DATA_FILES.append(('.', [logging_ini])) 
    6572 
    6673# default_categories.json is beside the config files 
     
    111118 
    112119# See if the documentation has been built, and if so include it. 
    113 print doc_path 
     120print(doc_path) 
    114121if os.path.exists(doc_path): 
    115122    for dirpath, dirnames, filenames in os.walk(doc_path): 
  • setup.py

    r914ba0a rd66dbcc  
    66    TODO: Add checks to see that all the dependencies are on the system 
    77""" 
     8from __future__ import print_function 
    89 
    910import os 
     
    6667 
    6768if 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") 
    6970    shutil.rmtree(SASVIEW_BUILD) 
    7071 
  • src/sas/sasgui/guiframe/documentation_window.py

    r914ba0a rd66dbcc  
    1 """ 
    2 documentation module provides a simple means to add help throughout the 
    3 application. It checks for the existence of html2 package needed to support 
    4 fully html panel which supports css.  The class defined here takes a title for 
    5 the particular help panel, a pointer to the html documentation file of interest 
    6 within the documentation tree along with a 'command' string such as a page 
    7 anchor or a query string etc.  The path to the doc directory is retrieved 
    8 automatically by the class itself.  Thus with these three pieces of information 
    9 the class generates a panel with the appropriate title bar and help file 
    10 formatted according the style sheets called in the html file.  Finally, if an 
    11 old version of Python is running and the html2 package is not available the 
    12 class brings up the default browser and passes the file:/// string to it.  In 
    13 this case however the instruction portion is usually not passed for security 
    14 reasons. 
    15 """ 
    16 import os 
    17 import logging 
    18 import urllib 
    19  
    20 import webbrowser 
    21 import wx 
    22  
    23 from sas.sasgui import get_app_dir 
    24  
    25 SPHINX_DOC_ENV = "SASVIEW_DOC_PATH" 
    26 WX_SUPPORTS_HTML2 = True 
    27 try: 
    28     import wx.html2 as html 
    29 except: 
    30     WX_SUPPORTS_HTML2 = False 
    31  
    32  
    33 ======= 
    341""" 
    352documentation module provides a simple means to add help throughout the 
  • src/sas/sasview/welcome_panel.py

    r914ba0a rd66dbcc  
    7373        """ 
    7474        self.frame = frame 
    75         if frame != None: 
     75        if frame is not None: 
    7676            self.frame.Bind(wx.EVT_CLOSE, self.on_close_page) 
    7777 
Note: See TracChangeset for help on using the changeset viewer.