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:22:36 +0000 (16:22 -0500)
commita49a7e686059ce795ce678b42cc109b7a2b1d91e
treee5b53a50126de0c3c50fae555425543196989612
parent0b2253f5c9af73904d49da32085036c16b9d2d75
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.024291 seconds and 4 git commands to generate.