@@ -189,6 +189,7 @@ def build_extension(self, ext):
189
189
# check the interop file exists, and create it if it doesn't
190
190
interop_file = _get_interop_filename ()
191
191
if not os .path .exists (interop_file ):
192
+ self .debug_print ("Creating {0}" .format (interop_file ))
192
193
geninterop = os .path .join ("tools" , "geninterop" , "geninterop.py" )
193
194
subprocess .check_call ([sys .executable , geninterop , interop_file ])
194
195
@@ -218,7 +219,7 @@ def build_extension(self, ext):
218
219
if manifest :
219
220
cmd .append ('/p:PythonManifest="{0}"' .format (manifest ))
220
221
221
- self .announce ("Building: {0}" .format (" " .join (cmd )))
222
+ self .debug_print ("Building: {0}" .format (" " .join (cmd )))
222
223
use_shell = True if DEVTOOLS == "Mono" else False
223
224
subprocess .check_call (" " .join (cmd + ["/t:Clean" ]), shell = use_shell )
224
225
subprocess .check_call (" " .join (cmd + ["/t:Build" ]), shell = use_shell )
@@ -233,7 +234,7 @@ def _get_manifest(self, build_dir):
233
234
manifest = os .path .abspath (os .path .join (build_dir , "app.manifest" ))
234
235
cmd = [mt , '-inputresource:"{0}"' .format (sys .executable ),
235
236
'-out:"{0}"' .format (manifest )]
236
- self .announce ("Extracting manifest from {}" .format (sys .executable ))
237
+ self .debug_print ("Extracting manifest from {}" .format (sys .executable ))
237
238
subprocess .check_call (" " .join (cmd ), shell = False )
238
239
return manifest
239
240
@@ -267,11 +268,11 @@ def _install_packages(self):
267
268
use_shell = True
268
269
269
270
cmd = "{0} update -self" .format (nuget )
270
- self .announce ("Updating NuGet: {0}" .format (cmd ))
271
+ self .debug_print ("Updating NuGet: {0}" .format (cmd ))
271
272
subprocess .check_call (cmd , shell = use_shell )
272
273
273
274
cmd = "{0} restore pythonnet.sln -o packages" .format (nuget )
274
- self .announce ("Installing packages: {0}" .format (cmd ))
275
+ self .debug_print ("Installing packages: {0}" .format (cmd ))
275
276
subprocess .check_call (cmd , shell = use_shell )
276
277
277
278
def _find_msbuild_tool (self , tool = "msbuild.exe" , use_windows_sdk = False ):
@@ -297,7 +298,7 @@ def _find_msbuild_tool(self, tool="msbuild.exe", use_windows_sdk=False):
297
298
continue
298
299
path = os .path .join (val , rkey .suffix , tool )
299
300
if os .path .exists (path ):
300
- self .announce ("Using {0} from {1}" .format (
301
+ self .debug_print ("Using {0} from {1}" .format (
301
302
tool , rkey .sdk_name ))
302
303
return path
303
304
except WindowsError :
@@ -313,7 +314,7 @@ def _find_msbuild_tool(self, tool="msbuild.exe", use_windows_sdk=False):
313
314
suffix = "Bin\\ x64" if ARCH == "x64" else "Bin"
314
315
path = os .path .join (localappdata , vs_python , suffix , tool )
315
316
if os .path .exists (path ):
316
- self .announce ("Using {0} from {1}" .format (tool , sdk_name ))
317
+ self .debug_print ("Using {0} from {1}" .format (tool , sdk_name ))
317
318
return path
318
319
319
320
raise RuntimeError ("{0} could not be found" .format (tool ))
0 commit comments