<s> from __future__ import absolute_import <EOL> from __future__ import unicode_literals <EOL> import argparse <EOL> from pip_custom_platform . install import install <EOL> from pip_custom_platform . util import default_platform_name <EOL> from pip_custom_platform . wheel import wheel <EOL> def add_shared_arguments ( parser ) : <EOL> default_platform = default_platform_name ( ) <EOL> parser . add_argument ( <EOL> '<STR_LIT>' , <EOL> default = default_platform , <EOL> help = '<STR_LIT>' . format ( default_platform ) , <EOL> ) <EOL> def main ( argv = None ) : <EOL> parser = argparse . ArgumentParser ( <EOL> description = ( <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> ) , <EOL> ) <EOL> subparsers = parser . add_subparsers ( dest = '<STR_LIT>' ) <EOL> install_parser = subparsers . add_parser ( '<STR_LIT>' , help = '<STR_LIT>' ) <EOL> add_shared_arguments ( install_parser ) <EOL> wheel_parser = subparsers . add_parser ( '<STR_LIT>' , help = '<STR_LIT>' ) <EOL> add_shared_arguments ( wheel_parser ) <EOL> wheel_parser . add_argument ( <EOL> '<STR_LIT>' , '<STR_LIT>' , help = '<STR_LIT>' , <EOL> default = '<STR_LIT>' , <EOL> ) <EOL> args , argv = parser . parse_known_args ( argv ) <EOL> platform = args . platform . replace ( '<STR_LIT:->' , '<STR_LIT:_>' ) <EOL> if args . command == '<STR_LIT>' : <EOL> return install ( platform , argv ) <EOL> elif args . command == '<STR_LIT>' : <EOL> return wheel ( platform , args . wheel_dir , argv ) <EOL> else : <EOL> raise NotImplementedError ( '<STR_LIT>' . format ( args . command ) ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> exit ( main ( ) ) </s>
