<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">This is one of two clean ways to do it imho. Making a SConscript use features that belongs to libraries that it is in charge to build is a terrible idea I am afraid. It would require nasty hacks to work and I would be afraid to have to maintain that. Basically I see only two options:</div><div class=""><br class=""></div><div class="">1. Build Boost libraries as an external library, before our cctbx SConscript kick in, as other libraries such as wxWidget are built</div><div class=""><br class=""></div><div class="">2. Rewrite your SConscript not to use Boost.Python</div><div class=""><br class=""></div><div class="">I would definitively give a thought to option 2! What do you need Boost.Python for in a SConscript?</div><div class=""><br class=""></div><div class="">Best wishes,</div><div class=""><br class=""></div><div class="">Luc</div><div class=""><br class=""></div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 16 Nov 2018, at 21:35, Nicholas Devenish &lt;<a href="mailto:ndevenish@gmail.com" class="">ndevenish@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Is there any real reason why we can't build boost earlier using their own installers - e.g. as part of the base?<div class=""><br class=""></div><div class="">Baseless builds can install it the same way they install any other dependencies. Conda can just install boost the same way it does any other dependency.</div><div class=""><br class=""></div><div class="">I've always thought it strange the way we replicate the build process, It would save a lot of time that we waste every time boost updates and having to debug problems caused by not replicating the build properly (on linux *and* windows).</div><div class=""><br class=""></div><div class="">Nick</div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Fri, Nov 16, 2018 at 5:08 PM Robert Oeffner &lt;<a href="mailto:rdo20@cam.ac.uk" class="">rdo20@cam.ac.uk</a>&gt; wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">We are working on a newer version of Phaser. The new SConscript file for <br class="">
Phaser imports features from boost_python. Therefore it is currently not <br class="">
straightforward to build it since an empty build directory does not yet <br class="">
contain the boost_python module to be imported by SConscript (or <br class="">
python). So SCons crashes when it reads the new Phaser SCsonscript <br class="">
stating that boost_python cannot be imported. Currently our workaround <br class="">
is to first build CCTBX alone and then subsequently to build Phaser.<br class="">
<br class="">
My question is if it is possible to specify dependencies in <br class="">
cctbx_project/boost_adaptbx/SConscript to force building boost_python <br class="">
early on. On Windows boost_thread and a few other libraries are built <br class="">
before other SConscript files are read. So I have put some<br class="">
Depends(boost_thread,&nbsp; boost_python) andDepends(boost_thread, <br class="">
boost_python_meta_ext)<br class="">
statements into cctbx_project/boost_adaptbx/SConscript. These do seem to <br class="">
force building the boost_python.lib and .dll files. But building the <br class="">
boost_python_meta_ext python module fails with the error:<br class="">
boost_adaptbx\meta_ext.cpp(14): fatal error C1083: Cannot open include <br class="">
file: 'boost_adaptbx/type_id_eq.h'<br class="">
<br class="">
It's possible that I'm not using SCons as it's supposed to be used. Let <br class="">
me know if anyone has a suggestion on how to force building boost_python <br class="">
before other SConscript are read.<br class="">
<br class="">
<br class="">
Many thanks,<br class="">
<br class="">
<br class="">
Rob<br class="">
<br class="">
-- <br class="">
Robert Oeffner, Ph.D.<br class="">
Research Associate, The Read Group<br class="">
Department of Haematology,<br class="">
Cambridge Institute for Medical Research<br class="">
University of Cambridge<br class="">
Cambridge Biomedical Campus<br class="">
Wellcome Trust/MRC Building<br class="">
Hills Road<br class="">
Cambridge CB2 0XY<br class="">
<br class="">
<a href="http://www.cimr.cam.ac.uk/investigators/read/index.html" rel="noreferrer" target="_blank" class="">www.cimr.cam.ac.uk/investigators/read/index.html</a><br class="">
tel: +44(0)1223 763234<br class="">
<br class="">
_______________________________________________<br class="">
cctbxbb mailing list<br class="">
<a href="mailto:cctbxbb@phenix-online.org" target="_blank" class="">cctbxbb@phenix-online.org</a><br class="">
<a href="http://phenix-online.org/mailman/listinfo/cctbxbb" rel="noreferrer" target="_blank" class="">http://phenix-online.org/mailman/listinfo/cctbxbb</a><br class="">
</blockquote></div>
_______________________________________________<br class="">cctbxbb mailing list<br class=""><a href="mailto:cctbxbb@phenix-online.org" class="">cctbxbb@phenix-online.org</a><br class="">http://phenix-online.org/mailman/listinfo/cctbxbb<br class=""></div></blockquote></div><br class=""></div></body></html>