Skip to content

Instantly share code, notes, and snippets.

@brentp
Created June 27, 2011 21:28
Show Gist options
  • Save brentp/1049884 to your computer and use it in GitHub Desktop.
Save brentp/1049884 to your computer and use it in GitHub Desktop.
incantation to build vim in such a way that pyflakes works
# 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
@tanghaibao
Copy link

still couldn't get pyflakes to work the last time I checked, I remembered it was something about vim not built with python support?

@brentp
Copy link
Author

brentp commented Jun 28, 2011

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.

@brentp
Copy link
Author

brentp commented May 10, 2012

This config-dir works for me with the default python-dev install on Ubuntu:

http://stackoverflow.com/a/5293524

@brentp
Copy link
Author

brentp commented Jun 5, 2013

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