Exemplo n.º 1
0
import sas.sasgui.guiframe as guiframe
data_files += guiframe.data_files()

# precompile sas models into the sasview build path; doesn't matter too much
# where it is so long as it is a place that will get cleaned up afterwards.
import sasmodels.core
dll_path = os.path.join(build_path, 'compiled_models')
compiled_dlls = sasmodels.core.precompile_dlls(dll_path, dtype='double')

# include the compiled models as data; coordinate the target path for the
# data with installer_generator.py
data_files.append(('compiled_models', compiled_dlls))

import sasmodels
data_files += sasmodels.data_files()

for f in matplotlibdata:
    dirname = os.path.join('mpl-data', f[len(matplotlibdatadir) + 1:])
    data_files.append((os.path.split(dirname)[0], [f]))

# Copy the settings file for the sas.dataloader file extension associations
import sas.sascalc.dataloader.readers
f = os.path.join(sas.sascalc.dataloader.readers.get_data_path(),
                 'defaults.json')
if os.path.isfile(f):
    data_files.append(('.', [f]))
f = 'custom_config.py'
if os.path.isfile(f):
    data_files.append(('.', [f]))
    data_files.append(('config', [f]))
Exemplo n.º 2
0
from sas.sasgui import guiframe
DATA_FILES += guiframe.data_files()

# precompile sas models into the sasview build path; doesn't matter too much
# where it is so long as it is a place that will get cleaned up afterwards.
import sasmodels.core
dll_path = os.path.join(build_path, 'compiled_models')
compiled_dlls = sasmodels.core.precompile_dlls(dll_path, dtype='double')

# include the compiled models as data; coordinate the target path for the
# data with installer_generator.py
DATA_FILES.append(('compiled_models', compiled_dlls))

import sasmodels
DATA_FILES += sasmodels.data_files()

for f in matplotlibdata:
    dirname = os.path.join('mpl-data', f[len(matplotlibdatadir)+1:])
    DATA_FILES.append((os.path.split(dirname)[0], [f]))

# Copy the settings file for the sas.dataloader file extension associations
from sas.sascalc.dataloader import readers
reader_config = os.path.join(readers.get_data_path(), 'defaults.json')
if os.path.isfile(reader_config):
    DATA_FILES.append(('.', [reader_config]))

# Copy the config files
sas_path = os.path.join('..', 'src', 'sas')
DATA_FILES.append(('.', [os.path.join(sas_path, 'logging.ini')]))
sasview_path = os.path.join(sas_path,'sasview')
Exemplo n.º 3
0
import sas.sasgui.guiframe as guiframe
data_files += guiframe.data_files()

# precompile sas models into the sasview build path; doesn't matter too much
# where it is so long as it is a place that will get cleaned up afterwards.
import sasmodels.core
dll_path = os.path.join(build_path, 'compiled_models')
compiled_dlls = sasmodels.core.precompile_dlls(dll_path, dtype='double')

# include the compiled models as data; coordinate the target path for the
# data with installer_generator.py
data_files.append(('compiled_models', compiled_dlls))

import sasmodels
data_files += sasmodels.data_files()

for f in matplotlibdata:
    dirname = os.path.join('mpl-data', f[len(matplotlibdatadir)+1:])
    data_files.append((os.path.split(dirname)[0], [f]))

# Copy the settings file for the sas.dataloader file extension associations
import sas.sascalc.dataloader.readers
f = os.path.join(sas.sascalc.dataloader.readers.get_data_path())
if os.path.isfile(f):
    data_files.append(('.', [f]))
f = 'custom_config.py'
if os.path.isfile(f):
    data_files.append(('.', [f]))
    data_files.append(('config', [f]))
f = 'local_config.py'
Exemplo n.º 4
0
ICON = local_config.SetupIconFile_mac
EXTENSIONS_LIST = []
DATA_FILES = []
RESOURCES_FILES = []

#Periodictable data file
DATA_FILES = periodictable.data_files()
#invariant and calculator help doc
import sas.sasgui.perspectives.fitting as fitting
DATA_FILES += fitting.data_files()
import sas.sasgui.perspectives.calculator as calculator
DATA_FILES += calculator.data_files()
import sas.sasgui.perspectives.invariant as invariant
DATA_FILES += invariant.data_files()
import sasmodels as models
DATA_FILES += models.data_files()
import sas.sasgui.guiframe as guiframe
DATA_FILES += guiframe.data_files()

#CANSAxml reader data files
RESOURCES_FILES.append(os.path.join(sas.sascalc.dataloader.readers.get_data_path()))

DATA_FILES.append('logging.ini')

# Locate libxml2 library
lib_locs = ['/usr/local/lib', '/usr/lib']
libxml_path = None
for item in lib_locs:
    libxml_path_test = '%s/libxml2.2.dylib' % item
    if os.path.isfile(libxml_path_test):
        libxml_path = libxml_path_test
Exemplo n.º 5
0
ICON = local_config.SetupIconFile_mac
EXTENSIONS_LIST = []
DATA_FILES = []
RESOURCES_FILES = []

#Periodictable data file
DATA_FILES = periodictable.data_files()
#invariant and calculator help doc
import sas.sasgui.perspectives.fitting as fitting
DATA_FILES += fitting.data_files()
import sas.sasgui.perspectives.calculator as calculator
DATA_FILES += calculator.data_files()
import sas.sasgui.perspectives.invariant as invariant
DATA_FILES += invariant.data_files()
import sasmodels as models
DATA_FILES += models.data_files()
import sas.sasgui.guiframe as guiframe
DATA_FILES += guiframe.data_files()

#CANSAxml reader data files
RESOURCES_FILES.append(os.path.join(sas.sascalc.dataloader.readers.get_data_path(),'defaults.json'))

DATA_FILES.append('logging.ini')

# Locate libxml2 library
lib_locs = ['/usr/local/lib', '/usr/lib']
libxml_path = None
for item in lib_locs:
    libxml_path_test = '%s/libxml2.2.dylib' % item
    if os.path.isfile(libxml_path_test):
        libxml_path = libxml_path_test