Changeset b30ed8f in sasview
- Timestamp:
- Dec 22, 2011 1:42:07 PM (13 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:
- 494f151
- Parents:
- 5c7cb6f
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/models.py
r8ab3302 rb30ed8f 23 23 """ 24 24 """ 25 out = open("plugins.log", 'a') 25 dir = os.path.join(os.path.expanduser("~"),'.sansview', PLUGIN_DIR) 26 out = open(os.path.join(dir, "plugins.log"), 'a') 26 27 out.write("%10g: %s\n" % (time.clock(), message)) 27 28 out.close() -
setup.py
r8ab3302 rb30ed8f 7 7 8 8 import sys 9 9 10 import os 10 11 import platform … … 41 42 plugin_model_list = ['polynominal5.py', 'sph_bessel_jn.py', 42 43 'sum_Ap1_1_Ap2.py', 'sum_p1_p2.py', 43 'testmodel_2.py', 'testmodel.py'] 44 'testmodel_2.py', 'testmodel.py', 45 'polynominal5.pyc', 'sph_bessel_jn.pyc', 46 'sum_Ap1_1_Ap2.pyc', 'sum_p1_p2.pyc', 47 'testmodel_2.pyc', 'testmodel.pyc'] 44 48 sans_dir = os.path.join(os.path.expanduser("~"),'.sansview') 45 49 if os.path.isdir(sans_dir): … … 56 60 file_path = os.path.join(f_path, file) 57 61 os.remove(file_path) 58 62 63 enable_openmp = True 59 64 if sys.argv[-1] == "-nomp": 60 65 # Disable OpenMP 61 copt = {} 62 lopt = {} 63 else: 64 # Options to enable OpenMP 65 copt = {'msvc': ['/openmp'], 66 'mingw32' : ['-fopenmp'], 67 'unix' : ['-fopenmp']} 68 lopt = {'msvc': ['/MANIFEST'], 69 'mingw32' : ['-fopenmp'], 70 'unix' : ['-lgomp']} 66 enable_openmp = False 67 if sys.platform =='darwin' and not is_64bits: 68 # Disable OpenMP 69 enable_openmp = False 70 71 # Options to enable OpenMP 72 copt = {'msvc': ['/openmp'], 73 'mingw32' : ['-fopenmp'], 74 'unix' : ['-fopenmp']} 75 lopt = {'msvc': ['/MANIFEST'], 76 'mingw32' : ['-fopenmp'], 77 'unix' : ['-lgomp']} 71 78 72 79 class build_ext_subclass( build_ext ): … … 82 89 print "Compiling with %s (64bit=%s)" % (c, str(is_64bits)) 83 90 84 if not (sys.platform =='darwin' and not is_64bits):91 if enable_openmp: 85 92 if copt.has_key(c): 86 93 for e in self.extensions: 87 94 e.extra_compile_args = copt[ c ] 88 95 if lopt.has_key(c): 96 89 97 for e in self.extensions: 90 98 e.extra_link_args = lopt[ c ]
Note: See TracChangeset
for help on using the changeset viewer.