def check_nsp(dist, attr, value):
assert_string_list(dist,attr,value)<EOL>for nsp in value:<EOL><INDENT>if not dist.has_contents_for(nsp):<EOL><INDENT>raise DistutilsSetupError(<EOL>"<STR_LIT>" +<EOL>"<STR_LIT>" % nsp<EOL>)<EOL><DEDENT>if '<STR_LIT:.>' in nsp:<EOL><INDENT>parent = '<STR_LIT:.>'.join(nsp.split('<STR_LIT:.>')[:-<NUM_LIT:1>])<EOL>if parent not in value:<EOL><INDENT>distutils.log.warn(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>", nsp, parent<EOL>)<EOL><DEDENT><DEDENT><DEDENT>
Verify that namespace packages are valid