๓ 9ีาTc@@s‘dZddlmZddlZddlZddlZddlZddlZddlZddl m Z ddl m Z m Z ddlmZmZddlmZddlmZe d d d d d dgZed„eDƒdƒZejdƒZdZdZd„Zd„Zd„Zd„Z d„Z!eƒrsej"j#ej$dƒZ%ej"j#ej$dƒZ&nIe!ƒZ%yej"j#ej'ƒdƒZ&Wne(k rปej)dƒnXej"j*ej"j+e%ƒƒZ%ej"j*e&ƒZ&e j,ƒZ-ej.Z/ej"j0dƒZ1erปej"j#ej$dƒZ2ej"j#e/dƒZ3ej"j4e2ƒsˆej"j#ej$dƒZ2ej"j#e/dƒZ3ndZ5ej"j#e1dƒZ6ej"j#e6e5ƒZ7nŒej"j#ej$dƒZ2ej"j#e/dƒZ3dZ5ej"j#e1d ƒZ6ej"j#e6e5ƒZ7ej8d! d"krGej$d# d$krGd%Z2ngej9dƒD]Z"ej"j#e"e5ƒ^qWZ:e;dde;d&„Z<dS('s7Locations where we look for configs, install stuff, etci(tabsolute_importN(t sysconfig(tinstallt SCHEME_KEYS(t get_path_uidtWINDOWS(tappdirs(t exceptionss"/etc/ssl/certs/ca-certificates.crts /etc/pki/tls/certs/ca-bundle.crts/etc/ssl/ca-bundle.pems/etc/ssl/cert.pems&/usr/local/share/certs/ca-root-nss.crts/usr/local/etc/openssl/cert.pemcc@s'|]}tjj|ƒr|VqdS(N(tostpathtexists(t.0tx((s3/usr/lib/python2.7/vendor-packages/pip/locations.pys 4stpipsนThis file is placed here by pip to indicate the source was put here by pip. Once this package is successfully installed this source code will be deleted (unless you remove this file). spip-delete-this-directory.txtcC@s>tjj|tƒ}t|dƒ}|jtƒWdQXdS(s? Write the pip delete marker file into this directory. twN(RR tjointPIP_DELETE_MARKER_FILENAMEtopentwritetDELETE_MARKER_MESSAGE(t directorytfilepatht marker_fp((s3/usr/lib/python2.7/vendor-packages/pip/locations.pytwrite_delete_marker_fileEscC@s9ttdƒrtStjttdtjƒkr5tStS(sM Return True if we're running inside a virtualenv, False otherwise. t real_prefixt base_prefix(thasattrtsystTruetprefixtgetattrtFalse(((s3/usr/lib/python2.7/vendor-packages/pip/locations.pytrunning_under_virtualenvNs cC@sYtjjtjjtjƒƒ}tjj|dƒ}tƒrUtjj|ƒrUt SdS(s? Return True if in a venv and no system site packages. sno-global-site-packages.txtN( RR tdirnametabspathtsitet__file__RR tisfileR(t site_mod_dirtno_global_file((s3/usr/lib/python2.7/vendor-packages/pip/locations.pytvirtualenv_no_global[s!cC@s2trtjƒSddl}|jtjƒƒjS(s8 Returns the effective username of the current process. iN(RtgetpasstgetusertpwdtgetpwuidRtgeteuidtpw_name(R+((s3/usr/lib/python2.7/vendor-packages/pip/locations.pyt__get_usernamegs  cC@sำtjjtjƒdtƒjddƒƒ}tr8|Sytj|ƒt |ƒWnyt k rฮd}yt |ƒ}Wnt k r’d}nX|tj ƒkrฯd|}|GHdGHtj|ƒ‚qฯnX|S(s Returns a safe build_prefix s pip_build_%st t_sSThe temporary folder for building (%s) is either not owned by you, or is a symlink.sqpip will not work until the temporary folder is either deleted or is a real directory owned by your user account.N(RR Rttempfilet gettempdirR/treplaceRtmkdirRtOSErrortNoneRR-RtInstallationError(R tfile_uidtmsg((s3/usr/lib/python2.7/vendor-packages/pip/locations.pyt_get_build_prefixos*      tbuildtsrcs=The folder you are executing pip from can no longer be found.t~tScriptstbinspip.inispip.confs.pipitdarwinis/System/Library/s/usr/local/binc C@s’ddlm}i}|r/idgd6}ni}i|d6}|j|ƒ||ƒ} | jƒ| jddtƒ} |p†| j| _|p˜| j| _|pช| j| _| j ƒx%t D]} t | d| ƒ|| s„          "          & .