Changeset a62945e in sasview
- Timestamp:
- Mar 20, 2016 6:56:56 AM (9 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:
- ad25dc2
- Parents:
- 5a2695a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
setup.py
re5ea2d0 ra62945e 36 36 # except when there is no such file 37 37 # Todo : make this list generic 38 plugin_model_list = ['polynominal5.py', 'sph_bessel_jn.py', 39 'sum_Ap1_1_Ap2.py', 'sum_p1_p2.py', 40 'testmodel_2.py', 'testmodel.py',41 'polynominal5.pyc', 'sph_bessel_jn.pyc', 42 'sum_Ap1_1_Ap2.pyc', 'sum_p1_p2.pyc', 43 'testmodel_2.pyc', 'testmodel.pyc', 'plugins.log']38 # plugin_model_list = ['polynominal5.py', 'sph_bessel_jn.py', 39 # 'sum_Ap1_1_Ap2.py', 'sum_p1_p2.py', 40 # 'testmodel_2.py', 'testmodel.py', 41 # 'polynominal5.pyc', 'sph_bessel_jn.pyc', 42 # 'sum_Ap1_1_Ap2.pyc', 'sum_p1_p2.pyc', 43 # 'testmodel_2.pyc', 'testmodel.pyc', 'plugins.log'] 44 44 sas_dir = os.path.join(os.path.expanduser("~"),'.sasview') 45 45 if os.path.isdir(sas_dir): … … 53 53 if os.path.isfile(f_path): 54 54 os.remove(f_path) 55 f_path = os.path.join(sas_dir, 'plugin_models')56 if os.path.isdir(f_path):57 for f in os.listdir(f_path):58 if f in plugin_model_list:59 file_path = os.path.join(f_path, f)60 os.remove(file_path)55 # f_path = os.path.join(sas_dir, 'plugin_models') 56 # if os.path.isdir(f_path): 57 # for f in os.listdir(f_path): 58 # if f in plugin_model_list: 59 # file_path = os.path.join(f_path, f) 60 # os.remove(file_path) 61 61 62 62 # 'sys.maxsize' and 64bit: Not supported for python2.5 … … 226 226 227 227 package_dir["sas.sasgui.perspectives.fitting"] = os.path.join("src", "sas", "sasgui", "perspectives", "fitting") 228 package_dir["sas.sasgui.perspectives.fitting.plugin_models"] = os.path.join("src", "sas", "sasgui", "perspectives", "fitting", "plugin_models")229 packages.extend(["sas.sasgui.perspectives.fitting", 230 "sas.sasgui.perspectives.fitting.plugin_models"])231 package_data['sas.sasgui.perspectives.fitting'] = ['media/*' ,'plugin_models/*']228 # package_dir["sas.sasgui.perspectives.fitting.plugin_models"] = os.path.join("src", "sas", "sasgui", "perspectives", "fitting", "plugin_models") 229 packages.extend(["sas.sasgui.perspectives.fitting",#"sas.sasgui.perspectives.fitting.plugin_models" 230 ]) 231 package_data['sas.sasgui.perspectives.fitting'] = ['media/*'] 232 232 233 233 packages.extend(["sas.sasgui.perspectives", "sas.sasgui.perspectives.calculator"]) … … 249 249 smear_dir = os.path.join("src", "sas", "models", "c_extension", "c_smearer") 250 250 gen_dir = os.path.join("src", "sas", "models", "c_extension", "c_gen") 251 wrapper_dir = os.path.join("src", "sas", "models", "c_extension", "python_wrapper", "generated")251 # wrapper_dir = os.path.join("src", "sas", "models", "c_extension", "python_wrapper", "generated") 252 252 model_dir = os.path.join("src", "sas","models") 253 253 … … 291 291 model_sources = [] 292 292 append_file(file_list=model_sources, dir_path=igordir) 293 #append_file(file_list=model_sources, dir_path=c_model_dir)294 # append_file(file_list=model_sources, dir_path=wrapper_dir)295 296 smear_sources = []297 append_file(file_list=smear_sources, dir_path=smear_dir)293 append_file(file_list=model_sources, dir_path=c_model_dir) 294 # append_file(file_list=model_sources, dir_path=wrapper_dir) 295 296 # smear_sources = [] 297 # append_file(file_list=smear_sources, dir_path=smear_dir) 298 298 299 299 package_dir["sas.models"] = model_dir … … 303 303 packages.extend(["sas.models","sas.models.sas_extension"]) 304 304 305 smearer_sources = [os.path.join(smear_dir, "smearer.cpp"),306 os.path.join(smear_dir, "smearer_module.cpp")]305 # smearer_sources = [os.path.join(smear_dir, "smearer.cpp"), 306 # os.path.join(smear_dir, "smearer_module.cpp")] 307 307 geni_sources = [os.path.join(gen_dir, "sld2i_module.cpp")] 308 308 if os.name=='nt': 309 smearer_sources.append(os.path.join(igordir, "winFuncs.c"))309 # smearer_sources.append(os.path.join(igordir, "winFuncs.c")) 310 310 geni_sources.append(os.path.join(igordir, "winFuncs.c")) 311 311 312 312 c_models = [ 313 # Extension("sas.models.sas_extension.c_models",313 # Extension("sas.models.sas_extension.c_models", 314 314 # sources=model_sources, 315 315 # include_dirs=[ 316 316 # igordir, includedir, c_model_dir, numpy_incl_path, cephes_dir 317 317 # ], 318 # ),318 # ), 319 319 320 320 # Smearer extension 321 Extension("sas.models.sas_extension.smearer",322 sources = smearer_sources,323 include_dirs=[igordir, smear_dir, numpy_incl_path],324 ),325 326 Extension("sas.models.sas_extension.smearer2d_helper",327 sources = [328 os.path.join(smear_dir, "smearer2d_helper_module.cpp"),329 os.path.join(smear_dir, "smearer2d_helper.cpp"),330 os.path.join(igordir, "winFuncs.c"),331 ],332 include_dirs=[smear_dir, numpy_incl_path],333 ),334 321 # Extension("sas.models.sas_extension.smearer", 322 # sources = smearer_sources, 323 # include_dirs=[igordir, smear_dir, numpy_incl_path], 324 # ), 325 # 326 # Extension("sas.models.sas_extension.smearer2d_helper", 327 # sources = [ 328 # os.path.join(smear_dir, "smearer2d_helper_module.cpp"), 329 # os.path.join(smear_dir, "smearer2d_helper.cpp"), 330 # os.path.join(igordir, "winFuncs.c"), 331 # ], 332 # include_dirs=[smear_dir, numpy_incl_path], 333 # ), 334 # 335 335 Extension("sas.models.sas_extension.sld2i", 336 336 sources = [
Note: See TracChangeset
for help on using the changeset viewer.