From 7bbb86a565be20095d8b96dff1ba0f77e8d4161b Mon Sep 17 00:00:00 2001 From: Rim Date: Sat, 4 Jan 2025 12:25:31 -0500 Subject: [PATCH] fix(setup.py): deprecated package error --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 4b44850..4eb4261 100644 --- a/setup.py +++ b/setup.py @@ -21,6 +21,9 @@ def setup_api(): wheel_path = os.path.join('deps', 'cod_api-2.0.2-py3-none-any.whl') subprocess.check_call([os.path.join('venv', 'Scripts', 'pip'), 'install', '--no-index', '--find-links=deps', wheel_path]) +def remove_deprecated_packages(): + subprocess.check_call([os.path.join('venv', 'Scripts', 'pip'), 'uninstall', 'enum34', '-y']) + if __name__ == "__main__": if not deps_exists(): print("Error: 'deps' directory does not exist!") @@ -31,4 +34,5 @@ if __name__ == "__main__": print("Setting up virtual environment...") setup_tools() setup_api() - print("Setup complete.") \ No newline at end of file + remove_deprecated_packages() + print("Setup completed successfully.")