Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8bfd2c4

Browse files
authored
Merge pull request #22755 from wqh17101/issue-22754
Maybe run autogen as part of freetype install
2 parents da84e38 + 1fe1cd9 commit 8bfd2c4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

setupext.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,14 @@ def do_custom_build(self, env):
617617
},
618618
**env,
619619
}
620+
configure_ac = os.path.join(
621+
src_path, "builds", "unix", "configure.ac")
622+
if os.path.exists(os.path.join(src_path, "autogen.sh")) \
623+
and not os.path.exists(configure_ac):
624+
print(f"{configure_ac} does not exist. "
625+
f"Using sh autogen.sh to generate.")
626+
subprocess.check_call(
627+
["sh", "./autogen.sh"], env=env, cwd=src_path)
620628
env["CFLAGS"] = env.get("CFLAGS", "") + " -fPIC"
621629
configure = [
622630
"./configure", "--with-zlib=no", "--with-bzip2=no",

0 commit comments

Comments
 (0)