File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 8989bdist_msi = None # Do not build any MSI scripts
9090
9191from distutils import log
92+ from distutils ._msvccompiler import _find_exe
9293
9394# some modules need a static CRT to avoid problems caused by them having a
9495# manifest.
@@ -438,10 +439,11 @@ class build_scintilla(Command):
438439 user_options = []
439440
440441 def initialize_options (self ):
441- pass
442+ self .debug = False
443+ self .build_temp = None
442444
443445 def finalize_options (self ):
444- pass
446+ self . set_undefined_options ( 'build' , ( 'build_temp' , 'build_temp' ))
445447
446448 def _build_scintilla (self ):
447449 path = 'pythonwin\\ Scintilla'
@@ -476,8 +478,9 @@ def _build_scintilla(self):
476478
477479 cwd = os .getcwd ()
478480 os .chdir (path )
481+ nmake = _find_exe ("nmake.exe" )
479482 try :
480- cmd = [" nmake.exe" , "/nologo" , "/f" , makefile ] + makeargs
483+ cmd = [nmake , "/nologo" , "/f" , makefile ] + makeargs
481484 self .spawn (cmd )
482485 finally :
483486 os .chdir (cwd )
You can’t perform that action at this time.
0 commit comments