Changeset 9b71c30 in sasmodels for sasmodels/kerneldll.py


Ignore:
Timestamp:
May 25, 2016 2:31:17 PM (8 years ago)
Author:
Brian Ben Maranville <brian.maranville@…>
Children:
f3cb36b, 399f02e
Parents:
4d8e0bb
Message:

problem with tempfile creation/writing and compile, fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/kerneldll.py

    r7e16db7 r9b71c30  
    198198        source = generate.convert_type(source, dtype) 
    199199        fd, filename = tempfile.mkstemp(suffix=".c", prefix=tempfile_prefix) 
    200         with os.fdopen(fd, "w") as file: 
     200        with open(filename, "w") as file: 
    201201            file.write(source) 
     202        os.close(fd) 
    202203        compile(source=filename, output=dll) 
    203204        # comment the following to keep the generated c file 
Note: See TracChangeset for help on using the changeset viewer.