summaryrefslogtreecommitdiff
path: root/setuptools/command/easy_install.py
diff options
context:
space:
mode:
authorAndrey Bienkowski <hexagon-recursion@posteo.net>2022-03-06 07:58:24 +0300
committerAndrey Bienkowski <hexagon-recursion@posteo.net>2022-03-06 07:58:24 +0300
commit45340d00688ba29fc3492c52c88c47d14ce918e6 (patch)
treefa035b23948820a78dc736581c8aa12296bf576e /setuptools/command/easy_install.py
parent2e7ba454d431945237125b951c5482a452b67e4e (diff)
downloadpython-setuptools-git-45340d00688ba29fc3492c52c88c47d14ce918e6.tar.gz
Revert "XXX: Debugging"
This reverts commit 6376ad10547315c15dfec719ff3f384e7a94dfc2.
Diffstat (limited to 'setuptools/command/easy_install.py')
-rw-r--r--setuptools/command/easy_install.py37
1 files changed, 0 insertions, 37 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index 318eac31..107850a9 100644
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -221,42 +221,6 @@ class easy_install(Command):
raise SystemExit()
def finalize_options(self): # noqa: C901 # is too complex (25) # FIXME
- print(sysconfig._INSTALL_SCHEMES)
- print(f'{os.name}_user')
-
- def global_trace(frame, event, arg):
- pass
-
- import sys
-
- sys.settrace(global_trace)
-
- XXX = [set()]
-
- def trace(frame, event, arg):
- config_vars = getattr(self, 'config_vars', {})
- o = {
- ('USER_BASE', site.USER_BASE),
- ('USER_SITE', site.USER_SITE),
- ('install_dir', self.install_dir),
- ('install_userbase', self.install_userbase),
- ('install_usersite', self.install_usersite),
- ('install_purelib', self.install_purelib),
- ('install_scripts', self.install_scripts),
- ('userbase', config_vars.get('userbase')),
- ('usersite', config_vars.get('usersite')),
- }
- if XXX[0] - o:
- print('-', XXX[0] - o)
- if o - XXX[0]:
- print('+', o - XXX[0])
- XXX[0] = o
- lines, start = inspect.getsourcelines(frame)
- print(frame.f_lineno, lines[frame.f_lineno - start])
-
- import inspect
- inspect.currentframe().f_trace = trace
-
self.version and self._render_version()
py_version = sys.version.split()[0]
@@ -495,7 +459,6 @@ class easy_install(Command):
instdir = normalize_path(self.install_dir)
pth_file = os.path.join(instdir, 'easy-install.pth')
- print('XXX', instdir, os.path.exists(instdir))
if not os.path.exists(instdir):
try:
os.makedirs(instdir)