Ńņ §ŚźLc@sŁdZddklZdZddkZddkZddkZddkTddkl Z ddk l Z ddk l Z dd klZdd klZdd klZlZlZdd klZdd klZddklZddklZeidjo-hdd6dd6dd6dd6dd6Zn*hdd6dd6dd6dd6dd6Zh hdd6dd6dd6dd6dd6d6hdd6d d6d!d6dd6dd6d"6hd#d6d#d6d$d6d%d6d&d6d'6ed(6hd#d6d#d6d)d6d*d6d&d6d+6hdd6dd6dd6dd6dd6d,6hd#d6d#d6d-d6d%d6d&d6d.6hdd6dd6dd6dd6dd6d/6hd#d6d#d6d$d6d%d6d&d6d06Zd3Zd1e fd2„ƒYZdS(4sFdistutils.command.install Implements the Distutils 'install' command.i’’’’(tlogs=$Id: install.py 62788 2008-05-06 22:41:46Z christian.heimes $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_SITEs2.2s$basetpurelibtplatlibs$base/Include/$dist_nametheaderss $base/Scriptstscriptstdatas$base/Lib/site-packagess/$base/lib/python$py_version_short/site-packagess5$platbase/lib64/python$py_version_short/site-packagess0$base/include/python$py_version_short/$dist_names $base/bint unix_prefixs$base/lib/pythons$base/lib64/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_usertmacs.$userbase/$py_version_short/include/$dist_nametmac_usertos2tos2_hometinstallcBs†eZdZdHdIdJddGdefdKd dGd d fdLdMdNddGddfdOdPdQdRdSdTdUdVdWgZdd%d(dgZhdd 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(tNonetprefixt exec_prefixthomeRt install_basetinstall_platbasetroottinstall_purelibtinstall_platlibtinstall_headerst install_libtinstall_scriptst install_dataR tinstall_userbaseR tinstall_usersiteRtoptimizet extra_pathtinstall_path_fileR!t skip_buildtwarn_dirt build_baset build_libtrecord(tself((s1/usr/lib64/python2.6/distutils/command/install.pytinitialize_options±s2                       c Csm|ip|ip |io%|ip |iotdd‚n|io!|ip |io td‚n|ioB|ip(|ip|ip|ip |iotdƒ‚ntidjo(|io|i dƒd|_qņn|i dƒtidjo|i ƒn |i ƒ|i dƒtitiƒd }td d ƒ\}}h |iiƒd 6|iiƒd 6|iiƒd6|d6|d d!d6|d |dd6|d6|d 6|d6|d 6|id6|id6|_|iƒ|i dƒ|i|id<|i|id}d|}t||ƒdjot||||ƒqqWdS(Ntinstall_(tINSTALL_SCHEMESt SCHEME_KEYSRpR#tsetattr(R:RNtschemetkeytattrname((s1/usr/lib64/python2.6/distutils/command/install.pyRuās   cCsx†|D]~}t||ƒ}|dj o\tidjptidjotii|ƒ}nt||iƒ}t|||ƒqqWdS(NR<R( RpR#RMRNRct expanduserRR[R|(R:tattrstattrRt((s1/usr/lib64/python2.6/distutils/command/install.pyt _expand_attrsės  cCs|idddgƒdS(NR'R(R)(Rƒ(R:((s1/usr/lib64/python2.6/distutils/command/install.pyR\õs cCs#|iddddddgƒdS(NR*R+R-R,R.R/(Rƒ(R:((s1/usr/lib64/python2.6/distutils/command/install.pyR]śs  cGs>x7|D]/}d|}t||tt||ƒƒƒqWdS(NRy(R|RRp(R:tnamesRNR‚((s1/usr/lib64/python2.6/distutils/command/install.pyR`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( R3R#RWttypet StringTypeRSRTtlenR Rt path_fileRe(R:RŠRe((s1/usr/lib64/python2.6/distutils/command/install.pyRa s  c GsDx=|D]5}d|}t||t|it||ƒƒƒqWdS(NRy(R|R R)Rp(R:R„RNR‚((s1/usr/lib64/python2.6/distutils/command/install.pyRf+s cCs”|ipdSttiidƒƒ}xf|iiƒD]U\}}|i|ƒo9tii|ƒ o%|i d|ƒti |dƒq7q7WdS(s#Create directories under ~ Nt~sos.makedirs('%s', 0700)iĄ( RRRMRcR€R[t iteritemst startswithtisdirt debug_printtmakedirs(R:R&RNRc((s1/usr/lib64/python2.6/distutils/command/install.pyR^0s  $c Cs“|ipP|idƒ|iidƒi}|io |tƒjotdƒ‚qZnx!|iƒD]}|i|ƒqgW|i o|i ƒn|i o|i ƒ}|i oBt|i ƒ}x0tt|ƒƒ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=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 Rmtboolean_optionsRnR;RhRPRQRRRuRƒR\R]R`RaRfR^R¢R•R–RØR¬R­R®R°t sub_commands(((s1/usr/lib64/python2.6/distutils/command/install.pyRls†    M Ž  +    "  .         (spurelibsplatlibsheaderssscriptssdata( t__doc__t distutilsRt __revision__RURMRSttypestdistutils.coreRtdistutils.debugRtdistutils.sysconfigRtdistutils.errorsRtdistutils.file_utilRtdistutils.utilRRR R R tsiteR R RVtWINDOWS_SCHEMERzR{R(((s1/usr/lib64/python2.6/distutils/command/install.pytsž$