diff --git a/packaging/debian/ansible.dirs b/packaging/debian/ansible.dirs index 91122c6cabd..06520214127 100644 --- a/packaging/debian/ansible.dirs +++ b/packaging/debian/ansible.dirs @@ -1,4 +1,4 @@ etc/ansible etc/ansible/roles -usr/lib/python2.7/site-packages +usr/lib/python2.7/dist-packages/ansible usr/share/ansible diff --git a/packaging/debian/rules b/packaging/debian/rules index d00ee736250..e676325cd98 100755 --- a/packaging/debian/rules +++ b/packaging/debian/rules @@ -2,14 +2,16 @@ # -- makefile -- DEB_PYTHON2_MODULE_PACKAGES=ansible ansible_test +#DEB_PYTHON_INSTALL_ARGS_ALL="--install-purelib=/usr/lib/python2.7/site-packages/" +DEB_PYTHON_DISTUTILS_INSTALLDIR_SKEL = /usr/lib/@PYTHONBINARY@/dist-packages/ include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/python-distutils.mk +# dist-packages for the modern distro, site-packages for the older (e.g: Ubuntu 14.04) ifeq ($(shell lsb_release -cs), precise) export ANSIBLE_CRYPTO_BACKEND = pycrypto endif ifeq ($(shell lsb_release -cs), trusty) export ANSIBLE_CRYPTO_BACKEND = pycrypto endif -