Changeset 0e4e554 in sasview for setup.py


Ignore:
Timestamp:
Feb 18, 2015 9:48:12 AM (10 years ago)
Author:
ajj
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:
dea7cb4
Parents:
6f82ba1
Message:

start switching to sasmodels including dispersion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • setup.py

    r25f223b r0e4e554  
    260260model_dir = os.path.join("src", "sas","models") 
    261261 
    262 if os.path.isdir(wrapper_dir): 
    263     for file in os.listdir(wrapper_dir):  
    264         file_path =  os.path.join(wrapper_dir, file) 
    265         os.remove(file_path) 
    266 else: 
    267     os.makedirs(wrapper_dir) 
    268 sys.path.append(os.path.join("src", "sas", "models", "c_extension", "python_wrapper")) 
    269 from wrapping import generate_wrappers 
    270 generate_wrappers(header_dir = includedir,  
    271                   output_dir = model_dir, 
    272                   c_wrapper_dir = wrapper_dir) 
     262#if os.path.isdir(wrapper_dir): 
     263#    for file in os.listdir(wrapper_dir): 
     264#        file_path =  os.path.join(wrapper_dir, file) 
     265#        os.remove(file_path) 
     266#else: 
     267#    os.makedirs(wrapper_dir) 
     268#sys.path.append(os.path.join("src", "sas", "models", "c_extension", "python_wrapper")) 
     269#from wrapping import generate_wrappers 
     270#generate_wrappers(header_dir = includedir, 
     271#                  output_dir = model_dir, 
     272#                  c_wrapper_dir = wrapper_dir) 
    273273 
    274274IGNORED_FILES = [".svn"] 
     
    299299model_sources = [] 
    300300append_file(file_list=model_sources, dir_path=igordir) 
    301 append_file(file_list=model_sources, dir_path=c_model_dir) 
    302 append_file(file_list=model_sources, dir_path=wrapper_dir) 
     301#append_file(file_list=model_sources, dir_path=c_model_dir) 
     302#append_file(file_list=model_sources, dir_path=wrapper_dir) 
    303303 
    304304smear_sources = [] 
     
    319319 
    320320c_models = [  
    321     Extension("sas.models.sas_extension.c_models", 
    322         sources=model_sources,                  
    323         include_dirs=[ 
    324             igordir, includedir, c_model_dir, numpy_incl_path, cephes_dir 
    325         ], 
    326     ), 
     321    #Extension("sas.models.sas_extension.c_models", 
     322    #    sources=model_sources, 
     323    #    include_dirs=[ 
     324    #        igordir, includedir, c_model_dir, numpy_incl_path, cephes_dir 
     325    #    ], 
     326    #), 
    327327 
    328328    # Smearer extension 
     
    356356ext_modules.extend(c_models) 
    357357 
     358packages.append("sas.models") 
    358359# SasView 
    359360 
Note: See TracChangeset for help on using the changeset viewer.