wukun0451 / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

Build bug in Python version checking for OS X #315

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Under OS X, build vim using -with-python-config-dir option, and or
   setting flags so that a custom python installation should be used
   while building vim.
2. after building, execute vim, it will crash.
3. use otool -L to check that vim is linked against the OS X default python
   and not the specific one as it was configured.

What is the expected output? What do you see instead?

  If it links correctly, it doesn't crash

What version of the product are you using? On what operating system?

  OS X Mavericks, Vim 7.4.567.

Please provide any additional information below.

  The following test from configure scripts is what is not allowing
  me to set a custom python installation.

  if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
  "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then

  This is because sys.exit(false) is being considered as success by
  the test and the first part of the if statement is always being
  executed, even if my python version is 2.7.

Original issue reported on code.google.com by obl...@gmail.com on 14 Jan 2015 at 2:32