tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
\\¬Qc@sºdZddlmZdZddlZddlZddlZddlZddlTddl    m
Z
ddl m Z ddl mZdd    lmZdd
lmZdd lmZmZmZdd lmZdd lmZddlmZddlmZddlmZd„Zd„Zd„Zej dkrhidd6dd6dd6dd6dd6Z!n)idd6dd6dd6dd6dd6Z!iidd6dd6d d6d!d6dd6d"6id#d6d#d6d$d6d!d6dd6d%6id&d6d&d6d'd6d(d6d)d6d*6e!d+6id&d6d&d6d,d6d-d6d)d6d.6idd6dd6dd6dd6dd6d/6id&d6d&d6d'd6d(d6d)d6d06Z"d3Z#d1e
fd2„ƒYZ$dS(4sFdistutils.command.install
 
Implements the Distutils 'install' command.iÿÿÿÿ(tlogs$Id$N(t*(tCommand(tDEBUG(tget_config_vars(tDistutilsPlatformError(t
write_file(t convert_patht
subst_varst change_root(t get_platform(tDistutilsOptionError(t    USER_BASE(t    USER_SITE(t    maketranscCsTtjdkrPdtjkrPtjjdƒdkrPtjddkrPdSndS(Ntwin32tMSYSTEMtGCCitMINGW32i(tsystplatformtostenvirontversiontfind(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/command/install.pyt is_msys_mingws6cCsnd}xatjdjtjƒD]F}tjj||ƒ}tjj|ƒr tj|tjƒr |Sq WdS(Ns msys-1.0.dlltPATH(
RRtsplittpathseptpathtjointisfiletaccesstF_OKtNone(t_msysdllt_pathtcurrpath((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/command/install.pythas_msyss  'cCs’tƒrŠtƒdk    rŠtƒ}|jdƒ}|jdƒrL|d }ntddƒ}|j|ƒ}|jdƒr†|d }n|SdSdS(Ns\s\biniüÿÿÿt/iÿÿÿÿ(RR&R"trstriptendswithRt    translate(targttable((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/command/install.pyt    msys_root's      s2.2s$basetpurelibtplatlibs$base/Include/$dist_nametheaderss $base/Scriptstscriptstdatas$base/Lib/site-packagess/$base/lib/python$py_version_short/site-packagess3$platbase/lib/python$py_version_short/site-packagess0$base/include/python$py_version_short/$dist_names    $base/bint unix_prefixs$base/lib/pythons$base/include/python/$dist_namet    unix_homes    $usersites4$userbase/include/python$py_version_short/$dist_names $userbase/bins    $userbaset    unix_usertnts4$userbase/Python$py_version_nodot/Include/$dist_names$userbase/Scriptstnt_usertos2tos2_hometinstallcBs†eZdZdHdIdJddGdefdKd dGd d fdLdMdNddGddfdOdPdQdRdSdTdUdVdWgZdd%d(dgZidd 6Zd,„Zd-„Z    d.„Z
d/„Z d0„Z d1„Z d2„Zd3„Zd4„Zd5„Zd6„Zd7„Zd8„Zd9„Zd:„Zd;„Zd<„Zd=„Zd>„Zd?„Zd@„ZdAefdBefdCefdDefdEdF„fgZRS(Xs'install everything from build directorysprefix=sinstallation prefixs exec-prefix=s.(Unix only) prefix for platform-specific filesshome=s+(Unix only) home directory to install undertusers!install in user site-package '%s's install-base=s;base installation directory (instead of --prefix or --home)sinstall-platbase=s8base installation directory for platform-specific files s$(instead of --exec-prefix or --home)sroot=s<install everything relative to this alternate root directorysinstall-purelib=s;installation directory for pure Python module distributionssinstall-platlib=s8installation directory for non-pure module distributionss install-lib=s4installation directory for all module distributions s3(overrides --install-purelib and --install-platlib)sinstall-headers=s(installation directory for C/C++ headerssinstall-scripts=s)installation directory for Python scriptss install-data=s%installation directory for data filestcompiletcscompile .py to .pyc [default]s
no-compilesdon't compile .py filess    optimize=tOslalso compile with optimization: -O1 for "python -O", -O2 for "python -OO", and -O0 to disable [default: -O0]tforcetfs1force installation (overwrite any existing files)s
skip-builds2skip rebuilding everything (for testing/debugging)srecord=s3filename in which to record list of installed filescCsåd|_d|_d|_d|_d|_d|_d|_d|_d|_    d|_
d|_ d|_ d|_ t|_t|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_dS(Nii(R"tprefixt exec_prefixthomeR;t install_basetinstall_platbasetroottinstall_purelibtinstall_platlibtinstall_headerst install_libtinstall_scriptst install_dataR tinstall_userbaseR tinstall_usersiteR<toptimizet
extra_pathtinstall_path_fileR?t
skip_buildtwarn_dirt
build_baset    build_libtrecord(tself((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/command/install.pytinitialize_optionsÀs2                                                                    
                           cCs¯|js|js|jr=|js-|jr=tdd‚n|jrd|jsX|jrdtd‚n|jr©|jsš|jsš|jsš|jsš|jr©tdƒ‚ntjdkrÝ|jrÝ|j    dƒd|_qÝn|j dƒtjdkr|j ƒn
|j ƒ|j dƒtjtjƒd    }td
d ƒ\}}i |jjƒd 6|jjƒd 6|jjƒd6|d6|d    d!d6|d    |dd6|d6|d
6|d6|d 6|jd6|jd6|_|jƒ|j dƒ|jdk    rStƒrStƒ}|dkrS|jj|ƒd    krS|jj|dƒ|_qSn|j|jd<|j|jd<t ržddl!m!}dGH||jƒn|j"ƒ|j dƒ|jrË|j#ƒn|j$dkr|jj%rõ|j&|_$q|j'|_$n|j(d d!d"d#d$d%ddƒ|j)ƒ|j$|_*tj+j,|j$|j-ƒ|_$|jdk    r‹|j.d&d d!d"d#d$d%ƒn|j d'ƒ|j/d(d+d,ƒdS(-Ns.must supply either prefix/exec-prefix/home or s)install-base/install-platbase -- not boths9must supply either home or prefix/exec-prefix -- not bothsGcan't combine user with prefix, exec_prefix/home, or install_(plat)basetposixs+exec-prefix option ignored on this platformspre-finalize_{unix,other}spost-finalize_{unix,other}()iRARBt    dist_namet dist_versiont dist_fullnamet
py_versionitpy_version_shortitpy_version_nodott
sys_prefixtsys_exec_prefixtuserbasetusersitespost-expand_basedirs()R'tbasetplatbaseiÿÿÿÿ(tpprints config vars:spost-expand_dirs()tlibR.R/R1R2R0tlibbasesafter prepending roottbuildRTRU(s
build_bases
build_base(s    build_libs    build_lib(0RARBRCRDRER R;RtnametwarnR"t    dump_dirst finalize_unixtfinalize_othertstringRRRRt distributiontget_namet get_versiont get_fullnameRMRNt config_varstexpand_basedirsRFRR-RtreplaceRRft expand_dirstcreate_home_pathRJt ext_modulesRHRGt convert_pathsthandle_extra_pathtinstall_libbaseRRt
extra_dirst change_rootstset_undefined_options(RWR]RARBtmsysrootRf((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/command/install.pytfinalize_options s†
    $     
 
 
 
     $
           
 
      cCsÏtrËddlm}|dGHx©|jD]›}|d}|ddkrY|dd!}n||jkr”tj|j||ƒ}t||ƒ }n!tj||ƒ}t||ƒ}d||fGHq)WndS(Niÿÿÿÿ(t longopt_xlatet:it=s  %s: %s(Rtdistutils.fancy_getoptR‚t user_optionst negative_optRoR*tgetattr(RWtmsgR‚topttopt_nametval((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/command/install.pyRl£s    
    c    Cs¨|jdk    s|jdk    rˆ|jdkrK|jdkrK|jdksx|jdksx|jdksx|jdkr„t    d‚ndS|j
rÒ|j dkr¯t dƒ‚n|j |_|_|j dƒnÒ|jdk    r|j|_|_|j dƒn |jdkra|jdk    r.t    d‚ntjjtjƒ|_tjjtjƒ|_n|jdkr|j|_n|j|_|j|_|j dƒdS(NsPinstall-base or install-platbase supplied, but installation scheme is incompletes$User base directory is not specifiedR5R4s*must not supply exec-prefix without prefixR3(RDR"RERJRGRHRIRKRLR R;RMRt select_schemeRCRARBRRtnormpathR(RW((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/command/install.pyRmµs<               cCsü|jrQ|jdkr'tdƒ‚n|j|_|_|jtjdƒn§|j    dk    rƒ|j    |_|_|jdƒnu|j
dkr­tj j t j
ƒ|_
n|j
|_|_y|jtjƒWn!tk
r÷tdtj‚nXdS(Ns$User base directory is not specifiedt_userR4s)I don't know how to install stuff on '%s'(R;RMR"RRDRERRRjRCRARRŽRtKeyError(RW((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/command/install.pyRnàs"      cCsUt|}xDtD]<}d|}t||ƒdkrt||||ƒqqWdS(Ntinstall_(tINSTALL_SCHEMESt SCHEME_KEYSRˆR"tsetattr(RWRjtschemetkeytattrname((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/command/install.pyRùs
 
 
cCsˆx|D]y}t||ƒ}|dk    rtjdksFtjdkr[tjj|ƒ}nt||jƒ}t|||ƒqqWdS(NRYR6(    RˆR"RRjRt
expanduserRRtR”(RWtattrstattrRŒ((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/command/install.pyt _expand_attrss  cCs|jdddgƒdS(NRDRERF(R›(RW((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/command/install.pyRu s    cCs#|jddddddgƒdS(NRGRHRJRIRKRL(R›(RW((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/command/install.pyRws     cGs>x7|D]/}d|}t||tt||ƒƒƒqWdS(NR‘(R”RRˆ(RWtnamesRjRš((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/command/install.pyRzs 
cCsê|jdkr!|jj|_n|jdk    rÈt|jƒtkr`tj|jdƒ|_nt|jƒdkr‰|jd}}n0t|jƒdkr°|j\}}n    td‚t    |ƒ}n d}d}||_
||_ dS(Nt,iiisY'extra_path' option must be a list, tuple, or comma-separated string with 1 or 2 elementst( RPR"Rpttypet
StringTypeRoRtlenR Rt    path_fileR}(RWR¢R}((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/command/install.pyR{ s     c    GsDx=|D]5}d|}t||t|jt||ƒƒƒqWdS(NR‘(R”R    RFRˆ(RWRœRjRš((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/command/install.pyR~Bs 
cCs|js dSttjjdƒƒ}xc|jjƒD]R\}}|j|ƒr5tjj|ƒ r5|j    d|ƒtj
|dƒq5q5WdS(s#Create directories under ~
        Nt~sos.makedirs('%s', 0700)iÀ( R;RRRR˜Rtt    iteritemst
startswithtisdirt debug_printtmakedirs(RWRCRjR((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/command/install.pyRxGs    "cCs¤|jsU|jdƒ|jjdƒj}|jrU|tƒkrUtdƒ‚qUnx!|jƒD]}|j|ƒqbW|j    r|j
ƒn|j r|j ƒ}|j rît|j ƒ}x/tt|ƒƒD]}|||||<qÏWn|jt|j |fd|j ƒnttjjtjƒ}ttjj|ƒ}tjjtjj|jƒƒ}|jr |j    oz|j r ||kr tjd|jƒndS(NRis"Can't install when cross-compilings'writing list of installed files to '%s'sƒmodules installed to '%s', which is not in Python's module search path (sys.path) -- you'll have to change the search path yourself(RRt run_commandRptget_command_objt    plat_nameRSR
Rtget_sub_commandsR¢tcreate_path_fileRVt get_outputsRFR¡txrangetexecuteRtmapRRRŽRtnormcaseRJRQRtdebug(RWt
build_plattcmd_nametoutputstroot_lentcountertsys_pathRJ((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/command/install.pytrunTs6                        !         cCsctjj|j|jdƒ}|jrN|jt||jgfd|ƒn|j    d|ƒdS(Ns.pths creating %sspath file '%s' not created(
RRRR|R¢RQR°RR}Rk(RWtfilename((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/command/install.pyR­‚s        cCsžg}xV|jƒD]H}|j|ƒ}x0|jƒD]"}||kr5|j|ƒq5q5WqW|jrš|jrš|jtjj|j    |jdƒƒn|S(Ns.pth(
R¬tget_finalized_commandR®tappendR¢RQRRRR|(RWR¶RµtcmdR»((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/command/install.pyR®s cCsCg}x6|jƒD](}|j|ƒ}|j|jƒƒqW|S(N(R¬R¼textendt
get_inputs(RWtinputsRµR¾((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/command/install.pyRÀ s
cCs|jjƒp|jjƒS(sRReturn true if the current distribution has any Python
        modules to install.(Rpthas_pure_modulesthas_ext_modules(RW((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/command/install.pythas_lib¬scCs |jjƒS(N(Rpt has_headers(RW((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/command/install.pyRŲscCs |jjƒS(N(Rpt has_scripts(RW((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/command/install.pyRƵscCs |jjƒS(N(Rpthas_data_files(RW((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/command/install.pythas_data¸sRJRIRKRLtinstall_egg_infocCstS(N(tTrue(RW((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/command/install.pyt<lambda>ÂsN(sprefix=Nsinstallation prefix(s exec-prefix=Ns.(Unix only) prefix for platform-specific files(shome=Ns+(Unix only) home directory to install under(s install-base=Ns;base installation directory (instead of --prefix or --home)(sroot=Ns<install everything relative to this alternate root directory(sinstall-purelib=Ns;installation directory for pure Python module distributions(sinstall-platlib=Ns8installation directory for non-pure module distributions(sinstall-headers=Ns(installation directory for C/C++ headers(sinstall-scripts=Ns)installation directory for Python scripts(s install-data=Ns%installation directory for data files(scompileR=scompile .py to .pyc [default](s
no-compileNsdon't compile .py files(s    optimize=R>slalso compile with optimization: -O1 for "python -O", -O2 for "python -OO", and -O0 to disable [default: -O0](sforceR@s1force installation (overwrite any existing files)(s
skip-buildNs2skip rebuilding everything (for testing/debugging)(srecord=Ns3filename in which to record list of installed files(t__name__t
__module__t descriptionR"R R†tboolean_optionsR‡RXRRlRmRnRR›RuRwRzR{R~RxRºR­R®RÀRÄRÅRÆRÈt sub_commands(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/command/install.pyR:{s†
         M    –        +                
                   "            .                                            (spurelibsplatlibsheaderssscriptssdata(%t__doc__t    distutilsRt __revision__RRRotrettypestdistutils.coreRtdistutils.debugRtdistutils.sysconfigRtdistutils.errorsRtdistutils.file_utilRtdistutils.utilRRR    R
R tsiteR R RRR&R-RtWINDOWS_SCHEMER’R“R:(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/command/install.pyt<module>sŽ0