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 6f6c038
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 in old.__slots__:
print(k, getattr(old, k))
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 in new.__slots__:
print(k, getattr(new, k))
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 6f6c038

Please sign in to comment.