File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -597,7 +597,21 @@ def do_custom_build(self, env):
597
597
"--with-png=no" , "--with-harfbuzz=no" , "--enable-static" ,
598
598
"--disable-shared" ],
599
599
env = env , cwd = src_path )
600
- subprocess .check_call (["make" ], env = env , cwd = src_path )
600
+ if 'GNUMAKE' in env :
601
+ make = env ['GNUMAKE' ]
602
+ elif 'MAKE' in env :
603
+ make = env ['MAKE' ]
604
+ else :
605
+ try :
606
+ output = subprocess .check_output (['make' , '-v' ],
607
+ stderr = subprocess .DEVNULL )
608
+ except subprocess .CalledProcessError :
609
+ output = ''
610
+ if b'GNU' not in output and b'makepp' not in output :
611
+ make = 'gmake'
612
+ else :
613
+ make = 'make'
614
+ subprocess .check_call ([make ], env = env , cwd = src_path )
601
615
else : # compilation on windows
602
616
shutil .rmtree (src_path / "objs" , ignore_errors = True )
603
617
msbuild_platform = (
You can’t perform that action at this time.
0 commit comments