Skip to content

Commit 774ac2f

Browse files
authored
Update setupext.py
run autogen if you can
1 parent d09ac16 commit 774ac2f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

setupext.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,12 @@ def do_custom_build(self, env):
628628
**env,
629629
}
630630
if os.path.exists(os.path.join(src_path, "autogen.sh")):
631-
subprocess.check_call(["sh", "./autogen.sh"], env=env, cwd=src_path)
631+
try:
632+
subprocess.check_call(["sh", "./autogen.sh"], env=env, cwd=src_path)
633+
except Exception as err:
634+
print(err)
635+
print("Warning: Can not run autogen, the build pipeline may fail")
636+
print("Continue try to build freetype.")
632637
env["CFLAGS"] = env.get("CFLAGS", "") + " -fPIC"
633638
configure = [
634639
"./configure", "--with-zlib=no", "--with-bzip2=no",

0 commit comments

Comments
 (0)