FindBoost: Backport versioned python dependencies for v1.35 to v1.66
Update mpi_python##
and numpy##
component dependencies to honor
python version suffixes on components named by the caller. Although
upstream Boost did not add version suffixes prior to version 1.67, it is
commonly done by distros. Honor suffixes specified by project code.
Projects must take responsibility for naming distro-specific component
suffixes for versions prior to 1.67.
Originally reported here: https://bugs.archlinux.org/task/58472
In Boost versions 1.66 and 1.65, Boost NumPy 3 has a dependency to Boost Python 2. This makes it impossible to import compiled modules in Python 3.
Note regarding the changes: When there is no version suffix requested (e.g., only numpy
is requested, not numpy3
), then component_python_version
should be an empty string, and therefore the dependency should be properly set to python
.
This fixes the issue (at least on Arch Linux).
Fixes: #17892 (closed), #17970 (closed)
Topic-rename: FindBoost-backport-python-deps