Hi folks,

My bootstrap build of cctbx/DIALS on Ubuntu 16.04.2 LTS produces a base Python that does not have bz2 support. This is despite the fact that the package "libbz2-dev is already the newest version (1.0.6-8)." Looking in Python_install_log I see

Python build finished, but the necessary bits to build these modules were not found:
_bsddb             _curses            _curses_panel   
_sqlite3           _tkinter           bsddb185        
bz2                dbm                dl              
gdbm               imageop            readline        
sunaudiodev                                           

Has anyone got any ideas? Anyone done a boostrap build on Ubuntu where bz2 can be imported in Python?

Also, what's the procedure to rebuild from base, recovering all the currently configured modules? My guess is that something like this would do it, but is there a better way?

export MYMODULES=$(libtbx.list_modules | tr '\n' ' ')
rm -rf base_tmp/ base/ build/
python bootstrap.py --builder=dials base
python bootstrap.py --builder=dials build
cd build
source setpaths.sh
libtbx.configure $MYMODULES
make

Cheers

-- David