Files
PowerToys/PythonHome/Lib/site-packages/pip/locations.pyc

39 lines
5.5 KiB
Plaintext
Raw Normal View History

2014-07-09 18:15:23 +08:00
<03>
<00>Sc@s3dZddlZddlZddlZddlZddlmZmZddlZddl m
Z
m Z m Z ddl ZdZdZd<00>Zd<00>Zd <00>Zd
<00>Zd <00>Ze<00>r<>ejjejd <00>Zejjejd <00>ZnIe<00>Zyejjej<00>d <00>ZWnek
r=ejd<00>nXejjejje<00><00>Zejje<00>Ze
<00>Z ejj!d<00>Z"ej#dkraejjejd<00>Z$e r<>ejje d<00>ndZ&ejj'e$<00>sejjejd<00>Z$e rejje d<00>ndZ&nejje"d<00>Z(ejje(d<00>Z)ejje(d<00>Z*n<>ejjejd<00>Z$e r<>ejje d<00>ndZ&ejje"d<00>Z(ejje(d<00>Z)ejje(d<00>Z*ej#d dkrejd dkrdZ$ejje"d<00>Z*ne+ddd<00>Z,dS(s7Locations where we look for configs, install stuff, etci<63><69><EFBFBD><EFBFBD>N(tinstallt SCHEME_KEYS(tget_python_libt get_path_uidt user_sites<65>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<00>}t|d<00>}|jt<00>|j<00>dS(s?
Write the pip delete marker file into this directory.
twN(tostpathtjointPIP_DELETE_MARKER_FILENAMEtopentwritetDELETE_MARKER_MESSAGEtclose(t directorytfilepatht marker_fp((sDc:\Users\lifqian\Desktop\Python27\lib\site-packages\pip\locations.pytwrite_delete_marker_files cCs9ttd<00>rtStjttdtj<00>kr5tStS(sM
Return True if we're running inside a virtualenv, False otherwise.
t real_prefixt base_prefix(thasattrtsystTruetprefixtgetattrtFalse(((sDc:\Users\lifqian\Desktop\Python27\lib\site-packages\pip\locations.pytrunning_under_virtualenv s
cCsYtjjtjjtj<00><00>}tjj|d<00>}t<00>rUtjj|<00>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((sDc:\Users\lifqian\Desktop\Python27\lib\site-packages\pip\locations.pytvirtualenv_no_global-s!cCs;tjdkrtj<00>Sddl}|jtj<00><00>jS(s8 Returns the effective username of the current process. twin32i<32><69><EFBFBD><EFBFBD>N( RtplatformtgetpasstgetusertpwdtgetpwuidRtgeteuidtpw_name(R'((sDc:\Users\lifqian\Desktop\Python27\lib\site-packages\pip\locations.pyt__get_username7s
 cCs<>tjjtj<00>dt<00><16>}tjdkr5|Sytj|<00>t |<00>Wn<57>t
k
r<>d}yt |<00>}Wnt
k
r<>d}nX|tj <00>kr<>d|}|GHddGHtjj|<00><00>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((sDc:\Users\lifqian\Desktop\Python27\lib\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<00>|jddt<00>}|pT|j|_|pf|j|_|px|j|_|j<00>x%t D]}t
|d|<17>||<q<>Wt <00>r(t j jtjddd tjd
|<00>|d <|d k r(t j j|t j j|d <19>d <1F>|d <q(n|S(s+
Return a distutils install scheme
i<><69><EFBFBD><EFBFBD>(t DistributiontnameRtcreatetinstall_tincludeRtpythonitheadersiN(tdistutils.distR=tparse_config_filestget_command_objRtuserthometroottfinalize_optionsRRRRRRRRtversionR0R( t dist_nameRGRHRIR=tschemetdtitkey((sDc:\Users\lifqian\Desktop\Python27\lib\site-packages\pip\locations.pytdistutils_scheme<6D>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(((sDc:\Users\lifqian\Desktop\Python27\lib\site-packages\pip\locations.pyt<module>sZ      
     !$!&