The following describes how I got an acceptable python working env under emacs 22 on debian etch.
I had to clean up a little:
apt-get install pymacs apt-get remove pylint apt-get remove python-mode apt-get install python-mode apt-get remove python-logilab-common apt-get install pylint
You also need ipython.
You then need to get a epylint from somewhere (e.g. http://www.emacswiki.org/emacs/PythonMode, I picked the "alternative version") and put it into your path.
In .emacs:
(require 'ipython)
(setq ipython-command "/usr/bin/ipython")
(when (load "flymake" t)
(defun flymake-pylint-init ()
(let* ((temp-file (flymake-init-create-temp-buffer-copy
'flymake-create-temp-inplace))
(local-file (file-relative-name
temp-file
(file-name-directory buffer-file-name))))
(list "epylint" (list local-file))))
(add-to-list 'flymake-allowed-file-name-masks
'("\\.py\\'" flymake-pylint-init)))
(add-to-list 'flymake-allowed-file-name-masks
'("\\.py\\'" flymake-pylint-init))
Use
(require 'pymacs) (pymacs-load "ropemacs" "rope-")