Changeset 78f74bd7 in sasview for setup.py


Ignore:
Timestamp:
Feb 3, 2012 6:58:53 PM (8 years ago)
Author:
Jae Cho <jhjcho@…>
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:
e5c83e01
Parents:
60eea02
Message:

try to clean the cmodel folder before compiling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • setup.py

    r0a8f658 r78f74bd7  
    217217smear_dir  = os.path.join("sansmodels", "src", "c_smearer") 
    218218wrapper_dir  = os.path.join("sansmodels", "src", "python_wrapper", "generated") 
    219 if not os.path.isdir(wrapper_dir): 
     219if os.path.isdir(wrapper_dir): 
     220    for file in os.listdir(wrapper_dir):  
     221        file_path =  os.path.join(wrapper_dir, file) 
     222        os.remove(file_path) 
     223else: 
    220224    os.makedirs(wrapper_dir) 
    221  
    222225sys.path.append(os.path.join("sansmodels", "src", "python_wrapper")) 
    223226from wrapping import generate_wrappers 
     
    308311    #required.extend(['comtypes', 'pisa', 'html5lib', 'reportlab']) 
    309312    #required.extend(['pisa', 'html5lib']) 
    310     if sys.version_info < (2, 7): 
     313    if sys.version_info < (2, 5): 
    311314        required.append('comtypes') 
    312315else: 
Note: See TracChangeset for help on using the changeset viewer.