[cctbxbb] forcing building boost_python early in SConscript

Nicholas Sauter nksauter at lbl.gov
Fri Nov 16 10:30:18 PST 2018


My understanding was that all the SConscript files are normally read before
anything is built.  Does this depart from that model?

Nick


On Fri, Nov 16, 2018 at 9:58 AM Billy Poon <BKPoon at lbl.gov> wrote:

> Hi Rob,
>
> Are these features required before anything is built? Or are they
> dependencies for Phaser that get linked during building? Can you send me
> your SConscript file?
>
> --
> Billy K. Poon
> Research Scientist, Molecular Biophysics and Integrated Bioimaging
> Lawrence Berkeley National Laboratory
> 1 Cyclotron Road, M/S 33R0345
> Berkeley, CA 94720
> Tel: (510) 486-5709
> Fax: (510) 486-5909
> Web: https://phenix-online.org
>
>
> On Fri, Nov 16, 2018 at 9:07 AM Robert Oeffner <rdo20 at cam.ac.uk> wrote:
>
>> We are working on a newer version of Phaser. The new SConscript file for
>> Phaser imports features from boost_python. Therefore it is currently not
>> straightforward to build it since an empty build directory does not yet
>> contain the boost_python module to be imported by SConscript (or
>> python). So SCons crashes when it reads the new Phaser SCsonscript
>> stating that boost_python cannot be imported. Currently our workaround
>> is to first build CCTBX alone and then subsequently to build Phaser.
>>
>> My question is if it is possible to specify dependencies in
>> cctbx_project/boost_adaptbx/SConscript to force building boost_python
>> early on. On Windows boost_thread and a few other libraries are built
>> before other SConscript files are read. So I have put some
>> Depends(boost_thread,  boost_python) andDepends(boost_thread,
>> boost_python_meta_ext)
>> statements into cctbx_project/boost_adaptbx/SConscript. These do seem to
>> force building the boost_python.lib and .dll files. But building the
>> boost_python_meta_ext python module fails with the error:
>> boost_adaptbx\meta_ext.cpp(14): fatal error C1083: Cannot open include
>> file: 'boost_adaptbx/type_id_eq.h'
>>
>> It's possible that I'm not using SCons as it's supposed to be used. Let
>> me know if anyone has a suggestion on how to force building boost_python
>> before other SConscript are read.
>>
>>
>> Many thanks,
>>
>>
>> Rob
>>
>> --
>> Robert Oeffner, Ph.D.
>> Research Associate, The Read Group
>> Department of Haematology,
>> Cambridge Institute for Medical Research
>> University of Cambridge
>> Cambridge Biomedical Campus
>> Wellcome Trust/MRC Building
>> Hills Road
>> Cambridge CB2 0XY
>>
>> www.cimr.cam.ac.uk/investigators/read/index.html
>> tel: +44(0)1223 763234
>>
>> _______________________________________________
>> cctbxbb mailing list
>> cctbxbb at phenix-online.org
>> http://phenix-online.org/mailman/listinfo/cctbxbb
>>
> _______________________________________________
> cctbxbb mailing list
> cctbxbb at phenix-online.org
> http://phenix-online.org/mailman/listinfo/cctbxbb
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://phenix-online.org/pipermail/cctbxbb/attachments/20181116/e1cf6880/attachment.htm>


More information about the cctbxbb mailing list