Fix: (un)install targets of Python agent
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 2 Mar 2017 16:56:05 +0000 (11:56 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 2 Mar 2017 21:23:41 +0000 (16:23 -0500)
commita9c189981362f65d4df79efa658df7a205a602ae
tree1914f872a2dfcad69dbc29aedfcd81051bc0bf4f
parent21314122fd4c9b11a02d6251e29720b3370ec9c9
Fix: (un)install targets of Python agent

This Makefile was using Distutils' setup.py to install the Python agent
but was using the Autoconf's $pkgpythondir variable for the uninstall
process. The two folders can be different on some distributions which
made the uninstall attempting to delete a non-existant folder and
effectively not uninstalling.

We now run a phony installation of the bindings in a temporary directory
and use the tree structure of the install folder to infere the location
of the files on the system to delete them.

Also, we print a warning if the install directory is not included in the
PYTHONPATH variable.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
python-lttngust/Makefile.am
python-lttngust/setup.py.in
This page took 0.02492 seconds and 4 git commands to generate.