ó Àfc@s]ddlZddlZddlmZmZddljjZdejfd„ƒYZdS(iÿÿÿÿN(tproducttstarmapt install_libcBsneZdZd„Zd„Zd„Zed„ƒZd„Zed„ƒZ ddddd „Z d „Z RS( s9Don't add compiled flags to filenames of non-Python filescCs6|jƒ|jƒ}|dk r2|j|ƒndS(N(tbuildtinstalltNonet byte_compile(tselftoutfiles((sB/usr/lib/python2.7/site-packages/setuptools/command/install_lib.pytrun s   csG‡fd†ˆjƒDƒ}t|ˆjƒƒ}ttˆj|ƒƒS(s— Return a collections.Sized collections.Container of paths to be excluded for single_version_externally_managed installations. c3s+|]!}ˆj|ƒD] }|VqqdS(N(t _all_packages(t.0tns_pkgtpkg(R(sB/usr/lib/python2.7/site-packages/setuptools/command/install_lib.pys s(t_get_SVEM_NSPsRt_gen_exclusion_pathstsetRt_exclude_pkg_path(Rt all_packagest excl_specs((RsB/usr/lib/python2.7/site-packages/setuptools/command/install_lib.pytget_exclusionss cCs,|jdƒ|g}tjj|j|ŒS(sw Given a package name and exclusion path within that package, compute the full exclusion path. t.(tsplittostpathtjoint install_dir(RR texclusion_pathtparts((sB/usr/lib/python2.7/site-packages/setuptools/command/install_lib.pyRsccs.x'|r)|V|jdƒ\}}}qWdS(sn >>> list(install_lib._all_packages('foo.bar.baz')) ['foo.bar.baz', 'foo.bar', 'foo'] RN(t rpartition(tpkg_nametseptchild((sB/usr/lib/python2.7/site-packages/setuptools/command/install_lib.pyR 's cCs<|jjsgS|jdƒ}|j}|r8|jjSgS(s‰ Get namespace packages (list) but only for single_version_externally_managed installations and empty otherwise. R(t distributiontnamespace_packagestget_finalized_commandt!single_version_externally_managed(Rt install_cmdtsvem((sB/usr/lib/python2.7/site-packages/setuptools/command/install_lib.pyR1s   ccsidVdVdVttdƒs"dStjjddtjƒƒ}|dV|d V|d V|d VdS( sk Generate file paths to be excluded for namespace packages (bytecode cache files). s __init__.pys __init__.pycs __init__.pyotget_tagNt __pycache__s __init__.s.pycs.pyos .opt-1.pycs .opt-2.pyc(thasattrtimpRRRR'(tbase((sB/usr/lib/python2.7/site-packages/setuptools/command/install_lib.pyRAs   iic sw|jƒ‰ˆs(tjj|||ƒSddlm}ddlm‰g‰‡‡‡fd†}||||ƒˆS(Niÿÿÿÿ(tunpack_directory(tlogcsP|ˆkr ˆjd|ƒtSˆjd|tjj|ƒƒˆj|ƒ|S(Ns/Skipping installation of %s (namespace package)scopying %s -> %s(twarntFalsetinfoRRtdirnametappend(tsrctdst(texcludeR-R(sB/usr/lib/python2.7/site-packages/setuptools/command/install_lib.pytpfgs   (RtorigRt copy_treetsetuptools.archive_utilR,t distutilsR-( Rtinfiletoutfilet preserve_modetpreserve_timestpreserve_symlinkstlevelR,R6((R5R-RsB/usr/lib/python2.7/site-packages/setuptools/command/install_lib.pyR8Vs  cCsKtjj|ƒ}|jƒ}|rGg|D]}||kr+|^q+S|S(N(R7Rt get_outputsR(RtoutputsR5tf((sB/usr/lib/python2.7/site-packages/setuptools/command/install_lib.pyRAts  #( t__name__t __module__t__doc__R RRt staticmethodR RRR8RA(((sB/usr/lib/python2.7/site-packages/setuptools/command/install_lib.pyRs    ( RR*t itertoolsRRtdistutils.command.install_libtcommandRR7(((sB/usr/lib/python2.7/site-packages/setuptools/command/install_lib.pyts