pycomplete is a part of python-mode, that provides some completiotion functionality for python code. It's implementation consists of 2 files -- elisp file and python file. Python file (pycomplete.py) must be loaded by pymacs, and in order to be loaded by pymacs it must be installed somewhere in $PYTHONPATH (if it's installed somewhere else python will be unable to find it). The current ebuild installs pycomplete.py in /usr/share/emacs/site-lisp. Also, the site-file of python-mode must have lower priority than pymacs' one, because pymacs is needed to load pycomplete.
Created attachment 44861 [details, diff] Patch for the ebuild The patch for python-mode.ebuild.
Created attachment 44862 [details, diff] patch for the site-file of python-mode I've added the configuration for doctest-mode and pycomplete to python-mode's site-file.
If you want to try the completition functionality do the following: 1. Open some python file. Change mode to python-mode. 2. Enter such code import string sting.stri 3. Press M-TAB (or M-x py-complete) and see what happens. Unfortunaly, pycomplete cannot show the list of possible completitions so far. If more than one variant of completition exist pycomplete does nothing.
Thanks. I hadn't tested completion part when I committed it. I'll test and commit it tomorrow.
Thanks, veryfied and added to CVS. The instruction to perform py-completion helped me test your patch. I really appreciate it :)