Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of ycm-core#519 - micbou:find-python-libraries-multiple-fo…
…lders, r=Valloric [READY] Use LIBPL variable to find Python library Currently, the `build.py` script may found a debug version of the Python library instead of the release version because it searches through all the subdirectories of the standard library path. See issue ycm-core#518 for details. The solution suggested by @jmenashe (using `LIBPL` variable) works fine for system Python but not for `pyenv` because there is no dynamic library in the directory returned by the `LIBPL` variable. Taking this into account, we now search the Python library in a list of directories. On Windows, this list only contains one directory; the same one as before. On other platforms, it contains two directories: - the one returned by the `LIBPL` variable (for system Python); - the parent directory of the standard Python library modules (for pyenv). Closes ycm-core#518. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/ycmd/519) <!-- Reviewable:end -->
- Loading branch information