-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
nanobind: add a new recipe #20297
base: master
Are you sure you want to change the base?
nanobind: add a new recipe #20297
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I have some ideas regarding the failed find_package call for the CPython recipe, I think I can make it work seamlessly without any additional work. For now, you can follow the example in the CPython test package for how to get CMake to find the Conan package. |
@Ahajha The issue is caused by the Conan package not exporting the |
@valgur The recipe currently only exports |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Conan v1 pipeline ❌Warning Conan Center will stop receiving updates for Conan 1.x packages soon - please see announcement. Failure in build 11 (
Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability. Conan v2 pipeline ❌
The v2 pipeline failed. Please, review the errors and note this is required for pull requests to be merged. In case this recipe is still not ported to Conan 2.x, please, ping Failure in build 11 (
Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability. |
RE: #25500 (comment) I don't think it's going to be easy (or even possible in its current state) to fix the cpython Mac cross-builds(unless we cheat and call a universal build a cross build. Wouldn't be the worst thing I suppose). That could probably be added as an invalid config for this recipe in the short term and we can revisit if/when we find a fix. Perhaps when C3I allows additional configs to be added, that could help the situation. The Windows issues (in your PR) are certainly fixable though. |
As a dumb idea - can you do something like def requirements(self):
try:
self.requires("cpython/whatever"...)
self.should_test = True
catch ConanInvalidConfiguration:
self.should_test = False
def test(self):
if self.should_test:
self.run(whatever...) Doesn't have to be anything like this, but essentially just limit the test package to requiring cpython when it is valid, if it isn't then don't build or test anything. |
Specify library name and version: nanobind/1.6.1