Skip to content

Commit 39b8832

Browse files
committed
Be make agnostic for macos
1 parent 2c80f39 commit 39b8832

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ def build_zlib_ng():
105105
run_args = dict(cwd=build_dir, env=build_env)
106106
if sys.platform == "darwin": # Cmake does not work properly
107107
subprocess.run([os.path.join(build_dir, "configure")], **run_args)
108-
subprocess.run(["gmake", "libz-ng.a"], **run_args)
108+
make_program = "gmake" if shutil.which("gmake") else "make"
109+
subprocess.run([make_program, "libz-ng.a"], **run_args)
109110
elif sys.platform == "linux":
110111
subprocess.run([os.path.join(build_dir, "configure")], **run_args)
111112
subprocess.run(["make", "libz-ng.a", "-j", str(cpu_count)], **run_args)

0 commit comments

Comments
 (0)