com.googler.python 1.0.7 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -2
- package/python3.4.2/lib/python3.4/site-packages/pip/__init__.py +1 -277
- package/python3.4.2/lib/python3.4/site-packages/pip/__main__.py +19 -7
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/__init__.py +246 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/basecommand.py +373 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/{baseparser.py → _internal/baseparser.py} +240 -224
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/build_env.py +92 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/cache.py +202 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/cmdoptions.py +609 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/__init__.py +79 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/check.py +42 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/completion.py +94 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/configuration.py +227 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/download.py +233 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/freeze.py +96 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/hash.py +57 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/{commands → _internal/commands}/help.py +36 -33
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/install.py +477 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/list.py +343 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/search.py +135 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/show.py +164 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/uninstall.py +71 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/wheel.py +179 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/compat.py +235 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/configuration.py +378 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/download.py +922 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/exceptions.py +249 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/index.py +1117 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/locations.py +194 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/models/__init__.py +4 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/models/index.py +15 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/{_vendor/requests/packages/urllib3/contrib → _internal/operations}/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/operations/check.py +106 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/operations/freeze.py +252 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/operations/prepare.py +378 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/pep425tags.py +317 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/req/__init__.py +69 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/req/req_file.py +338 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/req/req_install.py +1115 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/req/req_set.py +164 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/req/req_uninstall.py +455 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/resolve.py +354 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/{status_codes.py → _internal/status_codes.py} +8 -6
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/appdirs.py +258 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/deprecation.py +77 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/encoding.py +33 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/filesystem.py +28 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/glibc.py +84 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/hashes.py +94 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/logging.py +132 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/misc.py +851 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/outdated.py +163 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/packaging.py +70 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/setuptools_build.py +8 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/temp_dir.py +82 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/typing.py +29 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/ui.py +421 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/vcs/__init__.py +471 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/vcs/bazaar.py +113 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/vcs/git.py +311 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/vcs/mercurial.py +105 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/vcs/subversion.py +271 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/wheel.py +817 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/__init__.py +109 -8
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/appdirs.py +604 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/__init__.py +11 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/_cmd.py +60 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/adapter.py +134 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/cache.py +39 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/caches/__init__.py +2 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/caches/file_cache.py +133 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/caches/redis_cache.py +43 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/compat.py +29 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/controller.py +373 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/filewrapper.py +78 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/heuristics.py +138 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/serialize.py +194 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/wrapper.py +27 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/certifi/__init__.py +3 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/certifi/__main__.py +2 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests → certifi}/cacert.pem +1765 -2358
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/certifi/core.py +37 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/__init__.py +39 -32
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/big5freq.py +386 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/big5prober.py +47 -42
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/chardistribution.py +233 -231
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/charsetgroupprober.py +106 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/charsetprober.py +145 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/cli/__init__.py +1 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/cli/chardetect.py +85 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/codingstatemachine.py +88 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/compat.py +34 -34
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/cp949prober.py +49 -44
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/enums.py +76 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/escprober.py +101 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/escsm.py +246 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/eucjpprober.py +92 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/euckrfreq.py +195 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/euckrprober.py +47 -42
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/euctwfreq.py +387 -428
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/euctwprober.py +46 -41
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/gb2312freq.py +283 -472
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/gb2312prober.py +46 -41
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/hebrewprober.py +292 -283
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/jisfreq.py +325 -569
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/jpcntx.py +233 -219
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/langbulgarianmodel.py +228 -229
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/langcyrillicmodel.py +333 -329
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/langgreekmodel.py +225 -225
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/langhebrewmodel.py +200 -201
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/langhungarianmodel.py +225 -225
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/langthaimodel.py +199 -200
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/langturkishmodel.py +193 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/latin1prober.py +145 -139
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/mbcharsetprober.py +91 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/mbcsgroupprober.py +54 -54
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/mbcssm.py +572 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/sbcharsetprober.py +132 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/sbcsgroupprober.py +73 -69
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/sjisprober.py +92 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/universaldetector.py +286 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/utf8prober.py +82 -76
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/version.py +9 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/__init__.py +7 -7
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/ansi.py +102 -50
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/ansitowin32.py +236 -190
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/initialise.py +82 -56
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/win32.py +156 -137
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/winterm.py +162 -120
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/__init__.py +23 -23
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/__init__.py +6 -6
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/misc.py +41 -41
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/shutil.py +761 -761
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/sysconfig.cfg +84 -84
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/sysconfig.py +788 -788
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/tarfile.py +2607 -2607
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/compat.py +1117 -1064
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/database.py +1318 -1301
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/index.py +516 -488
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/locators.py +1292 -1194
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/manifest.py +393 -364
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/markers.py +131 -190
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/metadata.py +1068 -1026
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/resources.py +355 -317
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/scripts.py +415 -323
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/t32.exe +0 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/t64.exe +0 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/util.py +1755 -1575
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/version.py +736 -721
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/w32.exe +0 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/w64.exe +0 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/wheel.py +984 -958
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distro.py +1104 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/__init__.py +35 -23
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/{ihatexml.py → _ihatexml.py} +288 -285
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/{inputstream.py → _inputstream.py} +923 -881
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/{tokenizer.py → _tokenizer.py} +1721 -1731
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/{trie → _trie}/__init__.py +14 -12
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/{trie → _trie}/_base.py +37 -37
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/{trie → _trie}/datrie.py +44 -44
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/{trie → _trie}/py.py +67 -67
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/{utils.py → _utils.py} +124 -82
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/constants.py +2947 -3104
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/alphabeticalattributes.py +29 -20
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/{_base.py → base.py} +12 -12
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/inject_meta_charset.py +73 -65
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/lint.py +93 -93
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/optionaltags.py +207 -205
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/sanitizer.py +896 -12
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/whitespace.py +38 -38
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/html5parser.py +2791 -2713
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/serializer.py +409 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treeadapters/__init__.py +30 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treeadapters/genshi.py +54 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treeadapters/sax.py +50 -44
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/__init__.py +88 -76
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/{_base.py → base.py} +417 -377
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/dom.py +236 -227
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/etree.py +340 -337
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/etree_lxml.py +366 -369
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/__init__.py +154 -57
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/{_base.py → base.py} +252 -200
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/dom.py +43 -46
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/etree.py +130 -138
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/{lxmletree.py → etree_lxml.py} +213 -208
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/{genshistream.py → genshi.py} +69 -69
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/idna/__init__.py +2 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/idna/codec.py +118 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/idna/compat.py +12 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/idna/core.py +387 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/idna/idnadata.py +1585 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/idna/intranges.py +53 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/idna/package_data.py +2 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/idna/uts46data.py +7634 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/ipaddress.py +2419 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/lockfile/__init__.py +347 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/lockfile/linklockfile.py +73 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/lockfile/mkdirlockfile.py +84 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/lockfile/pidlockfile.py +190 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/lockfile/sqlitelockfile.py +156 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/lockfile/symlinklockfile.py +70 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/msgpack/__init__.py +66 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/msgpack/_version.py +1 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/msgpack/exceptions.py +41 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/msgpack/fallback.py +971 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/__about__.py +21 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/__init__.py +14 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/_compat.py +30 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/_structures.py +70 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/markers.py +301 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/requirements.py +130 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/specifiers.py +774 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/utils.py +63 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/version.py +441 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{pkg_resources.py → pkg_resources/__init__.py} +3125 -2762
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/pkg_resources/py31compat.py +22 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/progress/__init__.py +127 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/progress/bar.py +88 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/progress/counter.py +48 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/progress/helpers.py +91 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/progress/spinner.py +44 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/pyparsing.py +5720 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/pytoml/__init__.py +3 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/pytoml/core.py +13 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/pytoml/parser.py +374 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/pytoml/writer.py +127 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/__init__.py +123 -77
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/__version__.py +14 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/_internal_utils.py +42 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/adapters.py +525 -388
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/api.py +152 -120
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/auth.py +293 -193
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/certs.py +18 -24
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/compat.py +73 -115
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/cookies.py +542 -454
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/exceptions.py +122 -75
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/help.py +120 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/hooks.py +34 -45
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/models.py +948 -803
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages.py +16 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/sessions.py +737 -637
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/status_codes.py +91 -88
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/structures.py +105 -127
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/utils.py +904 -673
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/retrying.py +267 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/six.py +891 -646
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/__init__.py +97 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/_collections.py +319 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/connection.py +373 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/connectionpool.py +905 -710
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/contrib/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/contrib/_securetransport/bindings.py +593 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/contrib/_securetransport/low_level.py +343 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/contrib/appengine.py +296 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/contrib/ntlmpool.py +112 -120
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py +455 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/contrib/securetransport.py +810 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/contrib/socks.py +188 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/exceptions.py +246 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/fields.py +178 -177
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/filepost.py +94 -100
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/packages/__init__.py +5 -4
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/packages/backports/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/packages/backports/makefile.py +53 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/packages/ordered_dict.py +259 -260
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/packages/six.py +868 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/packages/ssl_match_hostname/__init__.py +19 -13
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/packages/ssl_match_hostname/_implementation.py +157 -105
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/poolmanager.py +440 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/request.py +148 -141
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/response.py +626 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/util/__init__.py +54 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/util/connection.py +130 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/util/request.py +118 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/util/response.py +81 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/util/retry.py +401 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/util/selectors.py +581 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/util/ssl_.py +341 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/util/timeout.py +242 -234
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/util/url.py +230 -162
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/util/wait.py +40 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/webencodings/__init__.py +342 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/webencodings/labels.py +231 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/webencodings/mklabels.py +59 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/webencodings/tests.py +153 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/webencodings/x_user_defined.py +325 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/_markerlib/__init__.py +0 -16
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/_markerlib/markers.py +0 -119
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/sanitizer.py +0 -271
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/serializer/__init__.py +0 -16
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/serializer/htmlserializer.py +0 -320
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/pulldom.py +0 -63
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/re-vendor.py +0 -34
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/__init__.py +0 -3
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/big5freq.py +0 -925
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/chardetect.py +0 -46
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/charsetgroupprober.py +0 -106
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/charsetprober.py +0 -62
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/codingstatemachine.py +0 -61
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/constants.py +0 -39
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/escprober.py +0 -86
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/escsm.py +0 -242
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/eucjpprober.py +0 -90
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/euckrfreq.py +0 -596
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/mbcharsetprober.py +0 -86
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/mbcssm.py +0 -575
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/sbcharsetprober.py +0 -120
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/sjisprober.py +0 -91
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/universaldetector.py +0 -170
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/__init__.py +0 -58
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/_collections.py +0 -205
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/connection.py +0 -204
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/contrib/pyopenssl.py +0 -422
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/exceptions.py +0 -126
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/packages/six.py +0 -385
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/poolmanager.py +0 -258
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/response.py +0 -308
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/__init__.py +0 -27
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/connection.py +0 -45
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/request.py +0 -68
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/response.py +0 -13
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py +0 -133
- package/python3.4.2/lib/python3.4/site-packages/pip/backwardcompat/__init__.py +0 -138
- package/python3.4.2/lib/python3.4/site-packages/pip/basecommand.py +0 -201
- package/python3.4.2/lib/python3.4/site-packages/pip/cmdoptions.py +0 -371
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/__init__.py +0 -88
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/bundle.py +0 -42
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/completion.py +0 -59
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/freeze.py +0 -114
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/install.py +0 -314
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/list.py +0 -162
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/search.py +0 -132
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/show.py +0 -80
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/uninstall.py +0 -59
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/unzip.py +0 -7
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/wheel.py +0 -195
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/zip.py +0 -351
- package/python3.4.2/lib/python3.4/site-packages/pip/download.py +0 -644
- package/python3.4.2/lib/python3.4/site-packages/pip/exceptions.py +0 -46
- package/python3.4.2/lib/python3.4/site-packages/pip/index.py +0 -990
- package/python3.4.2/lib/python3.4/site-packages/pip/locations.py +0 -171
- package/python3.4.2/lib/python3.4/site-packages/pip/log.py +0 -276
- package/python3.4.2/lib/python3.4/site-packages/pip/pep425tags.py +0 -102
- package/python3.4.2/lib/python3.4/site-packages/pip/req.py +0 -1931
- package/python3.4.2/lib/python3.4/site-packages/pip/runner.py +0 -18
- package/python3.4.2/lib/python3.4/site-packages/pip/util.py +0 -720
- package/python3.4.2/lib/python3.4/site-packages/pip/vcs/__init__.py +0 -251
- package/python3.4.2/lib/python3.4/site-packages/pip/vcs/bazaar.py +0 -131
- package/python3.4.2/lib/python3.4/site-packages/pip/vcs/git.py +0 -194
- package/python3.4.2/lib/python3.4/site-packages/pip/vcs/mercurial.py +0 -151
- package/python3.4.2/lib/python3.4/site-packages/pip/vcs/subversion.py +0 -273
- package/python3.4.2/lib/python3.4/site-packages/pip/wheel.py +0 -560
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
"""Locations where we look for configs, install stuff, etc"""
|
|
2
|
-
|
|
3
|
-
import sys
|
|
4
|
-
import site
|
|
5
|
-
import os
|
|
6
|
-
import tempfile
|
|
7
|
-
from distutils.command.install import install, SCHEME_KEYS
|
|
8
|
-
import getpass
|
|
9
|
-
from pip.backwardcompat import get_python_lib, get_path_uid, user_site
|
|
10
|
-
import pip.exceptions
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
DELETE_MARKER_MESSAGE = '''\
|
|
14
|
-
This file is placed here by pip to indicate the source was put
|
|
15
|
-
here by pip.
|
|
16
|
-
|
|
17
|
-
Once this package is successfully installed this source code will be
|
|
18
|
-
deleted (unless you remove this file).
|
|
19
|
-
'''
|
|
20
|
-
PIP_DELETE_MARKER_FILENAME = 'pip-delete-this-directory.txt'
|
|
21
|
-
|
|
22
|
-
def write_delete_marker_file(directory):
|
|
23
|
-
"""
|
|
24
|
-
Write the pip delete marker file into this directory.
|
|
25
|
-
"""
|
|
26
|
-
filepath = os.path.join(directory, PIP_DELETE_MARKER_FILENAME)
|
|
27
|
-
marker_fp = open(filepath, 'w')
|
|
28
|
-
marker_fp.write(DELETE_MARKER_MESSAGE)
|
|
29
|
-
marker_fp.close()
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
def running_under_virtualenv():
|
|
33
|
-
"""
|
|
34
|
-
Return True if we're running inside a virtualenv, False otherwise.
|
|
35
|
-
|
|
36
|
-
"""
|
|
37
|
-
if hasattr(sys, 'real_prefix'):
|
|
38
|
-
return True
|
|
39
|
-
elif sys.prefix != getattr(sys, "base_prefix", sys.prefix):
|
|
40
|
-
return True
|
|
41
|
-
|
|
42
|
-
return False
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
def virtualenv_no_global():
|
|
46
|
-
"""
|
|
47
|
-
Return True if in a venv and no system site packages.
|
|
48
|
-
"""
|
|
49
|
-
#this mirrors the logic in virtualenv.py for locating the no-global-site-packages.txt file
|
|
50
|
-
site_mod_dir = os.path.dirname(os.path.abspath(site.__file__))
|
|
51
|
-
no_global_file = os.path.join(site_mod_dir, 'no-global-site-packages.txt')
|
|
52
|
-
if running_under_virtualenv() and os.path.isfile(no_global_file):
|
|
53
|
-
return True
|
|
54
|
-
|
|
55
|
-
def __get_username():
|
|
56
|
-
""" Returns the effective username of the current process. """
|
|
57
|
-
if sys.platform == 'win32':
|
|
58
|
-
return getpass.getuser()
|
|
59
|
-
return os.getenv("USER")
|
|
60
|
-
|
|
61
|
-
def _get_build_prefix():
|
|
62
|
-
""" Returns a safe build_prefix """
|
|
63
|
-
path = os.path.join(tempfile.gettempdir(), 'pip_build_%s' %
|
|
64
|
-
__get_username())
|
|
65
|
-
if sys.platform == 'win32':
|
|
66
|
-
""" on windows(tested on 7) temp dirs are isolated """
|
|
67
|
-
return path
|
|
68
|
-
try:
|
|
69
|
-
os.mkdir(path)
|
|
70
|
-
write_delete_marker_file(path)
|
|
71
|
-
except OSError:
|
|
72
|
-
file_uid = None
|
|
73
|
-
try:
|
|
74
|
-
# raises OSError for symlinks
|
|
75
|
-
# https://github.com/pypa/pip/pull/935#discussion_r5307003
|
|
76
|
-
file_uid = get_path_uid(path)
|
|
77
|
-
except OSError:
|
|
78
|
-
file_uid = None
|
|
79
|
-
|
|
80
|
-
if file_uid != os.geteuid():
|
|
81
|
-
msg = "The temporary folder for building (%s) is either not owned by you, or is a symlink." \
|
|
82
|
-
% path
|
|
83
|
-
print (msg)
|
|
84
|
-
print("pip will not work until the temporary folder is " + \
|
|
85
|
-
"either deleted or is a real directory owned by your user account.")
|
|
86
|
-
raise pip.exceptions.InstallationError(msg)
|
|
87
|
-
return path
|
|
88
|
-
|
|
89
|
-
if running_under_virtualenv():
|
|
90
|
-
build_prefix = os.path.join(sys.prefix, 'build')
|
|
91
|
-
src_prefix = os.path.join(sys.prefix, 'src')
|
|
92
|
-
else:
|
|
93
|
-
# Note: intentionally NOT using mkdtemp
|
|
94
|
-
# See https://github.com/pypa/pip/issues/906 for plan to move to mkdtemp
|
|
95
|
-
build_prefix = _get_build_prefix()
|
|
96
|
-
|
|
97
|
-
## FIXME: keep src in cwd for now (it is not a temporary folder)
|
|
98
|
-
try:
|
|
99
|
-
src_prefix = os.path.join(os.getcwd(), 'src')
|
|
100
|
-
except OSError:
|
|
101
|
-
# In case the current working directory has been renamed or deleted
|
|
102
|
-
sys.exit("The folder you are executing pip from can no longer be found.")
|
|
103
|
-
|
|
104
|
-
# under Mac OS X + virtualenv sys.prefix is not properly resolved
|
|
105
|
-
# it is something like /path/to/python/bin/..
|
|
106
|
-
# Note: using realpath due to tmp dirs on OSX being symlinks
|
|
107
|
-
build_prefix = os.path.abspath(os.path.realpath(build_prefix))
|
|
108
|
-
src_prefix = os.path.abspath(src_prefix)
|
|
109
|
-
|
|
110
|
-
# FIXME doesn't account for venv linked to global site-packages
|
|
111
|
-
|
|
112
|
-
site_packages = get_python_lib()
|
|
113
|
-
user_dir = os.path.expanduser('~')
|
|
114
|
-
if sys.platform == 'win32':
|
|
115
|
-
bin_py = os.path.join(sys.prefix, 'Scripts')
|
|
116
|
-
bin_user = os.path.join(user_site, 'Scripts') if user_site else None
|
|
117
|
-
# buildout uses 'bin' on Windows too?
|
|
118
|
-
if not os.path.exists(bin_py):
|
|
119
|
-
bin_py = os.path.join(sys.prefix, 'bin')
|
|
120
|
-
bin_user = os.path.join(user_site, 'bin') if user_site else None
|
|
121
|
-
default_storage_dir = os.path.join(user_dir, 'pip')
|
|
122
|
-
default_config_file = os.path.join(default_storage_dir, 'pip.ini')
|
|
123
|
-
default_log_file = os.path.join(default_storage_dir, 'pip.log')
|
|
124
|
-
else:
|
|
125
|
-
bin_py = os.path.join(sys.prefix, 'bin')
|
|
126
|
-
bin_user = os.path.join(user_site, 'bin') if user_site else None
|
|
127
|
-
default_storage_dir = os.path.join(user_dir, '.pip')
|
|
128
|
-
default_config_file = os.path.join(default_storage_dir, 'pip.conf')
|
|
129
|
-
default_log_file = os.path.join(default_storage_dir, 'pip.log')
|
|
130
|
-
|
|
131
|
-
# Forcing to use /usr/local/bin for standard Mac OS X framework installs
|
|
132
|
-
# Also log to ~/Library/Logs/ for use with the Console.app log viewer
|
|
133
|
-
if sys.platform[:6] == 'darwin' and sys.prefix[:16] == '/System/Library/':
|
|
134
|
-
bin_py = '/usr/local/bin'
|
|
135
|
-
default_log_file = os.path.join(user_dir, 'Library/Logs/pip.log')
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
def distutils_scheme(dist_name, user=False, home=None, root=None):
|
|
139
|
-
"""
|
|
140
|
-
Return a distutils install scheme
|
|
141
|
-
"""
|
|
142
|
-
from distutils.dist import Distribution
|
|
143
|
-
|
|
144
|
-
scheme = {}
|
|
145
|
-
d = Distribution({'name': dist_name})
|
|
146
|
-
d.parse_config_files()
|
|
147
|
-
i = d.get_command_obj('install', create=True)
|
|
148
|
-
# NOTE: setting user or home has the side-effect of creating the home dir or
|
|
149
|
-
# user base for installations during finalize_options()
|
|
150
|
-
# ideally, we'd prefer a scheme class that has no side-effects.
|
|
151
|
-
i.user = user or i.user
|
|
152
|
-
i.home = home or i.home
|
|
153
|
-
i.root = root or i.root
|
|
154
|
-
i.finalize_options()
|
|
155
|
-
for key in SCHEME_KEYS:
|
|
156
|
-
scheme[key] = getattr(i, 'install_'+key)
|
|
157
|
-
|
|
158
|
-
if running_under_virtualenv():
|
|
159
|
-
scheme['headers'] = os.path.join(sys.prefix,
|
|
160
|
-
'include',
|
|
161
|
-
'site',
|
|
162
|
-
'python' + sys.version[:3],
|
|
163
|
-
dist_name)
|
|
164
|
-
|
|
165
|
-
if root is not None:
|
|
166
|
-
scheme["headers"] = os.path.join(
|
|
167
|
-
root,
|
|
168
|
-
os.path.abspath(scheme["headers"])[1:],
|
|
169
|
-
)
|
|
170
|
-
|
|
171
|
-
return scheme
|
|
@@ -1,276 +0,0 @@
|
|
|
1
|
-
"""Logging
|
|
2
|
-
"""
|
|
3
|
-
|
|
4
|
-
import sys
|
|
5
|
-
import os
|
|
6
|
-
import logging
|
|
7
|
-
|
|
8
|
-
from pip import backwardcompat
|
|
9
|
-
from pip._vendor import colorama, pkg_resources
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
def _color_wrap(*colors):
|
|
13
|
-
def wrapped(inp):
|
|
14
|
-
return "".join(list(colors) + [inp, colorama.Style.RESET_ALL])
|
|
15
|
-
return wrapped
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
def should_color(consumer, environ, std=(sys.stdout, sys.stderr)):
|
|
19
|
-
real_consumer = (consumer if not isinstance(consumer, colorama.AnsiToWin32)
|
|
20
|
-
else consumer.wrapped)
|
|
21
|
-
|
|
22
|
-
# If consumer isn't stdout or stderr we shouldn't colorize it
|
|
23
|
-
if real_consumer not in std:
|
|
24
|
-
return False
|
|
25
|
-
|
|
26
|
-
# If consumer is a tty we should color it
|
|
27
|
-
if hasattr(real_consumer, "isatty") and real_consumer.isatty():
|
|
28
|
-
return True
|
|
29
|
-
|
|
30
|
-
# If we have an ASNI term we should color it
|
|
31
|
-
if environ.get("TERM") == "ANSI":
|
|
32
|
-
return True
|
|
33
|
-
|
|
34
|
-
# If anything else we should not color it
|
|
35
|
-
return False
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
def should_warn(current_version, removal_version):
|
|
39
|
-
# Our Significant digits on versions is 2, so remove everything but the
|
|
40
|
-
# first two places.
|
|
41
|
-
current_version = ".".join(current_version.split(".")[:2])
|
|
42
|
-
removal_version = ".".join(removal_version.split(".")[:2])
|
|
43
|
-
|
|
44
|
-
# Our warning threshold is one minor version before removal, so we
|
|
45
|
-
# decrement the minor version by one
|
|
46
|
-
major, minor = removal_version.split(".")
|
|
47
|
-
minor = str(int(minor) - 1)
|
|
48
|
-
warn_version = ".".join([major, minor])
|
|
49
|
-
|
|
50
|
-
# Test if our current_version should be a warn
|
|
51
|
-
return (pkg_resources.parse_version(current_version)
|
|
52
|
-
< pkg_resources.parse_version(warn_version))
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
class Logger(object):
|
|
56
|
-
"""
|
|
57
|
-
Logging object for use in command-line script. Allows ranges of
|
|
58
|
-
levels, to avoid some redundancy of displayed information.
|
|
59
|
-
"""
|
|
60
|
-
VERBOSE_DEBUG = logging.DEBUG - 1
|
|
61
|
-
DEBUG = logging.DEBUG
|
|
62
|
-
INFO = logging.INFO
|
|
63
|
-
NOTIFY = (logging.INFO + logging.WARN) / 2
|
|
64
|
-
WARN = WARNING = logging.WARN
|
|
65
|
-
ERROR = logging.ERROR
|
|
66
|
-
FATAL = logging.FATAL
|
|
67
|
-
|
|
68
|
-
LEVELS = [VERBOSE_DEBUG, DEBUG, INFO, NOTIFY, WARN, ERROR, FATAL]
|
|
69
|
-
|
|
70
|
-
COLORS = {
|
|
71
|
-
WARN: _color_wrap(colorama.Fore.YELLOW),
|
|
72
|
-
ERROR: _color_wrap(colorama.Fore.RED),
|
|
73
|
-
FATAL: _color_wrap(colorama.Fore.RED),
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
def __init__(self):
|
|
77
|
-
self.consumers = []
|
|
78
|
-
self.indent = 0
|
|
79
|
-
self.explicit_levels = False
|
|
80
|
-
self.in_progress = None
|
|
81
|
-
self.in_progress_hanging = False
|
|
82
|
-
|
|
83
|
-
def add_consumers(self, *consumers):
|
|
84
|
-
if sys.platform.startswith("win"):
|
|
85
|
-
for level, consumer in consumers:
|
|
86
|
-
if hasattr(consumer, "write"):
|
|
87
|
-
self.consumers.append(
|
|
88
|
-
(level, colorama.AnsiToWin32(consumer)),
|
|
89
|
-
)
|
|
90
|
-
else:
|
|
91
|
-
self.consumers.append((level, consumer))
|
|
92
|
-
else:
|
|
93
|
-
self.consumers.extend(consumers)
|
|
94
|
-
|
|
95
|
-
def debug(self, msg, *args, **kw):
|
|
96
|
-
self.log(self.DEBUG, msg, *args, **kw)
|
|
97
|
-
|
|
98
|
-
def info(self, msg, *args, **kw):
|
|
99
|
-
self.log(self.INFO, msg, *args, **kw)
|
|
100
|
-
|
|
101
|
-
def notify(self, msg, *args, **kw):
|
|
102
|
-
self.log(self.NOTIFY, msg, *args, **kw)
|
|
103
|
-
|
|
104
|
-
def warn(self, msg, *args, **kw):
|
|
105
|
-
self.log(self.WARN, msg, *args, **kw)
|
|
106
|
-
|
|
107
|
-
def error(self, msg, *args, **kw):
|
|
108
|
-
self.log(self.ERROR, msg, *args, **kw)
|
|
109
|
-
|
|
110
|
-
def fatal(self, msg, *args, **kw):
|
|
111
|
-
self.log(self.FATAL, msg, *args, **kw)
|
|
112
|
-
|
|
113
|
-
def deprecated(self, removal_version, msg, *args, **kwargs):
|
|
114
|
-
"""
|
|
115
|
-
Logs deprecation message which is log level WARN if the
|
|
116
|
-
``removal_version`` is > 1 minor release away and log level ERROR
|
|
117
|
-
otherwise.
|
|
118
|
-
|
|
119
|
-
removal_version should be the version that the deprecated feature is
|
|
120
|
-
expected to be removed in, so something that will not exist in
|
|
121
|
-
version 1.7, but will in 1.6 would have a removal_version of 1.7.
|
|
122
|
-
"""
|
|
123
|
-
from pip import __version__
|
|
124
|
-
|
|
125
|
-
if should_warn(__version__, removal_version):
|
|
126
|
-
self.warn(msg, *args, **kwargs)
|
|
127
|
-
else:
|
|
128
|
-
self.error(msg, *args, **kwargs)
|
|
129
|
-
|
|
130
|
-
def log(self, level, msg, *args, **kw):
|
|
131
|
-
if args:
|
|
132
|
-
if kw:
|
|
133
|
-
raise TypeError(
|
|
134
|
-
"You may give positional or keyword arguments, not both")
|
|
135
|
-
args = args or kw
|
|
136
|
-
|
|
137
|
-
# render
|
|
138
|
-
if args:
|
|
139
|
-
rendered = msg % args
|
|
140
|
-
else:
|
|
141
|
-
rendered = msg
|
|
142
|
-
rendered = ' ' * self.indent + rendered
|
|
143
|
-
if self.explicit_levels:
|
|
144
|
-
## FIXME: should this be a name, not a level number?
|
|
145
|
-
rendered = '%02i %s' % (level, rendered)
|
|
146
|
-
|
|
147
|
-
for consumer_level, consumer in self.consumers:
|
|
148
|
-
if self.level_matches(level, consumer_level):
|
|
149
|
-
if (self.in_progress_hanging
|
|
150
|
-
and consumer in (sys.stdout, sys.stderr)):
|
|
151
|
-
self.in_progress_hanging = False
|
|
152
|
-
sys.stdout.write('\n')
|
|
153
|
-
sys.stdout.flush()
|
|
154
|
-
if hasattr(consumer, 'write'):
|
|
155
|
-
write_content = rendered + '\n'
|
|
156
|
-
if should_color(consumer, os.environ):
|
|
157
|
-
# We are printing to stdout or stderr and it supports
|
|
158
|
-
# colors so render our text colored
|
|
159
|
-
colorizer = self.COLORS.get(level, lambda x: x)
|
|
160
|
-
write_content = colorizer(write_content)
|
|
161
|
-
|
|
162
|
-
consumer.write(write_content)
|
|
163
|
-
if hasattr(consumer, 'flush'):
|
|
164
|
-
consumer.flush()
|
|
165
|
-
else:
|
|
166
|
-
consumer(rendered)
|
|
167
|
-
|
|
168
|
-
def _show_progress(self):
|
|
169
|
-
"""Should we display download progress?"""
|
|
170
|
-
return (self.stdout_level_matches(self.NOTIFY) and sys.stdout.isatty())
|
|
171
|
-
|
|
172
|
-
def start_progress(self, msg):
|
|
173
|
-
assert not self.in_progress, (
|
|
174
|
-
"Tried to start_progress(%r) while in_progress %r"
|
|
175
|
-
% (msg, self.in_progress))
|
|
176
|
-
if self._show_progress():
|
|
177
|
-
sys.stdout.write(' ' * self.indent + msg)
|
|
178
|
-
sys.stdout.flush()
|
|
179
|
-
self.in_progress_hanging = True
|
|
180
|
-
else:
|
|
181
|
-
self.in_progress_hanging = False
|
|
182
|
-
self.in_progress = msg
|
|
183
|
-
self.last_message = None
|
|
184
|
-
|
|
185
|
-
def end_progress(self, msg='done.'):
|
|
186
|
-
assert self.in_progress, (
|
|
187
|
-
"Tried to end_progress without start_progress")
|
|
188
|
-
if self._show_progress():
|
|
189
|
-
if not self.in_progress_hanging:
|
|
190
|
-
# Some message has been printed out since start_progress
|
|
191
|
-
sys.stdout.write('...' + self.in_progress + msg + '\n')
|
|
192
|
-
sys.stdout.flush()
|
|
193
|
-
else:
|
|
194
|
-
# These erase any messages shown with show_progress (besides .'s)
|
|
195
|
-
logger.show_progress('')
|
|
196
|
-
logger.show_progress('')
|
|
197
|
-
sys.stdout.write(msg + '\n')
|
|
198
|
-
sys.stdout.flush()
|
|
199
|
-
self.in_progress = None
|
|
200
|
-
self.in_progress_hanging = False
|
|
201
|
-
|
|
202
|
-
def show_progress(self, message=None):
|
|
203
|
-
"""If we are in a progress scope, and no log messages have been
|
|
204
|
-
shown, write out another '.'"""
|
|
205
|
-
if self.in_progress_hanging:
|
|
206
|
-
if message is None:
|
|
207
|
-
sys.stdout.write('.')
|
|
208
|
-
sys.stdout.flush()
|
|
209
|
-
else:
|
|
210
|
-
if self.last_message:
|
|
211
|
-
padding = ' ' * max(0, len(self.last_message) - len(message))
|
|
212
|
-
else:
|
|
213
|
-
padding = ''
|
|
214
|
-
sys.stdout.write('\r%s%s%s%s' %
|
|
215
|
-
(' ' * self.indent, self.in_progress, message, padding))
|
|
216
|
-
sys.stdout.flush()
|
|
217
|
-
self.last_message = message
|
|
218
|
-
|
|
219
|
-
def stdout_level_matches(self, level):
|
|
220
|
-
"""Returns true if a message at this level will go to stdout"""
|
|
221
|
-
return self.level_matches(level, self._stdout_level())
|
|
222
|
-
|
|
223
|
-
def _stdout_level(self):
|
|
224
|
-
"""Returns the level that stdout runs at"""
|
|
225
|
-
for level, consumer in self.consumers:
|
|
226
|
-
if consumer is sys.stdout:
|
|
227
|
-
return level
|
|
228
|
-
return self.FATAL
|
|
229
|
-
|
|
230
|
-
def level_matches(self, level, consumer_level):
|
|
231
|
-
"""
|
|
232
|
-
>>> l = Logger()
|
|
233
|
-
>>> l.level_matches(3, 4)
|
|
234
|
-
False
|
|
235
|
-
>>> l.level_matches(3, 2)
|
|
236
|
-
True
|
|
237
|
-
>>> l.level_matches(slice(None, 3), 3)
|
|
238
|
-
False
|
|
239
|
-
>>> l.level_matches(slice(None, 3), 2)
|
|
240
|
-
True
|
|
241
|
-
>>> l.level_matches(slice(1, 3), 1)
|
|
242
|
-
True
|
|
243
|
-
>>> l.level_matches(slice(2, 3), 1)
|
|
244
|
-
False
|
|
245
|
-
"""
|
|
246
|
-
if isinstance(level, slice):
|
|
247
|
-
start, stop = level.start, level.stop
|
|
248
|
-
if start is not None and start > consumer_level:
|
|
249
|
-
return False
|
|
250
|
-
if stop is not None or stop <= consumer_level:
|
|
251
|
-
return False
|
|
252
|
-
return True
|
|
253
|
-
else:
|
|
254
|
-
return level >= consumer_level
|
|
255
|
-
|
|
256
|
-
@classmethod
|
|
257
|
-
def level_for_integer(cls, level):
|
|
258
|
-
levels = cls.LEVELS
|
|
259
|
-
if level < 0:
|
|
260
|
-
return levels[0]
|
|
261
|
-
if level >= len(levels):
|
|
262
|
-
return levels[-1]
|
|
263
|
-
return levels[level]
|
|
264
|
-
|
|
265
|
-
def move_stdout_to_stderr(self):
|
|
266
|
-
to_remove = []
|
|
267
|
-
to_add = []
|
|
268
|
-
for consumer_level, consumer in self.consumers:
|
|
269
|
-
if consumer == sys.stdout:
|
|
270
|
-
to_remove.append((consumer_level, consumer))
|
|
271
|
-
to_add.append((consumer_level, sys.stderr))
|
|
272
|
-
for item in to_remove:
|
|
273
|
-
self.consumers.remove(item)
|
|
274
|
-
self.consumers.extend(to_add)
|
|
275
|
-
|
|
276
|
-
logger = Logger()
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
"""Generate and work with PEP 425 Compatibility Tags."""
|
|
2
|
-
|
|
3
|
-
import sys
|
|
4
|
-
import warnings
|
|
5
|
-
|
|
6
|
-
try:
|
|
7
|
-
import sysconfig
|
|
8
|
-
except ImportError: # pragma nocover
|
|
9
|
-
# Python < 2.7
|
|
10
|
-
import distutils.sysconfig as sysconfig
|
|
11
|
-
import distutils.util
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
def get_abbr_impl():
|
|
15
|
-
"""Return abbreviated implementation name."""
|
|
16
|
-
if hasattr(sys, 'pypy_version_info'):
|
|
17
|
-
pyimpl = 'pp'
|
|
18
|
-
elif sys.platform.startswith('java'):
|
|
19
|
-
pyimpl = 'jy'
|
|
20
|
-
elif sys.platform == 'cli':
|
|
21
|
-
pyimpl = 'ip'
|
|
22
|
-
else:
|
|
23
|
-
pyimpl = 'cp'
|
|
24
|
-
return pyimpl
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
def get_impl_ver():
|
|
28
|
-
"""Return implementation version."""
|
|
29
|
-
return ''.join(map(str, sys.version_info[:2]))
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
def get_platform():
|
|
33
|
-
"""Return our platform name 'win32', 'linux_x86_64'"""
|
|
34
|
-
# XXX remove distutils dependency
|
|
35
|
-
return distutils.util.get_platform().replace('.', '_').replace('-', '_')
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
def get_supported(versions=None, noarch=False):
|
|
39
|
-
"""Return a list of supported tags for each version specified in
|
|
40
|
-
`versions`.
|
|
41
|
-
|
|
42
|
-
:param versions: a list of string versions, of the form ["33", "32"],
|
|
43
|
-
or None. The first version will be assumed to support our ABI.
|
|
44
|
-
"""
|
|
45
|
-
supported = []
|
|
46
|
-
|
|
47
|
-
# Versions must be given with respect to the preference
|
|
48
|
-
if versions is None:
|
|
49
|
-
versions = []
|
|
50
|
-
major = sys.version_info[0]
|
|
51
|
-
# Support all previous minor Python versions.
|
|
52
|
-
for minor in range(sys.version_info[1], -1, -1):
|
|
53
|
-
versions.append(''.join(map(str, (major, minor))))
|
|
54
|
-
|
|
55
|
-
impl = get_abbr_impl()
|
|
56
|
-
|
|
57
|
-
abis = []
|
|
58
|
-
|
|
59
|
-
try:
|
|
60
|
-
soabi = sysconfig.get_config_var('SOABI')
|
|
61
|
-
except IOError as e: # Issue #1074
|
|
62
|
-
warnings.warn("{0}".format(e), RuntimeWarning)
|
|
63
|
-
soabi = None
|
|
64
|
-
|
|
65
|
-
if soabi and soabi.startswith('cpython-'):
|
|
66
|
-
abis[0:0] = ['cp' + soabi.split('-', 1)[-1]]
|
|
67
|
-
|
|
68
|
-
abi3s = set()
|
|
69
|
-
import imp
|
|
70
|
-
for suffix in imp.get_suffixes():
|
|
71
|
-
if suffix[0].startswith('.abi'):
|
|
72
|
-
abi3s.add(suffix[0].split('.', 2)[1])
|
|
73
|
-
|
|
74
|
-
abis.extend(sorted(list(abi3s)))
|
|
75
|
-
|
|
76
|
-
abis.append('none')
|
|
77
|
-
|
|
78
|
-
if not noarch:
|
|
79
|
-
arch = get_platform()
|
|
80
|
-
|
|
81
|
-
# Current version, current API (built specifically for our Python):
|
|
82
|
-
for abi in abis:
|
|
83
|
-
supported.append(('%s%s' % (impl, versions[0]), abi, arch))
|
|
84
|
-
|
|
85
|
-
# No abi / arch, but requires our implementation:
|
|
86
|
-
for i, version in enumerate(versions):
|
|
87
|
-
supported.append(('%s%s' % (impl, version), 'none', 'any'))
|
|
88
|
-
if i == 0:
|
|
89
|
-
# Tagged specifically as being cross-version compatible
|
|
90
|
-
# (with just the major version specified)
|
|
91
|
-
supported.append(('%s%s' % (impl, versions[0][0]), 'none', 'any'))
|
|
92
|
-
|
|
93
|
-
# No abi / arch, generic Python
|
|
94
|
-
for i, version in enumerate(versions):
|
|
95
|
-
supported.append(('py%s' % (version,), 'none', 'any'))
|
|
96
|
-
if i == 0:
|
|
97
|
-
supported.append(('py%s' % (version[0]), 'none', 'any'))
|
|
98
|
-
|
|
99
|
-
return supported
|
|
100
|
-
|
|
101
|
-
supported_tags = get_supported()
|
|
102
|
-
supported_tags_noarch = get_supported(noarch=True)
|