(cmd)
| 2603 | from .os_helper import temp_cwd |
| 2604 | |
| 2605 | def run_command(cmd): |
| 2606 | if verbose: |
| 2607 | import shlex |
| 2608 | print() |
| 2609 | print('Run:', ' '.join(map(shlex.quote, cmd))) |
| 2610 | subprocess.run(cmd, check=True) |
| 2611 | else: |
| 2612 | subprocess.run(cmd, |
| 2613 | stdout=subprocess.PIPE, |
| 2614 | stderr=subprocess.STDOUT, |
| 2615 | check=True) |
| 2616 | |
| 2617 | with temp_cwd() as temp_dir: |
| 2618 | # Create virtual environment to get setuptools |
searching dependent graphs…