eaiovnaovbqoebvqoeavibavo  fc@sddlZddlmZddlmZddlmZddlmZdd dYZe ejdrdd d YZndS( iN(tglob(t convert_path(tsdist(tfiltertsdist_add_defaultscBseeZdZdZedZdZdZdZdZ dZ dZ d Z RS( s Mix-in providing forward-compatibility for functionality as found in distutils on Python 3.7. Do not edit the code in this class except to update functionality as implemented in distutils. Instead, override in the subclass. cCsJ|j|j|j|j|j|j|jdS(s9Add all the default files to self.filelist: - README or README.txt - setup.py - test/test*.py - all pure Python modules mentioned in setup script - all files pointed by package_data (build_py) - all files defined in data_files. - all files defined as scripts. - all C sources listed as part of extensions or C libraries in the setup script (doesn't catch C headers!) Warns if (README or README.txt) or setup.py are missing; everything else is optional. N(t_add_defaults_standardst_add_defaults_optionalt_add_defaults_pythont_add_defaults_data_filest_add_defaults_extt_add_defaults_c_libst_add_defaults_scripts(tself((sA/usr/lib/python2.7/site-packages/setuptools/command/py36compat.pyt add_defaultss      cCsStjj|stStjj|}tjj|\}}|tj|kS(s Case-sensitive path existence check >>> sdist_add_defaults._cs_path_exists(__file__) True >>> sdist_add_defaults._cs_path_exists(__file__.upper()) False (tostpathtexiststFalsetabspathtsplittlistdir(tfspathRt directorytfilename((sA/usr/lib/python2.7/site-packages/setuptools/command/py36compat.pyt_cs_path_exists(s cCs|j|jjg}x|D]}t|tr|}t}x7|D]/}|j|rDt}|jj |PqDqDW|s|j ddj |qq|j|r|jj |q|j d|qWdS(Ns,standard file not found: should have one of s, sstandard file '%s' not found( tREADMESt distributiont script_namet isinstancettupleRRtTruetfilelisttappendtwarntjoin(R t standardstfntaltstgot_it((sA/usr/lib/python2.7/site-packages/setuptools/command/py36compat.pyR9s    cCsLddg}x9|D]1}ttjjt|}|jj|qWdS(Ns test/test*.pys setup.cfg(RRRtisfileRRtextend(R toptionaltpatterntfiles((sA/usr/lib/python2.7/site-packages/setuptools/command/py36compat.pyRNs  cCs|jd}|jjr7|jj|jnxM|jD]B\}}}}x-|D]%}|jjtj j ||qZWqAWdS(Ntbuild_py( tget_finalized_commandRthas_pure_modulesRR(tget_source_filest data_filesR RRR"(R R,tpkgtsrc_dirt build_dirt filenamesR((sA/usr/lib/python2.7/site-packages/setuptools/command/py36compat.pyRTs  cCs|jjrx|jjD]}t|tret|}tjj|r|j j |qq|\}}x?|D]7}t|}tjj|rx|j j |qxqxWqWndS(N( Rthas_data_filesR0RtstrRRRR'RR (R titemtdirnameR4tf((sA/usr/lib/python2.7/site-packages/setuptools/command/py36compat.pyRds    cCs;|jjr7|jd}|jj|jndS(Nt build_ext(Rthas_ext_modulesR-RR(R/(R R:((sA/usr/lib/python2.7/site-packages/setuptools/command/py36compat.pyR uscCs;|jjr7|jd}|jj|jndS(Nt build_clib(Rthas_c_librariesR-RR(R/(R R<((sA/usr/lib/python2.7/site-packages/setuptools/command/py36compat.pyR zscCs;|jjr7|jd}|jj|jndS(Nt build_scripts(Rt has_scriptsR-RR(R/(R R>((sA/usr/lib/python2.7/site-packages/setuptools/command/py36compat.pyR s( t__name__t __module__t__doc__R t staticmethodRRRRRR R R (((sA/usr/lib/python2.7/site-packages/setuptools/command/py36compat.pyR s       RcBseZRS((R@RA(((sA/usr/lib/python2.7/site-packages/setuptools/command/py36compat.pyRs((( RRtdistutils.utilRtdistutils.commandRtsetuptools.extern.six.movesRRthasattr(((sA/usr/lib/python2.7/site-packages/setuptools/command/py36compat.pyts |