Changeset 3b0632f in sasview


Ignore:
Timestamp:
Nov 22, 2017 11:41:38 AM (7 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
1606b35
Parents:
0e17b31
Message:

use tinycc compiler from run.py on windows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • run.py

    r0e17b31 r3b0632f  
    115115    if True or not os.path.exists(build_path): 
    116116        import subprocess 
     117        build_cmd = [sys.executable, "setup.py", "build", "update"] 
     118        if os.name == 'nt': 
     119            build_cmd.append('--compiler=tinycc') 
     120        # need shell=True on windows to keep console box from popping up 
     121        shell = (os.name == 'nt') 
    117122        with cd(root): 
    118             subprocess.call((sys.executable, "setup.py", "build", "update"), shell=False) 
     123            subprocess.call(build_cmd, shell=shell) 
    119124 
    120125    # Put the source trees on the path 
Note: See TracChangeset for help on using the changeset viewer.