b-Qc@s6ddlmZddlZdefdYZdS(i(t install_libNRcBsGeZdZdZdZdZdddddZdZRS(s9Don't add compiled flags to filenames of non-Python filescCspg}xc|D][}|jds(q n|jrE|j|dn|jdkr |j|dq q W|S(Ns.pytcito(tendswithtcompiletappendtoptimize(tselft py_filenamestbytecode_filestpy_file((sB/usr/lib/python2.7/site-packages/setuptools/command/install_lib.pyt_bytecode_filenamess  cCs6|j|j}|dk r2|j|ndS(N(tbuildtinstalltNonet byte_compile(Rtoutfiles((sB/usr/lib/python2.7/site-packages/setuptools/command/install_lib.pytruns   cCsi}|jj}|r|jdjrxy|D]n}|jd}xV|rtjj|j|}x'dD]}d|tjj||tj|||Sddlm}ddlmgfd}||||S(Ni(tunpack_directory(tlogcsP|kr jd|tSjd|tjj|j||S(Ns/Skipping installation of %s (namespace package)scopying %s -> %s(twarntFalsetinfoRRtdirnameR(tsrctdst(RR%R(sB/usr/lib/python2.7/site-packages/setuptools/command/install_lib.pytpf;s   (tAssertionErrorR#t _install_libt copy_treetsetuptools.archive_utilR$t distutilsR%( Rtinfiletoutfilet preserve_modetpreserve_timestpreserve_symlinkstlevelR$R,((RR%RsB/usr/lib/python2.7/site-packages/setuptools/command/install_lib.pyR/*s  cCsHtj|}|j}|rDg|D]}||kr(|^q(S|S(N(R.t get_outputsR#(RtoutputsRR"((sB/usr/lib/python2.7/site-packages/setuptools/command/install_lib.pyR8Gs  #(t__name__t __module__t__doc__R RR#R/R8(((sB/usr/lib/python2.7/site-packages/setuptools/command/install_lib.pyRs   (tdistutils.command.install_libRR.R(((sB/usr/lib/python2.7/site-packages/setuptools/command/install_lib.pyts