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

Skip to content

Commit 9a07458

Browse files
authored
Merge pull request #23070 from anntzer/pathlibautotools
Pathlibify autotools invocation in build.
2 parents 8bfd2c4 + 6dad914 commit 9a07458

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

setupext.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -617,10 +617,9 @@ 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):
620+
configure_ac = Path(src_path, "builds/unix/configure.ac")
621+
if ((src_path / "autogen.sh").exists()
622+
and not configure_ac.exists()):
624623
print(f"{configure_ac} does not exist. "
625624
f"Using sh autogen.sh to generate.")
626625
subprocess.check_call(

0 commit comments

Comments
 (0)