boost: can Homebrew break out boost-python? #30845
Comments
So the problem with bottling these is that some people want to use Homebrew Python and some people want to use system Python. As the community doesn't seem able to pick one we don't build Boost's Python bindings for now by default. |
Yes, understood about leaving Python out of the bottles. 👍 The Boost.Python Build HOWTO says: This makes me think, maybe erroneously, that building Boost.Python can be accomplished less painfully than (and separably from) building all of Boost. Probably I should try it before continuing the discussion. |
It looks like this can work! Boost has at least two contact points with Python:
Building Boost.Python separately from the rest of Boost is easy and takes only a couple minutes. Here is my proof of concept boost-python.rb, which is hacked down from boost.rb; here is a diff view. My work-in-progress vpython formula, which uses Boost.Python and "normally" depends on boost --with-python, both builds and functions with the combination of bottled boost and this boost-python formula instead. I'm not sure how to build the MPI bindings without building Boost.Python so that this doesn't conflict with |
If you can make a slimmed down, working version of both formulae we'd review a PR. I think this is an interesting approach, certainly. |
As a user of Boost.Python I would very much welcome being able to use most of Boost from bottle and only have to build a separate Boost Python formula. 👍 |
Some notes:
I'll try and have a PR together and tested this weekend. |
Closing in favor of the pull request. |
I'm trying to test a homebrew-python formula that depends on Boost.Python and building boost --with-python today on my test VM took 3 hours and weakened my will to live. If I showed up with a boost-python formula that depended on (mercifully bottled) Boost and built only the Python parts, is it likely to be accepted into core?
The text was updated successfully, but these errors were encountered: