Changes in / [b52f47f:b9d9e95] in sasview


Ignore:
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • setup.py

    rb44da61 r5972029  
    6868    is_64bits = sys.maxsize > 2**32 
    6969     
    70 enable_openmp = False if "--disable-open-mp" in sys.argv else True 
     70enable_openmp = True 
    7171 
    7272if sys.platform =='darwin': 
     
    104104        print "PROBLEM determining Darwin version" 
    105105 
    106  
     106class DisableOpenMPCommand(Command): 
     107    description = "The version of MinGW that comes with Anaconda does not come with OpenMP :( "\ 
     108                  "This commands means we can turn off compiling with OpenMP for this or any "\ 
     109                  "other reason." 
     110    user_options = [] 
     111 
     112    def initialize_options(self): 
     113        self.cwd = None 
     114 
     115    def finalize_options(self): 
     116        self.cwd = os.getcwd() 
     117        global enable_openmp 
     118        enable_openmp = False 
     119 
     120    def run(self): 
     121        pass 
    107122 
    108123class build_ext_subclass( build_ext ): 
     
    386401                    }, 
    387402    cmdclass = {'build_ext': build_ext_subclass, 
    388                 'docs': BuildSphinxCommand} 
     403                'docs': BuildSphinxCommand, 
     404                'disable_openmp': DisableOpenMPCommand} 
    389405    )    
Note: See TracChangeset for help on using the changeset viewer.