[build][python] can't specify --with-python-root

Not sure whether this a boost.build problem, a boost.python problem, or simply a failure in my understanding. In boost 1.33.1 one could specify the location of the Python version to be used by Boost.Python using the --with-python-root option to bjam. This isn't working on the RC_1_34_0 branch. (I haven't looked at HEAD.) Looking at the boost root Jamfile.v2, it looks like this is still expected to work, in that there is code that looks for that option and sets some variables based on its value. However, it does not actually work because there is other code in that same file which examines all --with-XXX options to determine which optional libraries to add. So it treats python-root as a candidate for such a library. Unfortunately, it then determines that this isn't a recognized library name, and so errors out. So there seems to be at least some inconsistency here. Also, simply taking out the --with-python-root results in a warning that the Python location was not configured, and so the Boost.Python library won't be built. Is there some other mechanism that one can / is supposed to use to specify this particular bit of configuration information?

At 7:49 PM -0500 3/5/07, Kim Barrett wrote:
In boost 1.33.1 one could specify the location of the Python version to be used by Boost.Python using the --with-python-root option to bjam. This isn't working on the RC_1_34_0 branch. (I haven't looked at HEAD.)
More digging found another discussion of this issue in these threads: http://thread.gmane.org/gmane.comp.lib.boost.build/13265/focus=13658 http://thread.gmane.org/gmane.comp.lib.boost.build/15106/focus=15111 The resolution seems to be that one *must* have a user-config.jam file that specifies a "using python" clause in order to get boost.python to build. So now I need to go understand user-config.jam and where it's supposed to go and how to integrate that into our build process. Oh, and the now bogus bjam options noted by the first of those threads are still present.
participants (1)
-
Kim Barrett