Skip to content

Commit

Permalink
setup.py: use use wheel location instead of wheel filename
Browse files Browse the repository at this point in the history
Signed-off-by: Daniele Trifirò <[email protected]>
  • Loading branch information
dtrifiro committed Dec 3, 2024
1 parent 0acb1b2 commit b17f15b
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 @@ -505,7 +505,8 @@ def repackage_wheel(package_data: Dict[str, List[str]],

import zipfile

if os.path.exists(wheel_filename := os.path.basename(wheel_location)):
if os.path.isfile(wheel_location):
wheel_filename = os.path.realpath(wheel_location)
print(f"Using existing wheel={wheel_filename}")
else:
try:
Expand Down

0 comments on commit b17f15b

Please sign in to comment.