Changeset 0e307de in sasview for setup.py


Ignore:
Timestamp:
Dec 21, 2011 9:35:40 AM (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:
8b8a03f
Parents:
490b281
Message:

give option for disabling openmp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • setup.py

    ra134fc6 r0e307de  
    3030ext_modules = [] 
    3131 
    32 # Options to enable OpenMP 
    33 copt =  {'msvc': ['/openmp'], 
    34          'mingw32' : ['-fopenmp'], 
    35          'unix' : ['-fopenmp']} 
    36 lopt =  {'msvc': ['/MANIFEST'], 
    37          'mingw32' : ['-fopenmp'], 
    38          'unix' : ['-lgomp']} 
     32if sys.argv[1] == "-nomp": 
     33    # Disnable OpenMP 
     34    copt = {} 
     35    lopt = {} 
     36else: 
     37    # Options to enable OpenMP 
     38    copt =  {'msvc': ['/openmp'], 
     39             'mingw32' : ['-fopenmp'], 
     40             'unix' : ['-fopenmp']} 
     41    lopt =  {'msvc': ['/MANIFEST'], 
     42             'mingw32' : ['-fopenmp'], 
     43             'unix' : ['-lgomp']} 
    3944 
    4045class build_ext_subclass( build_ext ): 
     
    243248#            'pil','periodictable>=1.3.0', 'scipy>=0.7.2'] 
    244249required = ['lxml','periodictable>=1.3.0'] 
    245  
     250""" 
    246251if os.name=='nt': 
    247252    #required.extend(['comtypes', 'pisa', 'html5lib', 'reportlab']) 
     
    251256else: 
    252257    required.extend(['pil']) 
    253     
     258"""    
    254259 # Set up SansView     
    255260setup( 
Note: See TracChangeset for help on using the changeset viewer.