Created
June 27, 2011 21:28
-
-
Save brentp/1049884 to your computer and use it in GitHub Desktop.
incantation to build vim in such a way that pyflakes works
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NOTE the /Modules/ | |
./configure --prefix=/vol1/home/brentp/installed/ \ | |
--with-python-config-dir=/vol1/home/brentp/src/python/Python-2.7.2/Modules/ \ | |
--enable-pythoninterp=yes --with-features=huge |
yes, that's exactly what this is supposed to address. You have to tell it the python-config-dir (not sure if the other stuff is required).
If you do | grep -i python
you can make sure the ./configure worked.
This config-dir works for me with the default python-dev install on Ubuntu:
now I'm doing something like this
CFLAGS="-I /software/common/python/2.7.5/include/python2.7/" ./configure --prefix=/software/common/vim/7.3/ --with-python-config-dir=/software/common/python/2.7.5/lib/python2.7/config --enable-pythoninterp=yes
where Python.h is in the -I directory and config.c is in the config directory.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
still couldn't get pyflakes to work the last time I checked, I remembered it was something about vim not built with python support?