diff options
author | James Laska <jlaska@ansible.com> | 2014-09-29 09:27:25 -0400 |
---|---|---|
committer | James Laska <jlaska@ansible.com> | 2014-09-29 10:22:15 -0400 |
commit | a0fecd61010b6958aae46f04ce8013d3698e4482 (patch) | |
tree | 6ff10c327cb753ae88855c2b6ce0dd5a3d1d8d99 | |
parent | 459722899d8dd618cd5bdd2ea11ed0c2810e1d5e (diff) | |
download | ansible-a0fecd61010b6958aae46f04ce8013d3698e4482.tar.gz |
Fix packaging to work with new module location
Changes include:
* Remove references to old module dir from .spec
* Use setuptools find_packages find all ansible packages
-rw-r--r-- | MANIFEST.in | 1 | ||||
-rw-r--r-- | packaging/rpm/ansible.spec | 2 | ||||
-rw-r--r-- | setup.py | 20 |
3 files changed, 3 insertions, 20 deletions
diff --git a/MANIFEST.in b/MANIFEST.in index 9db0472b36..5fdfe50f34 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -2,6 +2,7 @@ include README.md packaging/rpm/ansible.spec COPYING include examples/hosts include examples/ansible.cfg include lib/ansible/module_utils/powershell.ps1 +recursive-include lib/ansible/modules * recursive-include docs * include Makefile include VERSION diff --git a/packaging/rpm/ansible.spec b/packaging/rpm/ansible.spec index 79e1dd03c7..c6b85fd1ab 100644 --- a/packaging/rpm/ansible.spec +++ b/packaging/rpm/ansible.spec @@ -104,8 +104,6 @@ rm -rf %{buildroot} %{python_sitelib}/ansible* %{_bindir}/ansible* %dir %{_datadir}/ansible -%dir %{_datadir}/ansible/* -%{_datadir}/ansible/*/* %config(noreplace) %{_sysconfdir}/ansible %doc README.md PKG-INFO COPYING %doc %{_mandir}/man1/ansible* @@ -7,7 +7,7 @@ from glob import glob sys.path.insert(0, os.path.abspath('lib')) from ansible import __version__, __author__ try: - from setuptools import setup + from setuptools import setup, find_packages except ImportError: print "Ansible now needs setuptools in order to build. " \ "Install it using your package manager (usually python-setuptools) or via pip (pip install setuptools)." @@ -22,23 +22,7 @@ setup(name='ansible', license='GPLv3', install_requires=['paramiko', 'jinja2', "PyYAML", 'setuptools', 'pycrypto >= 2.6'], package_dir={ 'ansible': 'lib/ansible' }, - packages=[ - 'ansible', - 'ansible.cache', - 'ansible.utils', - 'ansible.utils.module_docs_fragments', - 'ansible.inventory', - 'ansible.inventory.vars_plugins', - 'ansible.playbook', - 'ansible.runner', - 'ansible.runner.action_plugins', - 'ansible.runner.lookup_plugins', - 'ansible.runner.connection_plugins', - 'ansible.runner.shell_plugins', - 'ansible.runner.filter_plugins', - 'ansible.callback_plugins', - 'ansible.module_utils' - ], + packages=find_packages('lib'), package_data={ '': ['module_utils/*.ps1'], }, |