Skip to content

Commit

Permalink
Fix setup.py backwards compatibiity (llvm#586)
Browse files Browse the repository at this point in the history
* Fix setup.py backwards compatibiity

* Remove version check
  • Loading branch information
antoniojkim authored Feb 22, 2022
1 parent ea371a9 commit 7023ee5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,13 @@ def run(self):
python_package_dir = os.path.join(cmake_build_dir,
"tools", "torch-mlir", "python_packages",
"torch_mlir")

if os.path.exists(target_dir):
shutil.rmtree(target_dir, ignore_errors=False, onerror=None)

shutil.copytree(python_package_dir,
target_dir,
symlinks=False,
dirs_exist_ok=True)
symlinks=False)


class CMakeExtension(Extension):
Expand Down

0 comments on commit 7023ee5

Please sign in to comment.