Changeset 985ad94 in sasview
- Timestamp:
- Aug 4, 2017 7:17:06 AM (7 years ago)
- Branches:
- 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
- Children:
- ee18d33
- Parents:
- 7adc2a8
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
sasview/sasview.py
r2a8bd705 r985ad94 13 13 ################################################################################ 14 14 import sys 15 import os 15 16 16 17 from sas.sasview.logger_config import SetupLogger … … 18 19 logger = SetupLogger(__name__).config_production() 19 20 20 21 21 # Log the start of the session 22 22 logger.info(" --- SasView session started ---") 23 23 # Log the python version 24 24 logger.info("Python: %s" % sys.version) 25 26 25 27 26 reload(sys) … … 37 36 from multiprocessing import freeze_support 38 37 freeze_support() 38 os.environ['QT_API'] = "pyqt" 39 39 from sas.qtgui.MainWindow.MainWindow import run 40 40 run() -
sasview/sasview.spec
r2a8bd705 r985ad94 51 51 datas.append(('welcome_panel.py','.')) 52 52 53 # pyinstaller gets mightily confused by upper/lower case, 54 # so some modules need to be copied explicitly to avoid 55 # messages like 56 # WARNING: Attempted to add Python module twice with different upper/lowercases 53 57 datas.append((os.path.join(PYTHON_LOC,'Lib','SocketServer.py'),'.')) 58 datas.append((os.path.join(PYTHON_LOC,'Lib','Queue.py'),'.')) 54 59 55 60 # TODO -
setup.py
- Property mode changed from 100755 to 100644
rb854587 r985ad94 193 193 packages.append("sas.sasgui") 194 194 195 # qt module 196 package_dir["sas.qtgui"] = os.path.join("src", "sas", "qtgui") 197 packages.append("sas.qtgui") 198 195 199 # sas module 196 200 package_dir["sas.sascalc"] = os.path.join("src", "sas", "sascalc") … … 264 268 packages.extend(["sas.sascalc.file_converter", 265 269 "sas.sascalc.file_converter.core"]) 270 266 271 ext_modules.append(Extension("sas.sascalc.file_converter.core.bsl_loader", 267 272 sources=[os.path.join(mydir, "bsl_loader.c")], 268 273 include_dirs=[np.get_include()], 269 274 )) 270 271 275 # sas.sascalc.corfunc 272 276 package_dir["sas.sascalc.corfunc"] = os.path.join( 273 277 "src", "sas", "sascalc", "corfunc") 274 275 278 packages.extend(["sas.sascalc.corfunc"]) 276 279 … … 325 328 "src", "sas", "sasgui", "plottools") 326 329 packages.append("sas.sasgui.plottools") 330 331 # QTGUI 332 ## UI 333 package_dir["sas.qtgui.UI"] = os.path.join( 334 "src", "sas", "qtgui", "UI") 335 packages.append("sas.qtgui.UI") 336 337 ## Utilities 338 package_dir["sas.qtgui.Utilities"] = os.path.join( 339 "src", "sas", "qtgui", "Utilities") 340 packages.append("sas.qtgui.Utilities") 341 342 package_dir["sas.qtgui.Calculators"] = os.path.join( 343 "src", "sas", "qtgui", "Calculators") 344 package_dir["sas.qtgui.Calculators.UI"] = os.path.join( 345 "src", "sas", "qtgui", "Calculators", "UI") 346 packages.extend(["sas.qtgui.Calculators", "sas.qtgui.Calculators.UI"]) 347 348 package_dir["sas.qtgui.MainWindow"] = os.path.join( 349 "src", "sas", "qtgui", "MainWindow") 350 package_dir["sas.qtgui.MainWindow.UI"] = os.path.join( 351 "src", "sas", "qtgui", "MainWindow", "UI") 352 packages.extend(["sas.qtgui.MainWindow", "sas.qtgui.MainWindow.UI"]) 353 354 ## Perspectives 355 package_dir["sas.qtgui.Perspectives"] = os.path.join( 356 "src", "sas", "qtgui", "Perspectives") 357 packages.append("sas.qtgui.Perspectives") 358 359 package_dir["sas.qtgui.Perspectives.Invariant"] = os.path.join( 360 "src", "sas", "qtgui", "Perspectives", "Invariant") 361 package_dir["sas.qtgui.Perspectives.Invariant.UI"] = os.path.join( 362 "src", "sas", "qtgui", "Perspectives", "Invariant", "UI") 363 packages.extend(["sas.qtgui.Perspectives.Invariant", "sas.qtgui.Perspectives.Invariant.UI"]) 364 365 package_dir["sas.qtgui.Perspectives.Fitting"] = os.path.join( 366 "src", "sas", "qtgui", "Perspectives", "Fitting") 367 package_dir["sas.qtgui.Perspectives.Fitting.UI"] = os.path.join( 368 "src", "sas", "qtgui", "Perspectives", "Fitting", "UI") 369 packages.extend(["sas.qtgui.Perspectives.Fitting", "sas.qtgui.Perspectives.Fitting.UI"]) 370 371 ## Plotting 372 package_dir["sas.qtgui.Plotting"] = os.path.join( 373 "src", "sas", "qtgui", "Plotting") 374 package_dir["sas.qtgui.Plotting.UI"] = os.path.join( 375 "src", "sas", "qtgui", "Plotting", "UI") 376 package_dir["sas.qtgui.Plotting.Slicers"] = os.path.join( 377 "src", "sas", "qtgui", "Plotting", "Slicers") 378 packages.extend(["sas.qtgui.Plotting", "sas.qtgui.Plotting.UI", "sas.qtgui.Plotting.Slicers"]) 379 380 327 381 328 382 # # Last of the sas.models … … 421 475 entry_points={ 422 476 'console_scripts': [ 423 "sasview = sas. sasview.sasview:run",477 "sasview = sas.run", 424 478 ] 425 479 }, -
src/sas/qtgui/Utilities/GuiUtils.py
r6ff2eb3 r985ad94 96 96 97 97 ## TODO: CHANGE FOR SHIPPED PATH IN RELEASE 98 HELP_DIRECTORY_LOCATION = "docs/sphinx-docs/build/html" 98 if os.path.splitext(sys.argv[0])[1].lower() != ".py": 99 HELP_DIRECTORY_LOCATION = "doc" 100 else: 101 HELP_DIRECTORY_LOCATION = "docs/sphinx-docs/build/html" 99 102 IMAGES_DIRECTORY_LOCATION = HELP_DIRECTORY_LOCATION + "/_images" 100 103 -
src/sas/qtgui/Utilities/IPythonWidget.py
- Property mode changed from 100755 to 100644
r83eb5208 r985ad94 1 def new_load_qt(api_options): 2 from PyQt4 import QtCore, QtGui, QtSvg 3 return QtCore, QtGui, QtSvg, 'pyqt' 4 5 def qtconsole_new_load_qt(api_options): 6 from PyQt4 import QtCore, QtGui, QtSvg 7 8 # Alias PyQt-specific functions for PySide compatibility. 9 QtCore.Signal = QtCore.pyqtSignal 10 QtCore.Slot = QtCore.pyqtSlot 11 return QtCore, QtGui, QtSvg, 'pyqt' 12 13 # Do some monkey patching to satisfy pyinstaller complaining 14 # about pyside/pyqt confusion 15 from IPython.external import qt_loaders 16 qt_loaders.load_qt = new_load_qt 17 18 from qtconsole import qt_loaders as qtconsole_qt_loaders 19 qtconsole_qt_loaders.load_qt = qtconsole_new_load_qt 20 21 1 22 from qtconsole.rich_jupyter_widget import RichJupyterWidget 2 23 from qtconsole.inprocess import QtInProcessKernelManager
Note: See TracChangeset
for help on using the changeset viewer.