Changeset bc8b8a1 in sasview for run.py


Ignore:
Timestamp:
Nov 22, 2017 10:23:46 AM (6 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:
bc4f5bb
Parents:
237f35e
git-author:
Paul Kienzle <pkienzle@…> (11/22/17 09:41:38)
git-committer:
Paul Kienzle <pkienzle@…> (11/22/17 10:23:46)
Message:

use tinycc compiler from run.py on windows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • run.py

    r237f35e rbc8b8a1  
    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.