Fix setuptools requirement if installing wheel

This commit is contained in:
Unrud 2022-07-02 20:37:51 +02:00
parent 515b196fda
commit a2ceaa41a4

View File

@ -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")