Skip to content

Commit

Permalink
Refactor: Simplify build process for Windows users 🎯
Browse files Browse the repository at this point in the history
- Removed conditional check for Windows system in `build_ext.py`
- Unified make and install procedure across all platforms
  • Loading branch information
horta committed Jan 7, 2025
1 parent 5346d67 commit 7c2ee59
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions build_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,7 @@ def build_and_install(
env["MACOSX_DEPLOYMENT_TARGET"] = target

check_call(["make"], cwd=root / dst_dir, env=env)
if uname() == "Windows":
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)
check_call(["make", "install"], cwd=root / dst_dir, env=env)


if __name__ == "__main__":
Expand Down

0 comments on commit 7c2ee59

Please sign in to comment.