Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
B

i”c;èc~ã@sRddlZddlmZddlZddlmZejjZGdd„dƒZ	Gdd„de	ƒZ
dS)éN)Úlog)Úmapc@sTeZdZdZdd„Zdd„Zdd„ZdZd	Zd
d„Z	dd
„Z
dd„Zedd„ƒZ
dS)Ú	Installerz
-nspkg.pthc	Csˆ| ¡}|sdStj | ¡¡\}}||j7}|j |¡t 	d|¡t
|j|ƒ}|jrdt
|ƒdSt|dƒ}| |¡WdQRXdS)Nz
Installing %sÚwt)Ú_get_all_ns_packagesÚosÚpathÚsplitextÚ_get_targetÚ	nspkg_extÚoutputsÚappendrÚinforÚ_gen_nspkg_lineÚdry_runÚlistÚopenÚ
writelines)ÚselfÚnspÚfilenameÚextÚlinesÚf©rú=/tmp/pip-install-5x7thzyg/setuptools/setuptools/namespaces.pyÚinstall_namespacess
zInstaller.install_namespacescCsHtj | ¡¡\}}||j7}tj |¡s.dSt d|¡t |¡dS)NzRemoving %s)	rrr	r
rÚexistsrrÚremove)rrrrrrÚuninstall_namespaces!s
zInstaller.uninstall_namespacescCs|jS)N)Útarget)rrrrr
)szInstaller._get_target)	zimport sys, types, osz#has_mfs = sys.version_info > (3, 5)z$p = os.path.join(%(root)s, *%(pth)r)z4importlib = has_mfs and __import__('importlib.util')z-has_mfs and __import__('importlib.machinery')z™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)])))zCm = m or sys.modules.setdefault(%(pkg)r, types.ModuleType(%(pkg)r))z7mp = (m or []) and m.__dict__.setdefault('__path__',[])z(p not in mp) and mp.append(p))z4m and setattr(sys.modules[%(parent)r], %(child)r, m)cCsdS)Nz$sys._getframe(1).f_locals['sitedir']r)rrrrÚ	_get_rootCszInstaller._get_rootcCsVt|ƒ}t| d¡ƒ}| ¡}|j}| d¡\}}}|rB||j7}d |¡tƒdS)NÚ.ú;Ú
)	ÚstrÚtupleÚsplitr!Ú_nspkg_tmplÚ
rpartitionÚ_nspkg_tmpl_multiÚjoinÚlocals)rÚpkgÚpthÚrootZ
tmpl_linesÚparentÚsepÚchildrrrrFs
zInstaller._gen_nspkg_linecCs |jjp
g}ttt|j|ƒƒƒS)z,Return sorted list of all package namespaces)ÚdistributionZnamespace_packagesÚsortedÚflattenrÚ
_pkg_names)rÚpkgsrrrrQszInstaller._get_all_ns_packagesccs,| d¡}x|r&d |¡V| ¡qWdS)zÏ
        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
        r"N)r'r+Úpop)r-Úpartsrrrr6Vs

zInstaller._pkg_namesN)Ú__name__Ú
__module__Ú__qualname__rrrr
r(r*r!rrÚstaticmethodr6rrrrrsrc@seZdZdd„Zdd„ZdS)ÚDevelopInstallercCstt|jƒƒS)N)Úreprr%Zegg_path)rrrrr!gszDevelopInstaller._get_rootcCs|jS)N)Úegg_link)rrrrr
jszDevelopInstaller._get_targetN)r:r;r<r!r
rrrrr>fsr>)rÚ	distutilsrÚ	itertoolsZsetuptools.extern.six.movesrÚchainÚ
from_iterabler5rr>rrrrÚ<module>s[