-
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
[boost] Fix issues building with Conan 2 and with python #15105
[boost] Fix issues building with Conan 2 and with python #15105
Conversation
I detected other pull requests that are modifying boost/all recipe:
This message is automatically generated by https://github.com/ericLemanissier/conan-center-conflicting-prs so don't hesitate to report issues/improvements there. |
86b2905
to
651c5bd
Compare
246fa13
Could you please bump
|
Conan v1 pipelineAll green in build 4 (
Conan v2 pipeline (informative, not required for merge)Failure in build 4 (
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. |
Hooks produced the following warnings for commit 246fa13boost/1.80.0
boost/1.81.0
boost/1.79.0
boost/1.76.0
boost/1.75.0
boost/1.74.0
boost/1.77.0
boost/1.78.0
boost/1.73.0
boost/1.72.0
boost/1.71.0
boost/1.70.0
|
@@ -539,7 +539,7 @@ def requirements(self): | |||
if self._with_zstd: | |||
self.requires("zstd/1.5.2") | |||
if self._with_stacktrace_backtrace: | |||
self.requires("libbacktrace/cci.20210118") | |||
self.requires("libbacktrace/cci.20210118", transitive_headers=True) |
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.
Transitive headers but not transitive libs for a non-header only lib?
…thon * Fix issues with boost in conan 2 (and boost python) * Fix linker issues with NumPy on Windows * Use run scope when checking python version
Specify library name and version: boost/all
Summary of changes
Fix issues to make recipe cross compatible with Conan v1 and v2
self.output.warning
instead ofself.output.warn
which has been removed from Conan 2transitive_headers=True
for the dependency onlibbacktrace
, to reflect that downstream consumers are exposed to these headers - this is ignored by Conan 1.xself.run()
instead of named arguments, as the name for the output differs in Conan 1.x and Conan 2self.dependencies
instead ofself.requires
to check for the presence of direct dependenciesself.dependencies[].options
in thetest()
method (see this issue), and Conan 2.x cannot accessself.options
in the test method - the logic to register which executables to run is now moved to CMake - perhaps not ideal but avoids having to mirror logic in bothgenerate()
andtest()
. The logic can be restored once the recipe targets only Conan 2 onward.conf_info
instead ofuser_info
(the latter is kept for backwards compatibility as it is ignored by Conan 2)Fixes #15003
Fix issues building with Python support (
without_python=False
)self._python_version
inside thepackage_id()
method, which evaluatesself.options
which is forbidden in Conan 2 - at this stage the option already has the correct value and no further check is needed.self.run
to query the interpreter version, use therun
scope - as the default build scope will implicitly activate vcvars on Windows (altering the expected output of the command) - vcvars is not necessary here.Boost::numpy
andBoost::python
targets, to mirror the upstream usage (the versioned ones are only kept for compatibility according to boost comments).Local testing