Commit 48639a6d authored by Rafael Monnerat's avatar Rafael Monnerat

Include backward compatibility with older setuptools versions.

parent cb9a37fb
......@@ -1668,7 +1668,15 @@ def _fix_file_links(links):
yield link
def _final_version(parsed_version):
return not parsed_version.is_prerelease
try:
return not parsed_version.is_prerelease
except AttributeError:
# Older setuptools
_final_parts = '*final-', '*final'
for part in parsed_version:
if (part[:1] == '*') and (part not in _final_parts):
return False
return True
def chmod(path):
if os.path.islink(path) or not os.path.exists(path):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment