import libtbx from libtbx.utils import warn_if_unexpected_md5_hexdigest import os if (self.env.is_ready_for_build() and self.env.dist_path("iotbx", default=None) is not None): if (not hasattr(libtbx, "manual_date_stamp")): path = "include/iotbx/pdb/hybrid_36_c.c" else: path = "pdb/hybrid_36_c.c" warn_if_unexpected_md5_hexdigest( path=self.env.under_dist(module_name="iotbx", path=path), expected_md5_hexdigests=[ "e96f85e8ab863dd241893941c427a5aa", # SVN revision 6312 ], hints=[ " Files to review:", " iotbx/pdb/hybrid_36_c.c", " hybrid_36_c.c" ])
if (not os.path.isdir(target_dir)): os.makedirs(target_dir) generator_module.run(target_dir=target_dir) else: print "*" * 79 print "Warning: directory with %s tables is missing:" % label print " ", repr(generator_module.reference_tables_directory) print "*" * 79 # flex_fwd.h from cctbx.source_generators import flex_fwd_h target_dir = self.env.under_build("include/cctbx/boost_python") print message_template % target_dir if not os.path.isdir(target_dir): os.makedirs(target_dir) flex_fwd_h.run(target_dir) # reference_table.cpp : checking that it is up-to-date for f, sig in [("reference_table.py", "9ae4b085bcb7fe5a40d51c96b77ce13f"), ("short_cuts.py", "cf67246b5e925d6d4190e2ae6a9dcadb"), ("proto/generate_cpp_asu_table.py", "5c3b987f31a7138f4bf4fefe03e7d588")]: fn = "sgtbx/direct_space_asu/" + f warn_if_unexpected_md5_hexdigest(path=self.env.under_dist( module_name="cctbx", path=fn), expected_md5_hexdigests=[sig], hints=[ " Files to review:", " " + fn, " cctbx/libtbx_refresh.py" ])