usr/lib/python2.7/site-packages/setuptools/namespaces.pyo000064400000011651147205143170017514 0ustar00 fc@sqddlZddlmZddlZddlmZejjZdddYZ de fdYZ dS( iN(tlog(tmapt Installerc Bs_eZdZdZdZdZdZdZdZdZ dZ e dZ RS(s -nspkg.pthcCs|j}|sdStjj|j\}}||j7}|jj|tj d|t |j |}|j rt |dSt|d}|j|WdQXdS(Ns Installing %stwt(t_get_all_ns_packagestostpathtsplitextt _get_targett nspkg_exttoutputstappendRtinfoRt_gen_nspkg_linetdry_runtlisttopent writelines(tselftnsptfilenametexttlinestf((s9/usr/lib/python2.7/site-packages/setuptools/namespaces.pytinstall_namespacess    cCsbtjj|j\}}||j7}tjj|sAdStjd|tj|dS(Ns Removing %s( RRRRR texistsRR tremove(RRR((s9/usr/lib/python2.7/site-packages/setuptools/namespaces.pytuninstall_namespaces!s  cCs|jS(N(ttarget(R((s9/usr/lib/python2.7/site-packages/setuptools/namespaces.pyR)ssimport sys, types, oss#has_mfs = sys.version_info > (3, 5)s$p = os.path.join(%(root)s, *%(pth)r)s4importlib = has_mfs and __import__('importlib.util')s-has_mfs and __import__('importlib.machinery')sm = has_mfs and sys.modules.setdefault(%(pkg)r, importlib.util.module_from_spec(importlib.machinery.PathFinder.find_spec(%(pkg)r, [os.path.dirname(p)])))sCm = m or sys.modules.setdefault(%(pkg)r, types.ModuleType(%(pkg)r))s7mp = (m or []) and m.__dict__.setdefault('__path__',[])s(p not in mp) and mp.append(p)s4m and setattr(sys.modules[%(parent)r], %(child)r, m)cCsdS(Ns$sys._getframe(1).f_locals['sitedir']((R((s9/usr/lib/python2.7/site-packages/setuptools/namespaces.pyt _get_rootCscCs|t|}t|jd}|j}|j}|jd\}}}|rd||j7}ndj|tdS(Nt.t;s ( tstrttupletsplitRt _nspkg_tmplt rpartitiont_nspkg_tmpl_multitjointlocals(Rtpkgtpthtroott tmpl_linestparenttseptchild((s9/usr/lib/python2.7/site-packages/setuptools/namespaces.pyR Fs   cCs.|jjpg}ttt|j|S(s,Return sorted list of all package namespaces(t distributiontnamespace_packagestsortedtflattenRt _pkg_names(Rtpkgs((s9/usr/lib/python2.7/site-packages/setuptools/namespaces.pyRQsccs8|jd}x"|r3dj|V|jqWdS(s Given a namespace package, yield the components of that package. >>> names = Installer._pkg_names('a.b.c') >>> set(names) == set(['a', 'a.b', 'a.b.c']) True RN(R"R&tpop(R(tparts((s9/usr/lib/python2.7/site-packages/setuptools/namespaces.pyR3Vs  ( simport sys, types, oss#has_mfs = sys.version_info > (3, 5)s$p = os.path.join(%(root)s, *%(pth)r)s4importlib = has_mfs and __import__('importlib.util')s-has_mfs and __import__('importlib.machinery')sm = has_mfs and sys.modules.setdefault(%(pkg)r, importlib.util.module_from_spec(importlib.machinery.PathFinder.find_spec(%(pkg)r, [os.path.dirname(p)])))sCm = m or sys.modules.setdefault(%(pkg)r, types.ModuleType(%(pkg)r))s7mp = (m or []) and m.__dict__.setdefault('__path__',[])s(p not in mp) and mp.append(p)(s4m and setattr(sys.modules[%(parent)r], %(child)r, m)( t__name__t __module__R RRRR#R%RR Rt staticmethodR3(((s9/usr/lib/python2.7/site-packages/setuptools/namespaces.pyR s$     tDevelopInstallercBseZdZdZRS(cCstt|jS(N(treprR tegg_path(R((s9/usr/lib/python2.7/site-packages/setuptools/namespaces.pyRgscCs|jS(N(tegg_link(R((s9/usr/lib/python2.7/site-packages/setuptools/namespaces.pyRjs(R7R8RR(((s9/usr/lib/python2.7/site-packages/setuptools/namespaces.pyR:fs (( Rt distutilsRt itertoolstsetuptools.extern.six.movesRtchaint from_iterableR2RR:(((s9/usr/lib/python2.7/site-packages/setuptools/namespaces.pyts   [