Incorrect munin_plugin_dir during installation
Closed this issue · 4 comments
Hello.
Setup script incorrectly reports munin_plugin_dir as '/usr/local/./share/munin/plugins' and terminates without copying plugins to Munin plugins directory.
I'm using Ubuntu Linux 10.04 and Python 2.6.
Hi Kolyagora,
Unfortunately I have not been able to come up with a setup.py script that works for each an every possible configuration; there are so many variations like distribution installed python vs. locally installed python vs. virtualenv vs. installation in install_root by packaging software, Munin installation is /usr vs. /usr/local, etc.
I have two questions for you:
- For compatibility with packaging software the Munin Plugin Directory is not burned into the setup script; the paths are relative to installation directory. Do you know why installation directory /usr/local is used instead of /usr in your environment?
- In cases where setup.py fails to install the plugins into Munin Plugins Directory, pymunin-install shell script must be created and you would actually have to revise the script, in certain cases make some simple changes to the script to suit your environment and execute the script to copy the plugins to the correct directory. The big question is whether the setup.py script is generating the pymunin-install script correctly and if not what error messages are being displayed by the setup.py script.
I am open to any suggestions that can streamline the installation process,
Thanks for trying PyMunin,
Ali
Hi,
Just committed a change to setup.py to permit forcing the installation path for Munin Plugins by setting the environment variable MUNIN_PLUGIN_DIR.
Have a nice day,
Ali
Hello Ali.
Thank you for response. I think i should describe my setup more detailed, although everything is by default.
The Python installation is shipped with Ubuntu Linux 10.04. Munin is installed via 'sudo apt-get install munin'. It's installation directory is '/usr/share/munin'.
Seems like Python uses '/usr/local' to install packages by default. In my case all installed packages are in '/usr/local/lib/python2.6/dist-packages/'.
As for your second question, i guess pymunin-install script won't be created because installation process stops at this line:
if os.path.exists(munin_plugin_dir):
and script terminates without any messages.
I managed to install PyMunin by editing setup.py and hardcoding '/usr/share/munin/plugins' as munin_plugin_dir value.
Hi,
Just committed a change to fix the issue. Seems like I was confusing the base directory for the installation of Python modules with the installation root. I will be closing the issue, but if the problems persists, please do not doubt to reopen issue.
Thanks for your help nailing down this problem,
Ali