Skip to content

Commit

Permalink
backwards compat for python-support on old Debian/Ubuntu releases
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Mar 18, 2016
1 parent de2fe08 commit 0cdbc8b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion packaging/debian/README.md
Expand Up @@ -4,11 +4,16 @@ Ansible Debian Package
To create an Ansible DEB package:

sudo apt-get install python-paramiko python-yaml python-jinja2 python-httplib2 python-setuptools python-six sshpass
sudo apt-get install cdbs debhelper dpkg-dev git-core reprepro dh-python fakeroot asciidoc devscripts docbook-xml xsltproc libxml2-utils
sudo apt-get install cdbs debhelper dpkg-dev git-core reprepro fakeroot asciidoc devscripts docbook-xml xsltproc libxml2-utils
sudo apt-get install dh-python
git clone git://github.com/ansible/ansible.git
cd ansible
make deb

On older releases that do not have `dh-python` (like Ubuntu 12.04), install `python-support` instead:

sudo apt-get install python-support

The debian package file will be placed in the `../` directory. This can then be added to an APT repository or installed with `dpkg -i <package-file>`.

Note that `dpkg -i` does not resolve dependencies.
Expand Down
2 changes: 1 addition & 1 deletion packaging/debian/control
Expand Up @@ -3,7 +3,7 @@ Section: admin
Priority: optional
Standards-Version: 3.9.3
Maintainer: Ansible, Inc. <support@ansible.com>
Build-Depends: cdbs, debhelper (>= 5.0.0), asciidoc, python, dh-python, python-setuptools
Build-Depends: cdbs, debhelper (>= 5.0.0), asciidoc, python, dh-python | python-support, python-setuptools
Homepage: http://ansible.github.com/

Package: ansible
Expand Down
3 changes: 3 additions & 0 deletions packaging/debian/rules
Expand Up @@ -2,6 +2,9 @@
# -- makefile --

DEB_PYTHON2_MODULE_PACKAGES=ansible
ifneq ($(shell dpkg-query -f '$${Version}' -W python-support 2>/dev/null),)
DEB_PYTHON_SYSTEM=pysupport
endif

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk

0 comments on commit 0cdbc8b

Please sign in to comment.