-
Notifications
You must be signed in to change notification settings - Fork 991
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
Feature/Add an option to install() method in package_manager #14752
Feature/Add an option to install() method in package_manager #14752
Conversation
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.
Thanks for contributing to Conan!
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.
Some kind of testing to cover this would be necessary. Likely to be unit-test with some patching/mocking, not easy for a full test with this. Please have a look, don't hesitate to ask for help, we might even be able to contribute the tests ourselves.
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.
I think we are almost there, thanks for your work! 🙂
I am concerned that this change might be breaking existing usage, please have a look to the comments.
When the existing tests doesn't need to be changed, that is a very good sign, then adding a new test, that checks the other non-default new behavior. Please let me know if you need with that new test.
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.
Thanks for taking the opportunity to contribute the fix by yourself, we really appreciate it :)
Thanks! I've rebased this against the |
correct scons test and conf
indicates whether the package is for the host machine (that will run the software) or for the build machine. According to that the we will install a package for the needed arch when cross building. - Add a test for this case.
a2b5bd2
to
a22374e
Compare
I have tried to solve the conflicts of my PR - I hope it helps |
There was something breaking due to some concurrent changes (scons), not fault of this PR. I have updated the branch, hopefully now it will pass |
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.
Thanks a lot! This will be available in Conan 2.0.12 :)
Changelog: Feature: Add
host_tool
toinstall()
method inpackage_manager
to indicate whether the package is a host tool or a library.Docs: conan-io/docs#3401
According to that the we will install a package for the needed arch (host arch or destination arch which can be different in case of cross building)
This option enables the user controls whether the installed package is for the host or needed for the destination arch, this is useful specifically when cross building and we want to avoid misunderstanding about what we want to install.
Closes #14567
develop
branch, documenting this one.