ó Àfc@s‹ddlZddlmZddlmZddlmZddlmZdd d„ƒYZe ejdƒr‡dd d „ƒYZndS( iÿÿÿÿN(tglob(t convert_path(tsdist(tfiltertsdist_add_defaultscBseeZdZd„Zed„ƒZd„Zd„Zd„Zd„Z d„Z d„Z 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ƒ|jƒdS(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|tƒr|}t}x7|D]/}|j|ƒrDt}|jj |ƒPqDqDW|sĞ|j ddj |ƒƒqĞq|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ƒ}|jjƒr7|jj|jƒƒnxM|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¾|jjƒrºx¨|jjD]—}t|tƒret|ƒ}tjj|ƒr³|j j |ƒq³q|\}}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;|jjƒr7|jdƒ}|jj|jƒƒndS(Nt build_ext(Rthas_ext_modulesR-RR(R/(R R:((sA/usr/lib/python2.7/site-packages/setuptools/command/py36compat.pyR uscCs;|jjƒr7|jdƒ}|jj|jƒƒndS(Nt build_clib(Rthas_c_librariesR-RR(R/(R R<((sA/usr/lib/python2.7/site-packages/setuptools/command/py36compat.pyR zscCs;|jjƒr7|jdƒ}|jj|jƒƒndS(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.pyR‡s((( RRtdistutils.utilRtdistutils.commandRtsetuptools.extern.six.movesRRthasattr(((sA/usr/lib/python2.7/site-packages/setuptools/command/py36compat.pyts |