Skip to content

Commit

Permalink
Merge pull request #2 from yair-schiff/fix/setup
Browse files Browse the repository at this point in the history
Minor edit to `setup.py`
  • Loading branch information
tridao authored Dec 4, 2023
2 parents d3794b5 + fe5f0c8 commit 1eeb1c8
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 @@ -7,6 +7,7 @@
from pathlib import Path
from packaging.version import parse, Version
import platform
import shutil

from setuptools import setup, find_packages
import subprocess
Expand Down Expand Up @@ -223,7 +224,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:
print("Precompiled wheel not found. Building from source...")
# If the wheel could not be downloaded, build from source
Expand Down

0 comments on commit 1eeb1c8

Please sign in to comment.