PK!-RRpipis/__init__.pyimport click import os import subprocess import sys import venv @click.group() def cli(): pass @cli.command('list') def list_installed(): click.echo('list') @cli.command() @click.option('-y', '--yes', is_flag=True, help='Do not ask for confirmation.') @click.argument('name', nargs=-1) def install(name, yes): if name: click.echo('install {}'.format(name)) for pkg in name: venv_path = os.path.expanduser('~/.local/venvs/{}'.format(pkg)) venv_python = os.path.join(venv_path, 'bin', 'python') # create venv if not exists if not os.path.exists(venv_path): venv.create(venv_path, symlinks=True, with_pip=True) # install package in venv subprocess.check_call([venv_python, '-m', 'pip', 'install', pkg]) else: click.echo('install') @cli.command() @click.argument('name', required=False) def update(name): click.echo('update') @cli.command() @click.argument('name', required=False) def uninstall(name): click.echo('uninstall') if __name__ == '__main__': cli() PK!H"!#&pipis-0.1.0.dist-info/entry_points.txtN+I/N.,()*,,V9\\PK!H) x+SSpipis-0.1.0.dist-info/WHEEL HM K-*ϳR03rOK-J,/R(O-)T0гzd&Y)r$U&UrPK!Hypipis-0.1.0.dist-info/METADATATn6}W 6i [7AQnsyH,]"ڍ^~M?_!%g@a@33gf'FUw9[xZ8)'o[ n\= &<([w Nm8Qc*)7~UjʗQ+Jkh߿}q-p;_&Vmnwhw⢏L9`J2 l u<ڋ'X +?qyRSs &'*xr]UÝoj[f nzV E%#~wē{G|A!V -?{ReM SyFx3t_nox sAlv>< >2(Ed]G  ֽ+>‡n켻E9yڢ篿бW @qLq)"uNvCɌg"{ÇPv)T;ihy:eBMlȆr4'TIN,ʠ~7Ԫ XA+nZ9f8Mǣ,u uF?XU>YXvͨ>DCknSZ8_jʢ?Κ!1w/5.Y J(r#S(ZH,,d^J#xD3UK^x@Q4h.scпPK!HWFopipis-0.1.0.dist-info/RECORDuKr0нg %]D*d* MO¥oPF! /]nYWtUV37}cT,K]׬?)zP(kķ$L~nw4vf2ow[uQkd 7M I^JC2D V7{Trpо="7X/OgGzMXۉ`I+mi@~&؋PK!-RRpipis/__init__.pyPK!H"!#&pipis-0.1.0.dist-info/entry_points.txtPK!H) x+SSpipis-0.1.0.dist-info/WHEELPK!Hyrpipis-0.1.0.dist-info/METADATAPK!HWFopipis-0.1.0.dist-info/RECORDPKr