B
    18™\  ã               @   s>   d Z ddlZddlZddlZddlZdd„ Zedkr:eƒ  dS )za
Checks that the version of the projects bundled in ensurepip are the latest
versions available.
é    Nc              C   sz   d} xbt jD ]X\}}t tjjd |¡dd ¡  	d¡¡}|d d }||krd} t
d |||¡ƒ qW | rvt d	¡ d S )
NFzhttps://pypi.org/pypi/{}/jsonT)Z	cadefaultÚutf8ÚinfoÚversionz<The latest version of {} on PyPI is {}, but ensurepip has {}é   )Ú	ensurepipZ	_PROJECTSÚjsonÚloadsÚurllibÚrequestÚurlopenÚformatÚreadÚdecodeÚprintÚsysÚexit)Z	outofdateZprojectr   ÚdataZupstream_version© r   úV/oak/stanford/groups/akundaje/marinovg/programs/Python-3.7.3/Tools/scripts/checkpip.pyÚmain   s    
r   Ú__main__)Ú__doc__r   r   Úurllib.requestr	   r   r   Ú__name__r   r   r   r   Ú<module>   s   