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
Add PYTHON_INSTALL_PREFIX CMake option #2797
Conversation
Yes I will try it today and let you know. Thanks. |
The install with PYTHON_INSTALL_PREFIX=/path/to/anaconda3 worked for me on Ubuntu 20.04. FYI there is still a missing closing ")" on line 233 of https://github.com/mlpack/mlpack/blob/master/src/mlpack/bindings/R/CMakeLists.txt for the closing ")" of the |
@BJWiley233 nice catch, thanks! |
@Yashwants19 just FYI, I fixed the missing brace for the R binding installation in this PR. Let me know if a deeper change was needed. :) |
Co-authored-by: Yashwant Singh Parihar <Yashwantsingh.sngh@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for looking into this. This is looking awesome. 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Useful addition!
This comes out of the discussion in #2775.
Right now, the Python bindings will simply be installed to
CMAKE_INSTALL_PREFIX
, even ifPYTHON_EXECUTABLE
is set to some other location. This PR does not automatically extract the path of the Python installation fromPYTHON_EXECUTABLE
, but simply adds aPYTHON_INSTALL_PREFIX
option so that a separate location for the Python bindings to be installed can be specified.@BJWiley233 do you think that you could try these changes and see if they work correctly?