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