s:check_python: handle 'pip install --user -e'

This commit is contained in:
Daniel Hahler 2016-10-22 17:28:17 +02:00
parent e7b1b5d6ed
commit 339dd4b1fb

View File

@ -174,7 +174,9 @@ function! s:version_info(python) abort
let nvim_version = 'unable to find nvim version'
let base = fnamemodify(nvim_path, ':h')
let metas = glob(base.'-*/METADATA', 1, 1) + glob(base.'-*/PKG-INFO', 1, 1)
let metas = glob(base.'-*/METADATA', 1, 1)
\ + glob(base.'-*/PKG-INFO', 1, 1)
\ + glob(base.'.egg-info/PKG-INFO', 1, 1)
let metas = sort(metas, 's:compare')
if !empty(metas)