conda-forge / boost-cpp-feedstock

A conda-smithy repository for boost-cpp.
BSD 3-Clause "New" or "Revised" License
6 stars 39 forks source link

Is there a way to install a boost header only package? #152

Closed sandybhat16 closed 1 year ago

sandybhat16 commented 1 year ago

Comment:

I am trying to install the boost package. But I was wondering if there is a way to specify an option like 'headers_only'. As I only need the header files from this package. Of course I can install the package and take out the include directory and use. But if there was a way to install a header only package, it would be helpful.

jschueller commented 1 year ago

no, currently the package provides both includes & libs

sandybhat16 commented 1 year ago

Thank you for your response.

h-vetinari commented 1 year ago

That's not true anymore as of a major overhaul for 1.82 we did. You can install libboost-headers and only get the headers

jschueller commented 1 year ago

oh, I didnt know that, sorry

sandybhat16 commented 1 year ago

@h-vetinari is this a package already on conda-forge? I cannot find any with the name 'libboost-headers'

jschueller commented 1 year ago

look again: https://anaconda.org/search?q=libboost-headers

h-vetinari commented 1 year ago

I cannot find any with the name 'libboost-headers'

If you're looking for the feedstock, it's here. For more context, see #25 / #137 or https://github.com/conda-forge/boost-feedstock/pull/164

sandybhat16 commented 1 year ago

Thank you @jschueller @h-vetinari . Unfortunately this is only for the version 1.82. For the lower versions like 1.70.0, I might need to create my own recipe. I am new to conda and exploring stuff.

h-vetinari commented 1 year ago

Boost has pretty excellent compatibility. If you're only using the headers, I don't see a reason why 1.82 shouldn't work in 99% of the cases. IMO you should give it a try and see if it works. ;-)

sandybhat16 commented 1 year ago

I am almost sure that it will work. But since our project is already using 1.70.0, we don't want to break the compatibility. Maybe we later update if necessary :)

h-vetinari commented 1 year ago

Alright, you do whatever suits you. At least you now have another reason to upgrade. ;)

OTOH, this issue can now be closed.