File tree 1 file changed +9
-6
lines changed
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -617,12 +617,15 @@ def do_custom_build(self, env):
617
617
},
618
618
}
619
619
env ["CFLAGS" ] = env .get ("CFLAGS" , "" ) + " -fPIC"
620
- subprocess .check_call (
621
- ["./configure" , "--with-zlib=no" , "--with-bzip2=no" ,
622
- "--with-png=no" , "--with-harfbuzz=no" , "--enable-static" ,
623
- "--disable-shared" ,
624
- "--host=" + sysconfig .get_config_var ('BUILD_GNU_TYPE' )],
625
- env = env , cwd = src_path )
620
+ configure = [
621
+ "./configure" , "--with-zlib=no" , "--with-bzip2=no" ,
622
+ "--with-png=no" , "--with-harfbuzz=no" , "--enable-static" ,
623
+ "--disable-shared"
624
+ ]
625
+ host = sysconfig .get_config_var ('BUILD_GNU_TYPE' )
626
+ if host is not None : # May be unset on PyPy.
627
+ configure .append (f"--host={ host } " )
628
+ subprocess .check_call (configure , env = env , cwd = src_path )
626
629
if 'GNUMAKE' in env :
627
630
make = env ['GNUMAKE' ]
628
631
elif 'MAKE' in env :
You can’t perform that action at this time.
0 commit comments