³ò žl‡Jc@sWdZddklZdZddkZddkZddkZddkTddkl Z ddk l Z ddk l Z dd klZdd klZdd klZlZlZdd klZdd klZeidjo7hdd<dd<dd<dd<ddefd?efd@efdAefdBdC„fgZRS(Us'install everything from build directorysprefix=sinstallation prefixs exec-prefix=s.(Unix only) prefix for platform-specific filesshome=s+(Unix only) home directory to install unders 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|_ d|_d|_d|_d|_d|_d|_d|_d|_d|_dS(Nii(tNonetprefixt exec_prefixthomet install_basetinstall_platbasetroottinstall_purelibtinstall_platlibtinstall_headerst install_libtinstall_scriptst install_dataRtoptimizet extra_pathtinstall_path_fileRt skip_buildtwarn_dirt build_baset build_libtrecord(tself((s,/sys/lib/python/distutils/command/install.pytinitialize_optionss,                    c Csî|ip|ip |io%|ip |iotdd‚n|io!|ip |io td‚ntidjo(|io|idƒd|_q¦n|i dƒtidjo|i ƒn |i ƒ|i dƒt itiƒd}td d ƒ\}}h|iiƒd <|iiƒd <|iiƒd <|d<|dd!d<|d<|d <|d<|d <|_|iƒ|i dƒ|i|id<|i|id}d|}t||ƒdjot||||ƒqqWdS(Ntinstall_(tINSTALL_SCHEMESt SCHEME_KEYSRdRtsetattr(R1RBtschemetkeytattrname((s,/sys/lib/python/distutils/command/install.pyRi¥s   cCs}xv|D]n}t||ƒ}|dj oLtidjotii|ƒ}nt||iƒ}t|||ƒqqWdS(NR3( RdRRARBRVt expanduserRRORo(R1tattrstattrRh((s,/sys/lib/python/distutils/command/install.pyt _expand_attrs®s cCs|idddgƒdS(NR R!R"(Rv(R1((s,/sys/lib/python/distutils/command/install.pyRP¸s cCs#|iddddddgƒdS(NR#R$R&R%R'R((Rv(R1((s,/sys/lib/python/distutils/command/install.pyRQ½s  cGs>x7|D]/}d|}t||tt||ƒƒƒqWdS(NRl(RoRRd(R1tnamesRBRu((s,/sys/lib/python/distutils/command/install.pyRSÆs cCsô|idjo|ii|_n|idj oŸt|iƒtjoti|idƒ|_nt|iƒdjo|id}}n3t|iƒdjo|i\}}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( R*RRKttypet StringTypeRGRHtlenR Rt path_fileRX(R1R}RX((s,/sys/lib/python/distutils/command/install.pyRTÌs  c GsDx=|D]5}d|}t||t|it||ƒƒƒqWdS(NRl(RoR R"Rd(R1RwRBRu((s,/sys/lib/python/distutils/command/install.pyRYîs c Csu|ip|idƒnx!|iƒD]}|i|ƒq(W|io|iƒn|io|iƒ}|ioBt|iƒ}x0t t|ƒƒD]}|||||\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(scompileRscompile .py to .pyc [default](s no-compileNsdon't compile .py files(s optimize=Rslalso compile with optimization: -O1 for "python -O", -O2 for "python -OO", and -O0 to disable [default: -O0](sforceRs1force 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 descriptionRR`tboolean_optionsRaR2R[RDRERFRiRvRPRQRSRTRYRŒR€RR’R–R—R˜Ršt sub_commands(((s,/sys/lib/python/distutils/command/install.pyRMs€  J  %    "  &         (spurelibsplatlibsheaderssscriptssdata(t__doc__t distutilsRt __revision__RIRARGttypestdistutils.coreRtdistutils.debugRtdistutils.sysconfigRtdistutils.errorsRtdistutils.file_utilRtdistutils.utilRRR R R RJtWINDOWS_SCHEMERmRnR(((s,/sys/lib/python/distutils/command/install.pyssj$