Changeset 15e74ad in sasmodels


Ignore:
Timestamp:
May 31, 2016 8:43:34 AM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
7f3a89c
Parents:
6708a6a
Message:

code cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/kerneldll.py

    rc7118f4 r15e74ad  
    8585    elif tinycc: 
    8686        # TinyCC compiler. 
    87         CC = [tinycc.find_tcc_path()] + "-shared -rdynamic -Wall".split() 
     87        CC = [tinycc.TCC] + "-shared -rdynamic -Wall".split() 
    8888        def compile_command(source, output): 
    89             return CC + ["%s"%source, "-o", "%s"%output] 
     89            return CC + [source, "-o", output] 
    9090    else: 
    9191        # MinGW compiler. 
     
    9494            CC.append("-fopenmp") 
    9595        def compile_command(source, output): 
    96             return CC + ["%s"%source, "-o", "%s"%output, "-lm"] 
     96            return CC + [source, "-o", output, "-lm"] 
    9797else: 
    9898    ARCH = "" 
     
    105105        CC.append("-fopenmp") 
    106106    def compile_command(source, output): 
    107         return CC + ["%s"%source, "-o", "%s"%output, "-lm"] 
     107        return CC + [source, "-o", output, "-lm"] 
    108108 
    109109# Windows-specific solution 
     
    123123    command_str = " ".join('"%s"'%p if ' ' in p else p for p in command) 
    124124    logging.info(command_str) 
    125     shell = (os.name == 'nt') 
    126125    try: 
     126        # need shell=True on windows to keep console box from popping up 
     127        shell = (os.name == 'nt') 
    127128        subprocess.check_output(command, shell=shell, stderr=subprocess.STDOUT) 
    128129    except subprocess.CalledProcessError as exc: 
Note: See TracChangeset for help on using the changeset viewer.