File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 - linux
1313
1414env :
15- - PIP_DATE=2015-01-01 PIP=1 INSTALL=0 DEVELOP=0
16- - PIP_DATE=2015-04-01 PIP=1 INSTALL=0 DEVELOP=0
17- - PIP_DATE=2015-07-01 PIP=1 INSTALL=0 DEVELOP=0
1815 - PIP_DATE=2015-10-01 PIP=1 INSTALL=0 DEVELOP=0
19-
20- - PIP_DATE=2015-01-01 PIP=0 INSTALL=1 DEVELOP=0
21- - PIP_DATE=2015-04-01 PIP=0 INSTALL=1 DEVELOP=0
22- - PIP_DATE=2015-07-01 PIP=0 INSTALL=1 DEVELOP=0
2316 - PIP_DATE=2015-10-01 PIP=0 INSTALL=1 DEVELOP=0
24-
25- - PIP_DATE=2015-01-01 PIP=0 INSTALL=0 DEVELOP=1
26- - PIP_DATE=2015-04-01 PIP=0 INSTALL=0 DEVELOP=1
27- - PIP_DATE=2015-07-01 PIP=0 INSTALL=0 DEVELOP=1
2817 - PIP_DATE=2015-10-01 PIP=0 INSTALL=0 DEVELOP=1
2918
3019install :
Original file line number Diff line number Diff line change 1818
1919
2020def get_releases (package_name ):
21- url = 'https ://pypi.python.org/pypi/%s/json' % package_name
21+ url = 'http ://pypi.python.org/pypi/%s/json' % package_name
2222 return json .loads (urlopen (url ).read ().decode ('utf8' ))['releases' ]
2323
2424
@@ -50,17 +50,18 @@ def select_version(select_date, package_name):
5050 package .project_name not in ('pip' , 'setuptools' ))
5151]
5252
53- pip = UninstallCommand ()
54- options , args = pip .parse_args (installed_packages )
55- options .yes = True
56-
57- try :
58- pip .run (options , args )
59- except OSError as e :
60- if e .errno != 13 :
61- raise e
62- print ("You lack permissions to uninstall this package. Perhaps run with sudo? Exiting." )
63- exit (13 )
53+ if installed_packages :
54+ pip = UninstallCommand ()
55+ options , args = pip .parse_args (installed_packages )
56+ options .yes = True
57+
58+ try :
59+ pip .run (options , args )
60+ except OSError as e :
61+ if e .errno != 13 :
62+ raise e
63+ print ("You lack permissions to uninstall this package. Perhaps run with sudo? Exiting." )
64+ exit (13 )
6465
6566
6667date = parse_iso8601 (sys .argv [1 ])
You can’t perform that action at this time.
0 commit comments