MCPcopy Index your code
hub / github.com/davispuh/MySQL-for-Python-3 / _do_download

Function _do_download

distribute_setup.py:119–128  ·  view source on GitHub ↗
(version, download_base, to_dir, download_delay)

Source from the content-addressed store, hash-verified

117
118
119def _do_download(version, download_base, to_dir, download_delay):
120 egg = os.path.join(to_dir, 'distribute-%s-py%d.%d.egg'
121 % (version, sys.version_info[0], sys.version_info[1]))
122 if not os.path.exists(egg):
123 tarball = download_setuptools(version, download_base,
124 to_dir, download_delay)
125 _build_egg(egg, tarball, to_dir)
126 sys.path.insert(0, egg)
127 import setuptools
128 setuptools.bootstrap_install_from = egg
129
130
131def use_setuptools(version=DEFAULT_VERSION, download_base=DEFAULT_URL,

Callers 1

use_setuptoolsFunction · 0.85

Calls 2

download_setuptoolsFunction · 0.85
_build_eggFunction · 0.85

Tested by

no test coverage detected