eaiovnaovbqoebvqoeavibavo  fc@s]ddlZddlZddlmZmZddljjZdejfdYZdS(iN(tproducttstarmapt install_libcBsneZdZdZdZdZedZdZedZ 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   csGfdjD}t|j}ttj|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   ccsidVdVdVttds"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 s|r|r| st|jsAtjj|||Sddlm}ddlmgfd}||||S(Ni(tunpack_directory(tlogcsP|kr jd|tSjd|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   ( tAssertionErrorRtorigRt copy_treetsetuptools.archive_utilR,t distutilsR-( Rtinfiletoutfilet preserve_modetpreserve_timestpreserve_symlinkstlevelR,R6((R5R-RsB/usr/lib/python2.7/site-packages/setuptools/command/install_lib.pyR9Vs  cCsKtjj|}|j}|rGg|D]}||kr+|^q+S|S(N(R8Rt get_outputsR(RtoutputsR5tf((sB/usr/lib/python2.7/site-packages/setuptools/command/install_lib.pyRBts  #( t__name__t __module__t__doc__R RRt staticmethodR RRR9RB(((sB/usr/lib/python2.7/site-packages/setuptools/command/install_lib.pyRs    ( RR*t itertoolsRRtdistutils.command.install_libtcommandRR8(((sB/usr/lib/python2.7/site-packages/setuptools/command/install_lib.pyts