diff --git a/setup.py b/setup.py index f47a47522ad55120dcc671476a6f0f4e7507c190..bc284280200e67d21c5182063e019ba9eb568112 100644 --- a/setup.py +++ b/setup.py @@ -27,7 +27,7 @@ if 'develop' in subprocess.getoutput('git branch'): else: tag_list = subprocess.getoutput('git tag').split('\n') if 'rc' in tag_list[-1]: - if tag_list[-1].split('-')[0] == tag_list[-2]: + if tag_list[-1].split('rc')[0] in tag_list[-2]: slim_version = tag_list[-2] else: slim_version = tag_list[-1]