summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorGravatar Jon Bernard <jbernard@tuxion.com> 2011-07-03 09:26:11 -0400
committerGravatar Jon Bernard <jbernard@tuxion.com> 2011-07-03 09:26:11 -0400
commitfc4a8aa87908585c9913d1ddd027845be48552e5 (patch)
tree386a4b2a78d5347fbfaf07ddad4bd1aa343392fc /setup.py
parent66dd01b9f1d1c6fea4bf4db544045a8aa410b28d (diff)
downloaddotfiles-fc4a8aa87908585c9913d1ddd027845be48552e5.tar.gz
dotfiles-fc4a8aa87908585c9913d1ddd027845be48552e5.tar.bz2
dotfiles-fc4a8aa87908585c9913d1ddd027845be48552e5.zip
Add option to print version number
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/setup.py b/setup.py
index a14a6c6..f41e668 100644
--- a/setup.py
+++ b/setup.py
@@ -1,8 +1,16 @@
-from distutils.core import setup
-import dotfiles
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+try:
+ from setuptools import setup
+except ImportError:
+ from distutils.core import setup
+
+from dotfiles.core import __version__
+
setup(name='dotfiles',
- version=dotfiles.__version__,
+ version=__version__,
description='Easily manage your dotfiles',
long_description=open('README.rst').read(),
author='Jon Bernard',