4 from subprocess
import Popen
, STDOUT
, PIPE
6 if 'MAKEFLAGS' in os
.environ
:
7 del os
.environ
['MAKEFLAGS']
8 proc
= Popen(['nmake', 'dll_', 'mt'], stdout
=PIPE
, stderr
=STDOUT
,
12 line
= proc
.stdout
.readline()
16 # explicitly ignore this fatal-sounding non-fatal error
17 if line
== "NMAKE : fatal error U1052: file 'makefile.sub' not found" or line
== "Stop.":