Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
n-dusan committed Oct 30, 2023
1 parent 58a103c commit cb08fd8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions upgrade/scripts/upgrade_python_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,9 @@ def install_wheel(
str(parse_wheel_filename(wheel_name)[1]) for wheel_name in wheel_names
]
wheel_mapping = {k: v for (k, v) in zip(parsed_wheel_versions, wheel_paths)}
print(wheel_mapping)
versions = filter_versions(SpecifierSet(version_cmd), parsed_wheel_versions)
print(f"filtered versions: {versions}")
wheel = wheel_mapping.get(versions[-1])
except IndexError:
print(f"Wheel {package_name} not found")
Expand Down Expand Up @@ -247,7 +249,9 @@ def install_wheel(
resp += pip("check")
except:
# try to install with constraints
print("before constraints")
constraints_file_path = get_constraints_file_path(package_name)
print("after constraints")
try:
resp += install_with_constraints(
to_install,
Expand All @@ -257,6 +261,7 @@ def install_wheel(
wheels_path,
*args,
)
print("after constraints 2")
except:
if slack_webhook_url is not None:
try:
Expand Down

0 comments on commit cb08fd8

Please sign in to comment.