1
virtualenv env
pip install -e git+https://github.com/pinard/[email protected]#egg=Pymacs-dev
pip install -e hg+https://bitbucket.org/agr/rope#egg=rope-dev
pip install -e hg+https://bitbucket.org/agr/ropemacs#egg=ropemacs-trunk
pip install -e hg+https://bitbucket.org/agr/ropemode#egg=ropemode-trunk
cd env/src/pymacs
make install
添加下列的.emacs (setq虛擬ENV(GETENV 「VIRTUAL_ENV」)) (setq負載路徑(附加 (名單(CONCAT虛擬ENV「/ SRC/pymacs」)) 負載路徑))繩自動導入沒有工作
(if (not (equal virtual-env 'nil))
(let ((foo 'bar))
(require 'pymacs)
(pymacs-load "ropemacs" "rope-")
(setq ropemacs-enable-autoimport 't)
(setq ropemacs-autoimport-modules '("os" "shutil"))
))
在那之後,我能得到完整的代碼,文檔定義。
但是,在輸入rmtree並執行rope-auto-imoport之後,「from shutil import rmtree」沒有出現。
相反,我得到的消息 「全球名rmtree未找到!」
幫幫我吧!
我試過了config.py並添加了extension_modules和python_path。