Skip to content

Commit a08422b

Browse files
committed
Fix build_scintilla command.
1 parent a155f0d commit a08422b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

setup.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
bdist_msi = None # Do not build any MSI scripts
9090

9191
from 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)

0 commit comments

Comments
 (0)