updating setup template
@@ -36,7 +36,10 @@ except ImportError:
pass
# Version extraction inspired from 'requests'
-with open(os.path.join(package_folder_path, 'version.py'), 'r') as fd:
+# Version extraction inspired from 'requests'
+with open(os.path.join(package_folder_path, 'version.py')
+ if os.path.exists(os.path.join(package_folder_path, 'version.py'))
+ else os.path.join(package_folder_path, '_version.py'), 'r') as fd:
version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)
