ó †2{Yc@s3dZddlZddlZddlZddlZddlmZmZddlZddl m Z m Z m Z ddl ZdZdZd„Zd„Zd „Zd „Zd „Zeƒrõejjejd ƒZejjejd ƒZnIeƒZyejjejƒd ƒZWnek r=ejdƒnXejjejjeƒƒZejjeƒZe ƒZ ejj!dƒZ"ej#dkraejjejdƒZ$e rËejje dƒndZ&ejj'e$ƒsejjejdƒZ$e rejje dƒndZ&nejje"dƒZ(ejje(dƒZ)ejje(dƒZ*n¼ejjejdƒZ$e r”ejje dƒndZ&ejje"dƒZ(ejje(dƒZ)ejje(dƒZ*ej#d dkrejd dkrdZ$ejje"dƒZ*ne+ddd„Z,dS(s7Locations where we look for configs, install stuff, etciÿÿÿÿN(tinstallt SCHEME_KEYS(tget_python_libt get_path_uidt user_sites¹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.txtcCs?tjj|tƒ}t|dƒ}|jtƒ|jƒdS(s? Write the pip delete marker file into this directory. twN(tostpathtjointPIP_DELETE_MARKER_FILENAMEtopentwritetDELETE_MARKER_MESSAGEtclose(t directorytfilepatht marker_fp((s>/opt/alt/python33/lib/python3.3/site-packages/pip/locations.pytwrite_delete_marker_files cCs9ttdƒrtStjttdtjƒkr5tStS(sM Return True if we're running inside a virtualenv, False otherwise. t real_prefixt base_prefix(thasattrtsystTruetprefixtgetattrtFalse(((s>/opt/alt/python33/lib/python3.3/site-packages/pip/locations.pytrunning_under_virtualenv s cCsYtjjtjjtjƒƒ}tjj|dƒ}tƒrUtjj|ƒrUt SdS(s? Return True if in a venv and no system site packages. sno-global-site-packages.txtN( RRtdirnametabspathtsitet__file__RRtisfileR(t site_mod_dirtno_global_file((s>/opt/alt/python33/lib/python3.3/site-packages/pip/locations.pytvirtualenv_no_global-s!cCs;tjdkrtjƒSddl}|jtjƒƒjS(s8 Returns the effective username of the current process. twin32iÿÿÿÿN( RtplatformtgetpasstgetusertpwdtgetpwuidRtgeteuidtpw_name(R'((s>/opt/alt/python33/lib/python3.3/site-packages/pip/locations.pyt__get_username7s  cCs×tjjtjƒdtƒƒ}tjdkr5|Sytj|ƒt |ƒWn€t k rÒd}yt |ƒ}Wnt k rd}nX|tj ƒkrÓd|}|GHddGHtjj|ƒ‚qÓnX|S(s Returns a safe build_prefix s pip_build_%sR#sSThe temporary folder for building (%s) is either not owned by you, or is a symlink.s0pip will not work until the temporary folder is sAeither deleted or is a real directory owned by your user account.N(RRRttempfilet gettempdirR+RR$tmkdirRtOSErrortNoneRR)tpipt exceptionstInstallationError(Rtfile_uidtmsg((s>/opt/alt/python33/lib/python3.3/site-packages/pip/locations.pyt_get_build_prefix>s*     tbuildtsrcs=The folder you are executing pip from can no longer be found.t~R#tScriptstbinR1spip.inispip.logs.pipspip.confitdarwinis/System/Library/s/usr/local/binsLibrary/Logs/pip.logc Cs,ddlm}i}|i|d6ƒ}|jƒ|jddtƒ}|pT|j|_|pf|j|_|px|j|_|jƒx%t D]}t |d|ƒ||/opt/alt/python33/lib/python3.3/site-packages/pip/locations.pytdistutils_scheme‹s,       '(-t__doc__RRRR,tdistutils.command.installRRR%tpip.backwardcompatRRRtpip.exceptionsR1R R RRR"R+R6RRRt build_prefixt src_prefixtgetcwdR/texitRtrealpatht site_packagest expandusertuser_dirR$tbin_pyR0tbin_usertexiststdefault_storage_dirtdefault_config_filetdefault_log_fileRRQ(((s>/opt/alt/python33/lib/python3.3/site-packages/pip/locations.pytsZ            !$!&