Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to fix the Python wheels for Windows #3979

Merged
merged 1 commit into from
Jan 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
# that here, and just package up its contents.
import os
import pathlib
import platform
import shutil
import subprocess
import sys
Expand Down Expand Up @@ -202,6 +203,9 @@ def run(self):
torch_mlir_opt_dst = os.path.join(
target_dir, "torch_mlir", "_mlir_libs", "torch-mlir-opt"
)
if platform.system() == "Windows":
torch_mlir_opt_src += ".exe"
torch_mlir_opt_dst += ".exe"
shutil.copy2(torch_mlir_opt_src, torch_mlir_opt_dst, follow_symlinks=False)


Expand Down
Loading