summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorTim Bielawa <tbielawa@redhat.com>2012-03-10 14:02:25 -0500
committerTim Bielawa <tbielawa@redhat.com>2012-03-10 14:22:11 -0500
commit3f245498c4ce279c8765f4fbed30bbe00a6e84cd (patch)
tree53f4f948babc6e8e20abe2f26e33c68f0e33f5e4 /setup.py
parent8808c814ea4b23d11d9451d5517191192101ef17 (diff)
downloadansible-3f245498c4ce279c8765f4fbed30bbe00a6e84cd.tar.gz
Fixup RPM building: Makefile, Spec File, .gitignore
Fixup distutils: setup.py Clean old cruft: section 5 man pages
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py33
1 files changed, 15 insertions, 18 deletions
diff --git a/setup.py b/setup.py
index c70aa34796..c15e8a7831 100644
--- a/setup.py
+++ b/setup.py
@@ -1,34 +1,31 @@
#!/usr/bin/env python
+import glob
+import os
+import sys
+
+sys.path.insert(0, os.path.abspath('lib'))
+from ansible import __version__, __author__
from distutils.core import setup
setup(name='ansible',
- version='1.0',
+ version=__version__,
description='Minimal SSH command and control',
- author='Michael DeHaan',
+ author=__author__,
author_email='michael.dehaan@gmail.com',
- url='http://github.com/mpdehaan/ansible/',
+ url='http://ansible.github.com/',
license='GPLv3',
package_dir = { 'ansible' : 'lib/ansible' },
packages=[
'ansible',
],
data_files=[
- ('/usr/share/ansible', [
- 'library/ping',
- 'library/command',
- 'library/facter',
- 'library/ohai',
- 'library/copy',
- 'library/setup',
- 'library/service',
- 'library/template',
- 'library/git',
- ]),
- ('/usr/share/man/man1', [
- 'docs/man/man1/ansible.1',
- 'docs/man/man1/ansible-playbook.1'
- ]),
+ ('/usr/share/ansible',
+ glob.glob('library/*')
+ ),
+ ('/usr/share/man/man1',
+ glob.glob('docs/man/man1/*.1')
+ ),
],
scripts=[
'bin/ansible',