Skip to content

Commit

Permalink
shutil move instead of rename in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lematt1991 committed Jun 10, 2024
1 parent 320fb59 commit 4947efe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
CUDAExtension,
CUDA_HOME,
)
import shutil


with open("README.md", "r", encoding="utf-8") as fh:
Expand Down Expand Up @@ -281,7 +282,7 @@ def run(self):

wheel_path = os.path.join(self.dist_dir, archive_basename + ".whl")
print("Raw wheel path", wheel_path)
os.rename(wheel_filename, wheel_path)
shutil.move(wheel_filename, wheel_path)
except (urllib.error.HTTPError, urllib.error.URLError):
print("Precompiled wheel not found. Building from source...")
# If the wheel could not be downloaded, build from source
Expand Down

0 comments on commit 4947efe

Please sign in to comment.