Hi Guys,

I've modified gmetad-python to use a python packaging convention and
also created python setuptools script.
The point is to be able to install gmetad-python using 'python
setup.py install' and with some more work use
setuptools packaging capabilities (creating source package,
RPM).Former currently works fine, latter doesn't.

Attached is a simple script (convert-to-package.sh) that should be run
in gmetad-python directory.It'll create Gmetad package, move necessary
files into it, rename them appropriately and adjust every source file
to use the new package.
Next you should copy 'setup.py.in' script into gmetad-python
directory and apply 'configure.in.patch' (both attached).Then run
'./bootstrap' and './configure' which will generate
gmetad-python/setup.py.Finally in gmetad-python run 'python setup.py
install'.I've tested it on a linux with a fresh ganglia trunk.

Meta data in setup.py is far from been complete/correct, but it's
trivial to extend/change it later on.

During the file name conversion, gmetad_random.py was renamed to
random.py which is using random module from the standard library.This
has created name conflict (random.py would try to import itself), so
I've renamed it again to grandom.py which might not be the best pick
;)
-- 

Kuba

Attachment: convert-to-package.sh
Description: Bourne shell script

Attachment: setup.py.in
Description: Binary data

Index: configure.in
===================================================================
--- configure.in	(revision 1379)
+++ configure.in	(working copy)
@@ -614,7 +614,8 @@
           gmond/python_modules/network/Makefile
           gmetad/gmetad.conf
           gmetad/conf.c
-          gmetad-python/gmetad_config.py
+          gmetad-python/setup.py
+          gmetad-python/Gmetad/config.py
           gmetad-python/gmetad.conf
           gmetad-python/plugins/rrd_plugin.py
           gmetric/Makefile
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to