Skip to content

Commit

Permalink
fix version checking (#2920)
Browse files Browse the repository at this point in the history
Co-authored-by: Norberto Arrieta <narrieta@users.noreply.github.com>
  • Loading branch information
arsdragonfly and narrieta authored Sep 18, 2023
1 parent 0a159d6 commit 2bbb57a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def run(self):
# implementation may be broken prior to Python 3.7 wher the functionality
# will be removed from Python 3
requires = [] # pylint: disable=invalid-name
if float(sys.version[:3]) >= 3.7:
if sys.version_info[0] >= 3 and sys.version_info[1] >= 7:
requires = ['distro'] # pylint: disable=invalid-name

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

0 comments on commit 2bbb57a

Please sign in to comment.