def toplevel_packages():
packages = set(easy.options.setup.packages)<EOL>for pkg in list(packages):<EOL><INDENT>packages -= set(p for p in packages if str(p).startswith(pkg + '<STR_LIT:.>'))<EOL><DEDENT>return list(sorted(packages))<EOL>
Get package list, without sub-packages.