Changeset a62945e in sasview


Ignore:
Timestamp:
Mar 20, 2016 8:56:56 AM (8 years ago)
Author:
krzywon
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
Message:

Code Cleanup - setup.py changes were not properly committed with last checkin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • setup.py

    re5ea2d0 ra62945e  
    3636# except when there is no such file 
    3737# 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'] 
    4444sas_dir = os.path.join(os.path.expanduser("~"),'.sasview') 
    4545if os.path.isdir(sas_dir): 
     
    5353    if os.path.isfile(f_path): 
    5454        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) 
    6161                     
    6262# 'sys.maxsize' and 64bit: Not supported for python2.5 
     
    226226 
    227227package_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") 
     229packages.extend(["sas.sasgui.perspectives.fitting",#"sas.sasgui.perspectives.fitting.plugin_models" 
     230                 ]) 
     231package_data['sas.sasgui.perspectives.fitting'] = ['media/*'] 
    232232 
    233233packages.extend(["sas.sasgui.perspectives", "sas.sasgui.perspectives.calculator"])     
     
    249249smear_dir  = os.path.join("src", "sas", "models", "c_extension", "c_smearer") 
    250250gen_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") 
    252252model_dir = os.path.join("src", "sas","models") 
    253253 
     
    291291model_sources = [] 
    292292append_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) 
     293append_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) 
    298298         
    299299package_dir["sas.models"] = model_dir 
     
    303303packages.extend(["sas.models","sas.models.sas_extension"]) 
    304304     
    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")] 
    307307geni_sources = [os.path.join(gen_dir, "sld2i_module.cpp")] 
    308308if os.name=='nt': 
    309     smearer_sources.append(os.path.join(igordir, "winFuncs.c")) 
     309#     smearer_sources.append(os.path.join(igordir, "winFuncs.c")) 
    310310    geni_sources.append(os.path.join(igordir, "winFuncs.c")) 
    311311 
    312312c_models = [  
    313     #Extension("sas.models.sas_extension.c_models", 
     313    # Extension("sas.models.sas_extension.c_models", 
    314314    #    sources=model_sources, 
    315315    #    include_dirs=[ 
    316316    #        igordir, includedir, c_model_dir, numpy_incl_path, cephes_dir 
    317317    #    ], 
    318     #), 
     318    # ), 
    319319 
    320320    # 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    # 
    335335    Extension("sas.models.sas_extension.sld2i", 
    336336        sources = [ 
Note: See TracChangeset for help on using the changeset viewer.