-
Notifications
You must be signed in to change notification settings - Fork 289
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
Support --prefix correctly in new cmake system #886
Support --prefix correctly in new cmake system #886
Conversation
- as far as our googling can tell, this was the only way we could find to get the value of the --prefix commandline argument supplied to setup.py.
- needed to change how paths get sent into the cmake part of the build - also moves the cxx-lib directory to be called cxx-sdk
- use the same logic for where the cxx-sdk location regardless of which branch through the setup.py is taken
Codecov Report
@@ Coverage Diff @@
## master #886 +/- ##
=======================================
Coverage 86.63% 86.64%
=======================================
Files 183 183
Lines 17874 17875 +1
Branches 1971 1971
=======================================
+ Hits 15486 15487 +1
Misses 1904 1904
Partials 484 484
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
The thing we should watch for is that the CMake.config files point within cxx-libs on our various platforms. This is a good step forward in any case to handling pip's --prefix complication
Closes #885
Refactors how the setup.py communicates target locations to the cmake so that
--prefix
and--user
arguments are correctly handled.POTENTIALLY BREAKING CHANGE: Now if installing via
pip
/setup.py
, the C++ libraries are installed under the python install in acxx-sdk
instead ofcxx-libs
directory.I'd like to note that the way of finding the value of the
--prefix
argument is pretty gross. If there is a better/cleaner way, please let me know!