shell bypass 403
�
A��cc @ s� d d l m Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d g Z d Z d Z
d e f d e
f g Z d d � Z
d
� Z d � Z d e e e e d d
� Z d e e e e d d � Z d d � Z d d � Z d S( i����( t print_functionNt versiont bootstraps 41.2.0s 19.2.3t
setuptoolst pipc C s; | d k r | t j t _ n d d l } | j j | � S( Ni����( t Nonet syst patht
pip._internalt _internalt main( t argst additional_pathsR ( ( s9 /usr/local/python-2.7/lib/python2.7/ensurepip/__init__.pyt _run_pip s c C s t S( sA
Returns a string specifying the bundled version of pip.
( t _PIP_VERSION( ( ( s9 /usr/local/python-2.7/lib/python2.7/ensurepip/__init__.pyR # s c C sZ g t j D] } | j d � r
| ^ q
} x | D] } t j | =q2 Wt j t j d <d S( Nt PIP_t PIP_CONFIG_FILE( t ost environt
startswitht devnull( t kt keys_to_remove( ( s9 /usr/local/python-2.7/lib/python2.7/ensurepip/__init__.pyt# _disable_pip_configuration_settings* s +
i c
C s/ t d | d | d | d | d | d | � d S( s�
Bootstrap pip into the current Python installation (or the given root
directory).
Note that calling this function will alter both sys.path and os.environ.
t roott upgradet usert
altinstallt default_pipt verbosityN( t
_bootstrap( R R R R R R ( ( s9 /usr/local/python-2.7/lib/python2.7/ensurepip/__init__.pyR 6 s
c C s� | r | r t d � � n t � | r8 d t j d <n | sN d t j d <n t j � } z;g } x� t D]� \ } } d j | | � }
t j d d j |
� � } t
t j j | |
� d � � } | j
| � Wd QX| j t j j | |
� � qj Wd d
d | g }
| r"|
d | g 7}
n | r8|
d
g 7}
n | rN|
d g 7}
n | rl|
d d | g 7}
n t |
g t D] } | d ^ qy| � SWd t j | d t �Xd S( s�
Bootstrap pip into the current Python installation (or the given root
directory). Returns pip command status code.
Note that calling this function will alter both sys.path and os.environ.
s. Cannot use altinstall and default_pip togetherR t ENSUREPIP_OPTIONSt installs {}-{}-py2.py3-none-any.whlt ensurepips _bundled/{}t wbNs
--no-indexs --find-linkss --roots --upgrades --usert -t vi t
ignore_errors( t
ValueErrorR R R t tempfilet mkdtempt _PROJECTSt formatt pkgutilt get_datat openR t joint writet appendR
t shutilt rmtreet True( R R R R R R t tmpdirR t projectR t
wheel_namet whlt fpR t p( ( s9 /usr/local/python-2.7/lib/python2.7/ensurepip/__init__.pyR E s: ! ,c C s� y d d l } Wn t k
r$ d SX| j t k r` d } t | j | j t � d t j �d St � d d d g } | r� | d d | g 7} n t | g t
t � D] } | d
^ q� � S( s~ Helper to support a clean default uninstall process on Windows
Note that calling this function may alter os.environ.
i����NsO ensurepip will only uninstall a matching version ({!r} installed, {!r} bundled)t filet uninstalls -ys --disable-pip-version-checkR# R$ i ( R t ImportErrort __version__R t printR* R t stderrR R
t reversedR) ( R R t msgR R9 ( ( s9 /usr/local/python-2.7/lib/python2.7/ensurepip/__init__.pyt _uninstall_helper s
"c
C s} d d l } | j d d � } | j d d d d d j t � � d d �| j d
d d d d
d d d d d �| j d d d d d
t d d �| j d d d d
t d d �| j d d
d d d �| j d d d d
t d d �| j d d d d
t d d d | j �| j d d d d d d d �| j | � } t
d! | j d"