Pydoc is a documentation tool for python, which amongst other things can act as a web-server and allow users to discover what modules are installed. Pydoc can be invoked like this: $ pydoc -p 1234 means: start pydoc and run a webserver on port 1234. Wouldnt it be cool if this could be started as a service from /etc/init.d, with a conf.d file to tell the system what port to run pydoc on. If your main business is python programming then pydoc would be there for you allways. I think Gentoo is already by far the best distro for python developers (and users of Py apps like Zope), but this would be an added convenience.
Created attachment 37127 [details] /etc/conf.d/pydoc
Created attachment 37128 [details] /etc/init.d/pydoc Put the files in the appropriate places (see the name), and chmod +x /etc/init.d/pydoc You should be able to then just rc-update add pydoc default to automatically launch the pydoc server. You *MUST* have the /etc/conf.d/pydoc file as well as that stores the port for the server.
could be a good thing, but rather low on my list of priorities since if you have python, you probably have pydoc on your console anyway.
I have done this for my own machine as well. Would be nice to have.
Added for the latest revisions of python-2.{4,5} without revision bump (since we have to do such in the next couple of weeks anyway). Thanks.
this has been incorporated into python 2.4 and 2.5 ebuilds, however now slotting is broken, as it is part of both slots. I don't know how to fix this. I need multiple versions of python installed for development pursoses though. Please help!
sorry, that was my fault. Should be fixed now, the pydoc init.d/conf.d scripts will get installed as pydoc-2.4, resp. pydoc-2.5. Please wait a couple of hours, resync and re-emerge python-2.4 and python-2.5. Sorry for the inconvenience.
Oh! That was quick, thank you!