ķ Āfc@sqddlZddlmZddlZddlmZejjZddd„ƒYZ de fd„ƒYZ dS( i˙˙˙˙N(tlog(tmapt Installerc Bs_eZdZd„Zd„Zd„ZdZdZd„Zd„Z d„Z e d„ƒZ RS(s -nspkg.pthcCsŗ|jƒ}|sdStjj|jƒƒ\}}||j7}|jj|ƒtj d|ƒt |j |ƒ}|j rŠt |ƒ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')s™m = 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|ƒtƒdS(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|jƒqWdS(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')s™m = 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$     tDevelopInstallercBseZd„Zd„ZRS(cCstt|jƒƒS(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   [