From 1101a2236147248694ab845bf8c3d103e5774a7a Mon Sep 17 00:00:00 2001 From: smiley Date: Thu, 17 Aug 2023 15:23:43 +0100 Subject: [PATCH] remove check_dependencies --- pwndbg/exception.py | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/pwndbg/exception.py b/pwndbg/exception.py index c7cbf71b8..f0034afb6 100644 --- a/pwndbg/exception.py +++ b/pwndbg/exception.py @@ -51,25 +51,6 @@ def inform_unmet_dependencies(errors) -> None: print(msg) -@pwndbg.lib.cache.cache_until("forever") -def check_dependencies(): - """ - Checks if there are any unmet dependencies in requirements.txt - """ - project_path = os.path.dirname(os.path.abspath(__file__)) - requirements_path = os.path.join(project_path, os.pardir, "requirements.txt") - with open(requirements_path, "r") as f: - errors = [] - for line in f.readlines(): - try: - pkg_resources.require(line) - except (pkg_resources.VersionConflict, pkg_resources.DistributionNotFound) as e: - errors.append(e) - - if errors: - inform_unmet_dependencies(errors) - - @pwndbg.lib.cache.cache_until("forever") def inform_report_issue(exception_msg) -> None: """ @@ -113,9 +94,6 @@ def handle(name="Error"): e.__traceback__ = T raise e - # Check dependencies against requirements.txt and warn user - check_dependencies() - # Display the error if debug or verbose: exception_msg = traceback.format_exc()