@staticmethod<EOL><INDENT>def _set_commands(package_names):<DEDENT>
commands = {}<EOL>for pkg_name in package_names:<EOL><INDENT>cmd_name = pkg_name.split('<STR_LIT:.>')[-<NUM_LIT:1>]<EOL>commands[cmd_name] = pkg_name<EOL><DEDENT>return commands<EOL>
Extract the command name from package name. Last part of the module path is the command
ie. if path is foo.bar.baz, then "baz" is the command name.

:param package_names: List of package names
:return: Dictionary with command name as key and the package name as value.