From a2ceaa41a4fc7860dc845b85c7221c3ebfa74c42 Mon Sep 17 00:00:00 2001 From: Unrud Date: Sat, 2 Jul 2022 20:37:51 +0200 Subject: [PATCH] Fix setuptools requirement if installing wheel --- setup.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 1fd204e..c9c4bba 100644 --- a/setup.py +++ b/setup.py @@ -50,9 +50,8 @@ WEB_FILES = ["web/internal_data/css/icon.png", "web/internal_data/index.html"] install_requires = ["defusedxml", "passlib", "vobject>=0.9.6", - "python-dateutil>=2.7.3"] -if sys.version_info < (3, 9): - install_requires.append("setuptools") + "python-dateutil>=2.7.3", + "setuptools; python_version<'3.9'"] setup_requires = [] if {"pytest", "test", "ptr"}.intersection(sys.argv): setup_requires.append("pytest-runner")