From f312b1f0b778bcc4b140f41022b2549047d48684 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Mon, 25 Feb 2019 10:06:14 -0500 Subject: [PATCH] Fix #3168: several versions of munkres Require different version constraints for Pythons <3.5, =3.5, and >3.5. --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 648e6d4d4..ae8f76ff8 100755 --- a/setup.py +++ b/setup.py @@ -88,10 +88,14 @@ setup( install_requires=[ 'six>=1.9', 'mutagen>=1.33', - 'munkres~=1.0.0', 'unidecode', 'musicbrainzngs>=0.4', 'pyyaml', + ] + [ + # Avoid a version of munkres incompatible with Python 3. + 'munkres~=1.0.0' if sys.version_info < (3, 5, 0) else + 'munkres!=1.1.0,!=1.1.1' if sys.version_info < (3, 6, 0) else + 'munkres>=1.0.0', ] + ( # Use the backport of Python 3.4's `enum` module. ['enum34>=1.0.4'] if sys.version_info < (3, 4, 0) else []