ó Àfc@s?ddlZddd„ƒYZd ZeeedƒjƒdS( iÿÿÿÿNtVendorImportercBsJeZdZddd„Zed„ƒZdd„Zd„Zd„Z RS(s„ A PEP 302 meta path importer for finding optionally-vendored or otherwise naturally-installed packages from root_name. cCs7||_t|ƒ|_|p-|jddƒ|_dS(Ntexternt_vendor(t root_nametsettvendored_namestreplacet vendor_pkg(tselfRRR((s>/usr/lib/python2.7/site-packages/setuptools/extern/__init__.pyt__init__ s ccs|jdVdVdS(sL Search first the vendor package then as a natural package. t.tN(R(R((s>/usr/lib/python2.7/site-packages/setuptools/extern/__init__.pyt search_paths cCsL|j|jdƒ\}}}|r)dStt|j|jƒƒsHdS|S(s† Return self when fullname starts with root_name and the target module is one vendored through this importer. R N(t partitionRtanytmapt startswithR(Rtfullnametpathtroottbasettarget((s>/usr/lib/python2.7/site-packages/setuptools/extern/__init__.pyt find_modules cCsµ|j|jdƒ\}}}x|jD]l}yR||}t|ƒtj|}|tj|/usr/lib/python2.7/site-packages/setuptools/extern/__init__.pyt load_module#s      cCs&|tjkr"tjj|ƒndS(sR Install this importer into sys.meta_path if not already present. N(Rt meta_pathtappend(R((s>/usr/lib/python2.7/site-packages/setuptools/extern/__init__.pytinstall@s(N( t__name__t __module__t__doc__tNoneR tpropertyR RR!R$(((s>/usr/lib/python2.7/site-packages/setuptools/extern/__init__.pyRs  tsixt packagingt pyparsingssetuptools._vendor((R*R+R,(RRtnamesR%R$(((s>/usr/lib/python2.7/site-packages/setuptools/extern/__init__.pyts D