ó 9aÉcc@s]ddlZddlZddlmZmZddljjZdejfd„ƒYZdS(iÿÿÿÿN(tproducttstarmapt install_libcBs€eZdZd„Zd„Zd„Zd„Zd„Zed„ƒZ d„Z ed„ƒZ d d d d d „Z d „Z RS( s9Don't add compiled flags to filenames of non-Python filescCs&tjj|ƒd|_d|_dS(N(torigRtinitialize_optionstNonet multiarchtinstall_layout(tself((sB/usr/lib/python2.7/dist-packages/setuptools/command/install_lib.pyR s cCsgtjj|ƒ|jddƒ|jdkrctjd d krcddl}|jdƒ|_ ndS( NtinstallRtdebiiiÿÿÿÿt MULTIARCH(RR(ii( RRtfinalize_optionstset_undefined_optionsRtsyst version_infot sysconfigtget_config_varR(RR((sB/usr/lib/python2.7/dist-packages/setuptools/command/install_lib.pyR s " cCs6|jƒ|jƒ}|dk r2|j|ƒndS(N(tbuildR Rt byte_compile(Rtoutfiles((sB/usr/lib/python2.7/dist-packages/setuptools/command/install_lib.pytruns   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/dist-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/dist-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(RRtexclusion_pathtparts((sB/usr/lib/python2.7/dist-packages/setuptools/command/install_lib.pyR+sccs.x'|r)|V|jdƒ\}}}qWdS(sn >>> list(install_lib._all_packages('foo.bar.baz')) ['foo.bar.baz', 'foo.bar', 'foo'] R!N(t rpartition(tpkg_nametseptchild((sB/usr/lib/python2.7/dist-packages/setuptools/command/install_lib.pyR3s 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/dist-packages/setuptools/command/install_lib.pyR=s   ccsidVdVdVttdƒs"dStjjddtjjƒ}|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__.pyotimplementationNt __pycache__s __init__.s.pycs.pyos .opt-1.pycs .opt-2.pyc(thasattrRR#R$R%R3t cache_tag(tbase((sB/usr/lib/python2.7/dist-packages/setuptools/command/install_lib.pyRMs   iic s|r|r| st‚ˆjƒ‰ˆs\ddl}ˆj|j_tjjˆ||ƒSddl m }ddl m ‰g‰ˆjrêddl } | jdƒ‰ˆjˆjˆdƒrÉd‰qêdˆd ˆjˆdf‰n‡‡‡‡‡‡fd†} |||| ƒˆS(Niÿÿÿÿ(tunpack_directory(tlogt EXT_SUFFIXiýÿÿÿs%s-%s%scs¯|ˆkr ˆjd|ƒtSˆjrˆr|jˆƒr|jˆƒ r|jˆˆƒ}ˆjdtjj|ƒƒnˆjd|tjj |ƒƒˆj |ƒ|S(Ns/Skipping installation of %s (namespace package)srenaming extension to %sscopying %s -> %s( twarntFalseRtendswithtreplacetinfoR#R$tbasenametdirnametappend(tsrctdst(texcludet ext_suffixR9t new_suffixRR(sB/usr/lib/python2.7/dist-packages/setuptools/command/install_lib.pytpf}s  . (tAssertionErrorR tdistutils.dir_utilRtdir_utilt _multiarchRRt copy_treetsetuptools.archive_utilR8t distutilsR9RRR=R( Rtinfiletoutfilet preserve_modetpreserve_timestpreserve_symlinkstlevelROR8RRH((RERFR9RGRRsB/usr/lib/python2.7/dist-packages/setuptools/command/install_lib.pyRMbs$     !cCsKtjj|ƒ}|jƒ}|rGg|D]}||kr+|^q+S|S(N(RRt get_outputsR (RtoutputsREtf((sB/usr/lib/python2.7/dist-packages/setuptools/command/install_lib.pyRVŽs  #(t__name__t __module__t__doc__RR RR Rt staticmethodRRRRMRV(((sB/usr/lib/python2.7/dist-packages/setuptools/command/install_lib.pyRs      *( R#Rt itertoolsRRtdistutils.command.install_libtcommandRR(((sB/usr/lib/python2.7/dist-packages/setuptools/command/install_lib.pyts