Skip to content

Commit

Permalink
zeroconf dropped python 2 support, let's adjust
Browse files Browse the repository at this point in the history
Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>
  • Loading branch information
rtobar committed Feb 22, 2018
1 parent 7d80fb0 commit 89199f9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,6 @@ def write_version_info():
"scp",
# 1.10 contains an important race-condition fix on lazy-loaded modules
'six>=1.10',
# 0.19.0 requires netifaces < 0.10.5, exactly the opposite of what *we* need
"zeroconf >= 0.19.1",
# 0.6 brings python3 support plus other fixes
"zerorpc >= 0.6"
]
Expand All @@ -142,6 +140,13 @@ def write_version_info():
else:
install_requires.append("networkx")

# Python 2 support has been dropped in zeroconf 0.20.
# Also, 0.19.0 requires netifaces < 0.10.5, exactly the opposite of what *we* need
if sys.version_info[:2] == (2, 7):
install_requires.append("zeroconf == 0.19.1")
else:
install_requires.append("zeroconf >= 0.19.1")

# Packages that need to be installed from somewhere different than PyPI
dependency_links = [
# None at the moment
Expand Down

0 comments on commit 89199f9

Please sign in to comment.