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:38 +0000 (16:23 -0500)
commit851fef973e62396b6d500d5acb00a305be9c4304
treea8fcedd35acb0bbb02870fe4e080db1d07b991f1
parentfe07cf3b3175d2be5ff6b9166481c07f583fa041
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.024729 seconds and 4 git commands to generate.