Skip to content

Commit

Permalink
Make GHA print things for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr committed Aug 19, 2021
1 parent cb411c2 commit 5abbecb
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions src/pip/_internal/locations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,18 +192,21 @@ def get_scheme(
isolated: bool = False,
prefix: Optional[str] = None,
) -> Scheme:
new = _sysconfig.get_scheme(
old = _distutils.get_scheme(
dist_name,
user=user,
home=home,
root=root,
isolated=isolated,
prefix=prefix,
)
if _USE_SYSCONFIG:
return new

old = _distutils.get_scheme(
print("Old:")
for k, v in old.__dict__.items():
print(k, v)
print()

new = _sysconfig.get_scheme(
dist_name,
user=user,
home=home,
Expand All @@ -212,6 +215,14 @@ def get_scheme(
prefix=prefix,
)

print("New:")
for k, v in new.__dict__.items():
print(k, v)
print()

if _USE_SYSCONFIG:
return new

warning_contexts = []
for k in SCHEME_KEYS:
old_v = pathlib.Path(getattr(old, k))
Expand Down

0 comments on commit 5abbecb

Please sign in to comment.