boost python libs

Apr 10, 2014 at 8:57 AM
I'm trying to use nuget with my project (C++ / boost ) and found very useful boost packages. Unfortunately, I did not find libs for boost python. So, I made it myself for python 2.7 and vc110 ( they are here ). But I'd like to published it on I think I should let you know.

Thank you very much for your project!
Apr 14, 2014 at 7:12 PM
Have you tried boost_python source library It adds all required boost source files to your project and then you reference on any version of Python you like.
Apr 21, 2014 at 5:52 AM
yes, i've tried it. But boost_python is just source code and you should build libs from it. And it not a trival task if you want to have different python version.
Apr 24, 2014 at 4:05 AM
Edited Apr 24, 2014 at 7:21 AM
You don't have to build libs from it. But even if you really need to build libs, there are only few steps
  1. Create an empty library, add boost_python nuget package.
  2. Add include/source Python directories to the library project. This step can't be avoided even if we release boost_python lib as nuget package. It can be simplified if someone release python as a nuget package.
  3. Reference the project from other projects.
The main problem with boost_python lib nuget is too many possible combinations. Number of Python versions (at least 2.7.6 and 3.4.0) * number of supported platforms (32/64 bits) * number of visual studio compilers (at least VC10, VC11, VC13) * Debug/Release. So we have at least 2*2*3*2 = 24 lib files. In my opinion, lib file is a wrong way to ship C/C++ open source libraries.