Skip to content

Commit

Permalink
Fix install_requires list syntax (#3263) (#3268)
Browse files Browse the repository at this point in the history
(cherry picked from commit a6e735e)
  • Loading branch information
maddieford authored Nov 26, 2024
1 parent 0686d38 commit 3e2a70d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,11 @@ def run(self):
# will be removed from Python 3.
# * In version 3.13 of Python, the crypt module was removed and legacycrypt is
# required instead.
requires = [
"distro;python_version>='3.8'",
"legacycrypt;python_version>='3.13'",
]
requires = []
if sys.version_info[0] >= 3 and sys.version_info[1] >= 8:
requires.append('distro')
if sys.version_info[0] >= 3 and sys.version_info[1] >= 13:
requires.append('legacycrypt')

modules = [] # pylint: disable=invalid-name

Expand Down

0 comments on commit 3e2a70d

Please sign in to comment.