Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
horta committed Jan 7, 2025
1 parent 9564734 commit 1db925a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,13 @@ def build_and_install(
env["MACOSX_DEPLOYMENT_TARGET"] = target

check_call(["make"], cwd=root / dst_dir, env=env)
check_call(["make", "install"], cwd=root / dst_dir, env=env)
if uname() == "Windows":
env["CC"] = "gcc"
lib_dir = Path(prefix) / "lib"
os.makedirs(lib_dir)
shutil.copy(root / dst_dir / "libliknorm.a", lib_dir / "liknorm.lib")
else:
check_call(["make", "install"], cwd=root / dst_dir, env=env)


if __name__ == "__main__":
Expand Down

0 comments on commit 1db925a

Please sign in to comment.