From 04af18206b562bff7f360439138f57f7e59bfa17 Mon Sep 17 00:00:00 2001 From: Radmir Date: Mon, 20 May 2024 19:03:33 +0300 Subject: [PATCH] requirements: made easygui optional with [gui] extra --- requirements.txt | 1 - setup.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index 6ba1b652..c4a4fddd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,5 @@ pyparsing>=2.1.0,<4 olefile>=0.46 -easygui colorclass msoffcrypto-tool; platform_python_implementation!="PyPy" or (python_version>="3" and platform_system!="Windows" and platform_system!="Darwin") pcodedmp>=1.2.5 \ No newline at end of file diff --git a/setup.py b/setup.py index 2cefe687..7a03c5a8 100644 --- a/setup.py +++ b/setup.py @@ -322,7 +322,6 @@ def main(): install_requires=[ "pyparsing>=2.1.0,<4", # changed from 2.2.0 to 2.1.0 for issue #481 "olefile>=0.46", - "easygui", 'colorclass', # msoffcrypto-tool is not installable on PyPy+Windows (see issue #473), # so we only require it if the platform is not Windows or not PyPy: @@ -342,7 +341,8 @@ def main(): # References for the syntax: # https://github.com/decalage2/oletools/issues/690 # https://stackoverflow.com/questions/30239152/specify-extras-require-with-pip-install-e - ] + ], + 'gui': ['easygui'], } )