-
Notifications
You must be signed in to change notification settings - Fork 768
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[READY] Rewrite FindPythonLibraries function in build script #499
Conversation
Looks great! Thanks for the PR!
|
71af9fe
to
e59b442
Compare
e59b442
to
f21929f
Compare
Merge the FindPythonLibraries functions specific to each platform into one function. Use get_python_inc function from sysconfig module on all platforms to find the Python headers. Using ldconfig to find the Python libraries is not reliable. Instead, we search them through the library directory and its subdirectories. Use regular expressions to find static and dynamic Python libraries.
f21929f
to
8b6ea5e
Compare
Updated to fix issues #500, #502, and ycm-core/YouCompleteMe#2175.
|
Holy hell, Python is a goddamn never-ending stream of problems.
|
Also fixes the errors for me. Thx! |
Great. I think this is definitely ready. @puremourning @vheon Care to review?
|
@homu r=Valloric
|
📌 Commit 8b6ea5e has been approved by |
[READY] Rewrite FindPythonLibraries function in build script This should take care of: - system Python (with or without the `m` suffix in the library name for Python 3) on Linux, OS X, and Windows; - `pyenv` Python on Linux and OS X (no `pyenv` on Windows); - virtual environments (`virtualenv` and `pyvenv`) on Linux, OS X, and Windows. Fixes #494. Fixes #500. Fixes #502. Fixes ycm-core/YouCompleteMe#2162. Fixes ycm-core/YouCompleteMe#2175. <!-- 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/499) <!-- Reviewable:end -->
☀️ Test successful - status |
[READY] Updating to latest ycmd We want to merge this soon to get @micbou's wonderful ycm-core/ycmd#499 PR out. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/2183) <!-- Reviewable:end -->
This should take care of:
m
suffix in the library name for Python 3) on Linux, OS X, and Windows;pyenv
Python on Linux and OS X (nopyenv
on Windows);virtualenv
andpyvenv
) on Linux, OS X, and Windows.Fixes #494.
Fixes #500.
Fixes #502.
Fixes ycm-core/YouCompleteMe#2162.
Fixes ycm-core/YouCompleteMe#2175.
This change is