Changeset aa343d6 in sasmodels for sasmodels/kerneldll.py


Ignore:
Timestamp:
May 26, 2016 2:18:30 PM (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:
001d9f5
Parents:
4d8e0bb
Message:

use cc as compiler and shell=False on linux/mac

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/kerneldll.py

    r7e16db7 raa343d6  
    9898    # On mac users will need the X code command line tools installed 
    9999    #COMPILE = "gcc-mp-4.7 -shared -fPIC -std=c99 -fopenmp -O2 -Wall %s -o %s -lm -lgomp" 
    100     CC = "gcc -shared -fPIC -std=c99 -O2 -Wall".split() 
     100    CC = "cc -shared -fPIC -std=c99 -O2 -Wall".split() 
    101101    # add openmp support if not running on a mac 
    102102    if sys.platform != "darwin": 
     
    121121    command_str = " ".join('"%s"'%p if ' ' in p else p for p in command) 
    122122    logging.info(command_str) 
     123    shell = (os.name == 'nt') 
    123124    try: 
    124         subprocess.check_output(command, shell=True, stderr=subprocess.STDOUT) 
     125        subprocess.check_output(command, shell=shell, stderr=subprocess.STDOUT) 
    125126    except subprocess.CalledProcessError as exc: 
    126127        raise RuntimeError("compile failed.\n%s\n%s"%(command_str, exc.output)) 
Note: See TracChangeset for help on using the changeset viewer.