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,371 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
shared options and groups
|
|
3
|
-
|
|
4
|
-
The principle here is to define options once, but *not* instantiate them globally.
|
|
5
|
-
One reason being that options with action='append' can carry state between parses.
|
|
6
|
-
pip parse's general options twice internally, and shouldn't pass on state.
|
|
7
|
-
To be consistent, all options will follow this design.
|
|
8
|
-
|
|
9
|
-
"""
|
|
10
|
-
import copy
|
|
11
|
-
from optparse import OptionGroup, SUPPRESS_HELP, Option
|
|
12
|
-
from pip.locations import build_prefix, default_log_file
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
def make_option_group(group, parser):
|
|
16
|
-
"""
|
|
17
|
-
Return an OptionGroup object
|
|
18
|
-
group -- assumed to be dict with 'name' and 'options' keys
|
|
19
|
-
parser -- an optparse Parser
|
|
20
|
-
"""
|
|
21
|
-
option_group = OptionGroup(parser, group['name'])
|
|
22
|
-
for option in group['options']:
|
|
23
|
-
option_group.add_option(option.make())
|
|
24
|
-
return option_group
|
|
25
|
-
|
|
26
|
-
class OptionMaker(object):
|
|
27
|
-
"""Class that stores the args/kwargs that would be used to make an Option,
|
|
28
|
-
for making them later, and uses deepcopy's to reset state."""
|
|
29
|
-
def __init__(self, *args, **kwargs):
|
|
30
|
-
self.args = args
|
|
31
|
-
self.kwargs = kwargs
|
|
32
|
-
def make(self):
|
|
33
|
-
args_copy = copy.deepcopy(self.args)
|
|
34
|
-
kwargs_copy = copy.deepcopy(self.kwargs)
|
|
35
|
-
return Option(*args_copy, **kwargs_copy)
|
|
36
|
-
|
|
37
|
-
###########
|
|
38
|
-
# options #
|
|
39
|
-
###########
|
|
40
|
-
|
|
41
|
-
help_ = OptionMaker(
|
|
42
|
-
'-h', '--help',
|
|
43
|
-
dest='help',
|
|
44
|
-
action='help',
|
|
45
|
-
help='Show help.')
|
|
46
|
-
|
|
47
|
-
require_virtualenv = OptionMaker(
|
|
48
|
-
# Run only if inside a virtualenv, bail if not.
|
|
49
|
-
'--require-virtualenv', '--require-venv',
|
|
50
|
-
dest='require_venv',
|
|
51
|
-
action='store_true',
|
|
52
|
-
default=False,
|
|
53
|
-
help=SUPPRESS_HELP)
|
|
54
|
-
|
|
55
|
-
verbose = OptionMaker(
|
|
56
|
-
'-v', '--verbose',
|
|
57
|
-
dest='verbose',
|
|
58
|
-
action='count',
|
|
59
|
-
default=0,
|
|
60
|
-
help='Give more output. Option is additive, and can be used up to 3 times.')
|
|
61
|
-
|
|
62
|
-
version = OptionMaker(
|
|
63
|
-
'-V', '--version',
|
|
64
|
-
dest='version',
|
|
65
|
-
action='store_true',
|
|
66
|
-
help='Show version and exit.')
|
|
67
|
-
|
|
68
|
-
quiet = OptionMaker(
|
|
69
|
-
'-q', '--quiet',
|
|
70
|
-
dest='quiet',
|
|
71
|
-
action='count',
|
|
72
|
-
default=0,
|
|
73
|
-
help='Give less output.')
|
|
74
|
-
|
|
75
|
-
log = OptionMaker(
|
|
76
|
-
'--log',
|
|
77
|
-
dest='log',
|
|
78
|
-
metavar='path',
|
|
79
|
-
help='Path to a verbose appending log. This log is inactive by default.')
|
|
80
|
-
|
|
81
|
-
log_explicit_levels = OptionMaker(
|
|
82
|
-
# Writes the log levels explicitely to the log'
|
|
83
|
-
'--log-explicit-levels',
|
|
84
|
-
dest='log_explicit_levels',
|
|
85
|
-
action='store_true',
|
|
86
|
-
default=False,
|
|
87
|
-
help=SUPPRESS_HELP)
|
|
88
|
-
|
|
89
|
-
log_file = OptionMaker(
|
|
90
|
-
# The default log file
|
|
91
|
-
'--log-file', '--local-log',
|
|
92
|
-
dest='log_file',
|
|
93
|
-
metavar='path',
|
|
94
|
-
default=default_log_file,
|
|
95
|
-
help='Path to a verbose non-appending log, that only logs failures. This log is active by default at %default.')
|
|
96
|
-
|
|
97
|
-
no_input = OptionMaker(
|
|
98
|
-
# Don't ask for input
|
|
99
|
-
'--no-input',
|
|
100
|
-
dest='no_input',
|
|
101
|
-
action='store_true',
|
|
102
|
-
default=False,
|
|
103
|
-
help=SUPPRESS_HELP)
|
|
104
|
-
|
|
105
|
-
proxy = OptionMaker(
|
|
106
|
-
'--proxy',
|
|
107
|
-
dest='proxy',
|
|
108
|
-
type='str',
|
|
109
|
-
default='',
|
|
110
|
-
help="Specify a proxy in the form [user:passwd@]proxy.server:port.")
|
|
111
|
-
|
|
112
|
-
timeout = OptionMaker(
|
|
113
|
-
'--timeout', '--default-timeout',
|
|
114
|
-
metavar='sec',
|
|
115
|
-
dest='timeout',
|
|
116
|
-
type='float',
|
|
117
|
-
default=15,
|
|
118
|
-
help='Set the socket timeout (default %default seconds).')
|
|
119
|
-
|
|
120
|
-
default_vcs = OptionMaker(
|
|
121
|
-
# The default version control system for editables, e.g. 'svn'
|
|
122
|
-
'--default-vcs',
|
|
123
|
-
dest='default_vcs',
|
|
124
|
-
type='str',
|
|
125
|
-
default='',
|
|
126
|
-
help=SUPPRESS_HELP)
|
|
127
|
-
|
|
128
|
-
skip_requirements_regex = OptionMaker(
|
|
129
|
-
# A regex to be used to skip requirements
|
|
130
|
-
'--skip-requirements-regex',
|
|
131
|
-
dest='skip_requirements_regex',
|
|
132
|
-
type='str',
|
|
133
|
-
default='',
|
|
134
|
-
help=SUPPRESS_HELP)
|
|
135
|
-
|
|
136
|
-
exists_action = OptionMaker(
|
|
137
|
-
# Option when path already exist
|
|
138
|
-
'--exists-action',
|
|
139
|
-
dest='exists_action',
|
|
140
|
-
type='choice',
|
|
141
|
-
choices=['s', 'i', 'w', 'b'],
|
|
142
|
-
default=[],
|
|
143
|
-
action='append',
|
|
144
|
-
metavar='action',
|
|
145
|
-
help="Default action when a path already exists: "
|
|
146
|
-
"(s)witch, (i)gnore, (w)ipe, (b)ackup.")
|
|
147
|
-
|
|
148
|
-
cert = OptionMaker(
|
|
149
|
-
'--cert',
|
|
150
|
-
dest='cert',
|
|
151
|
-
type='str',
|
|
152
|
-
default='',
|
|
153
|
-
metavar='path',
|
|
154
|
-
help = "Path to alternate CA bundle.")
|
|
155
|
-
|
|
156
|
-
index_url = OptionMaker(
|
|
157
|
-
'-i', '--index-url', '--pypi-url',
|
|
158
|
-
dest='index_url',
|
|
159
|
-
metavar='URL',
|
|
160
|
-
default='https://pypi.python.org/simple/',
|
|
161
|
-
help='Base URL of Python Package Index (default %default).')
|
|
162
|
-
|
|
163
|
-
extra_index_url = OptionMaker(
|
|
164
|
-
'--extra-index-url',
|
|
165
|
-
dest='extra_index_urls',
|
|
166
|
-
metavar='URL',
|
|
167
|
-
action='append',
|
|
168
|
-
default=[],
|
|
169
|
-
help='Extra URLs of package indexes to use in addition to --index-url.')
|
|
170
|
-
|
|
171
|
-
no_index = OptionMaker(
|
|
172
|
-
'--no-index',
|
|
173
|
-
dest='no_index',
|
|
174
|
-
action='store_true',
|
|
175
|
-
default=False,
|
|
176
|
-
help='Ignore package index (only looking at --find-links URLs instead).')
|
|
177
|
-
|
|
178
|
-
find_links = OptionMaker(
|
|
179
|
-
'-f', '--find-links',
|
|
180
|
-
dest='find_links',
|
|
181
|
-
action='append',
|
|
182
|
-
default=[],
|
|
183
|
-
metavar='url',
|
|
184
|
-
help="If a url or path to an html file, then parse for links to archives. If a local path or file:// url that's a directory, then look for archives in the directory listing.")
|
|
185
|
-
|
|
186
|
-
# TODO: Remove after 1.6
|
|
187
|
-
use_mirrors = OptionMaker(
|
|
188
|
-
'-M', '--use-mirrors',
|
|
189
|
-
dest='use_mirrors',
|
|
190
|
-
action='store_true',
|
|
191
|
-
default=False,
|
|
192
|
-
help=SUPPRESS_HELP)
|
|
193
|
-
|
|
194
|
-
# TODO: Remove after 1.6
|
|
195
|
-
mirrors = OptionMaker(
|
|
196
|
-
'--mirrors',
|
|
197
|
-
dest='mirrors',
|
|
198
|
-
metavar='URL',
|
|
199
|
-
action='append',
|
|
200
|
-
default=[],
|
|
201
|
-
help=SUPPRESS_HELP)
|
|
202
|
-
|
|
203
|
-
allow_external = OptionMaker(
|
|
204
|
-
"--allow-external",
|
|
205
|
-
dest="allow_external",
|
|
206
|
-
action="append",
|
|
207
|
-
default=[],
|
|
208
|
-
metavar="PACKAGE",
|
|
209
|
-
help="Allow the installation of externally hosted files",
|
|
210
|
-
)
|
|
211
|
-
|
|
212
|
-
allow_all_external = OptionMaker(
|
|
213
|
-
"--allow-all-external",
|
|
214
|
-
dest="allow_all_external",
|
|
215
|
-
action="store_true",
|
|
216
|
-
default=False,
|
|
217
|
-
help="Allow the installation of all externally hosted files",
|
|
218
|
-
)
|
|
219
|
-
|
|
220
|
-
# Remove after 1.7
|
|
221
|
-
no_allow_external = OptionMaker(
|
|
222
|
-
"--no-allow-external",
|
|
223
|
-
dest="allow_all_external",
|
|
224
|
-
action="store_false",
|
|
225
|
-
default=False,
|
|
226
|
-
help=SUPPRESS_HELP,
|
|
227
|
-
)
|
|
228
|
-
|
|
229
|
-
# Remove --allow-insecure after 1.7
|
|
230
|
-
allow_unsafe = OptionMaker(
|
|
231
|
-
"--allow-unverified", "--allow-insecure",
|
|
232
|
-
dest="allow_unverified",
|
|
233
|
-
action="append",
|
|
234
|
-
default=[],
|
|
235
|
-
metavar="PACKAGE",
|
|
236
|
-
help="Allow the installation of insecure and unverifiable files",
|
|
237
|
-
)
|
|
238
|
-
|
|
239
|
-
# Remove after 1.7
|
|
240
|
-
no_allow_unsafe = OptionMaker(
|
|
241
|
-
"--no-allow-insecure",
|
|
242
|
-
dest="allow_all_insecure",
|
|
243
|
-
action="store_false",
|
|
244
|
-
default=False,
|
|
245
|
-
help=SUPPRESS_HELP
|
|
246
|
-
)
|
|
247
|
-
|
|
248
|
-
# Remove after 1.5
|
|
249
|
-
process_dependency_links = OptionMaker(
|
|
250
|
-
"--process-dependency-links",
|
|
251
|
-
dest="process_dependency_links",
|
|
252
|
-
action="store_true",
|
|
253
|
-
default=False,
|
|
254
|
-
help="Enable the processing of dependency links.",
|
|
255
|
-
)
|
|
256
|
-
|
|
257
|
-
requirements = OptionMaker(
|
|
258
|
-
'-r', '--requirement',
|
|
259
|
-
dest='requirements',
|
|
260
|
-
action='append',
|
|
261
|
-
default=[],
|
|
262
|
-
metavar='file',
|
|
263
|
-
help='Install from the given requirements file. '
|
|
264
|
-
'This option can be used multiple times.')
|
|
265
|
-
|
|
266
|
-
use_wheel = OptionMaker(
|
|
267
|
-
'--use-wheel',
|
|
268
|
-
dest='use_wheel',
|
|
269
|
-
action='store_true',
|
|
270
|
-
help=SUPPRESS_HELP,
|
|
271
|
-
)
|
|
272
|
-
|
|
273
|
-
no_use_wheel = OptionMaker(
|
|
274
|
-
'--no-use-wheel',
|
|
275
|
-
dest='use_wheel',
|
|
276
|
-
action='store_false',
|
|
277
|
-
default=True,
|
|
278
|
-
help=('Do not Find and prefer wheel archives when searching indexes and '
|
|
279
|
-
'find-links locations.'),
|
|
280
|
-
)
|
|
281
|
-
|
|
282
|
-
download_cache = OptionMaker(
|
|
283
|
-
'--download-cache',
|
|
284
|
-
dest='download_cache',
|
|
285
|
-
metavar='dir',
|
|
286
|
-
default=None,
|
|
287
|
-
help='Cache downloaded packages in <dir>.')
|
|
288
|
-
|
|
289
|
-
no_deps = OptionMaker(
|
|
290
|
-
'--no-deps', '--no-dependencies',
|
|
291
|
-
dest='ignore_dependencies',
|
|
292
|
-
action='store_true',
|
|
293
|
-
default=False,
|
|
294
|
-
help="Don't install package dependencies.")
|
|
295
|
-
|
|
296
|
-
build_dir = OptionMaker(
|
|
297
|
-
'-b', '--build', '--build-dir', '--build-directory',
|
|
298
|
-
dest='build_dir',
|
|
299
|
-
metavar='dir',
|
|
300
|
-
default=build_prefix,
|
|
301
|
-
help='Directory to unpack packages into and build in. '
|
|
302
|
-
'The default in a virtualenv is "<venv path>/build". '
|
|
303
|
-
'The default for global installs is "<OS temp dir>/pip_build_<username>".')
|
|
304
|
-
|
|
305
|
-
install_options = OptionMaker(
|
|
306
|
-
'--install-option',
|
|
307
|
-
dest='install_options',
|
|
308
|
-
action='append',
|
|
309
|
-
metavar='options',
|
|
310
|
-
help="Extra arguments to be supplied to the setup.py install "
|
|
311
|
-
"command (use like --install-option=\"--install-scripts=/usr/local/bin\"). "
|
|
312
|
-
"Use multiple --install-option options to pass multiple options to setup.py install. "
|
|
313
|
-
"If you are using an option with a directory path, be sure to use absolute path.")
|
|
314
|
-
|
|
315
|
-
global_options = OptionMaker(
|
|
316
|
-
'--global-option',
|
|
317
|
-
dest='global_options',
|
|
318
|
-
action='append',
|
|
319
|
-
metavar='options',
|
|
320
|
-
help="Extra global options to be supplied to the setup.py "
|
|
321
|
-
"call before the install command.")
|
|
322
|
-
|
|
323
|
-
no_clean = OptionMaker(
|
|
324
|
-
'--no-clean',
|
|
325
|
-
action='store_true',
|
|
326
|
-
default=False,
|
|
327
|
-
help="Don't clean up build directories.")
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
##########
|
|
331
|
-
# groups #
|
|
332
|
-
##########
|
|
333
|
-
|
|
334
|
-
general_group = {
|
|
335
|
-
'name': 'General Options',
|
|
336
|
-
'options': [
|
|
337
|
-
help_,
|
|
338
|
-
require_virtualenv,
|
|
339
|
-
verbose,
|
|
340
|
-
version,
|
|
341
|
-
quiet,
|
|
342
|
-
log_file,
|
|
343
|
-
log,
|
|
344
|
-
log_explicit_levels,
|
|
345
|
-
no_input,
|
|
346
|
-
proxy,
|
|
347
|
-
timeout,
|
|
348
|
-
default_vcs,
|
|
349
|
-
skip_requirements_regex,
|
|
350
|
-
exists_action,
|
|
351
|
-
cert,
|
|
352
|
-
]
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
index_group = {
|
|
356
|
-
'name': 'Package Index Options',
|
|
357
|
-
'options': [
|
|
358
|
-
index_url,
|
|
359
|
-
extra_index_url,
|
|
360
|
-
no_index,
|
|
361
|
-
find_links,
|
|
362
|
-
use_mirrors,
|
|
363
|
-
mirrors,
|
|
364
|
-
allow_external,
|
|
365
|
-
allow_all_external,
|
|
366
|
-
no_allow_external,
|
|
367
|
-
allow_unsafe,
|
|
368
|
-
no_allow_unsafe,
|
|
369
|
-
process_dependency_links,
|
|
370
|
-
]
|
|
371
|
-
}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Package containing all pip commands
|
|
3
|
-
"""
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
from pip.commands.bundle import BundleCommand
|
|
7
|
-
from pip.commands.completion import CompletionCommand
|
|
8
|
-
from pip.commands.freeze import FreezeCommand
|
|
9
|
-
from pip.commands.help import HelpCommand
|
|
10
|
-
from pip.commands.list import ListCommand
|
|
11
|
-
from pip.commands.search import SearchCommand
|
|
12
|
-
from pip.commands.show import ShowCommand
|
|
13
|
-
from pip.commands.install import InstallCommand
|
|
14
|
-
from pip.commands.uninstall import UninstallCommand
|
|
15
|
-
from pip.commands.unzip import UnzipCommand
|
|
16
|
-
from pip.commands.zip import ZipCommand
|
|
17
|
-
from pip.commands.wheel import WheelCommand
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
commands = {
|
|
21
|
-
BundleCommand.name: BundleCommand,
|
|
22
|
-
CompletionCommand.name: CompletionCommand,
|
|
23
|
-
FreezeCommand.name: FreezeCommand,
|
|
24
|
-
HelpCommand.name: HelpCommand,
|
|
25
|
-
SearchCommand.name: SearchCommand,
|
|
26
|
-
ShowCommand.name: ShowCommand,
|
|
27
|
-
InstallCommand.name: InstallCommand,
|
|
28
|
-
UninstallCommand.name: UninstallCommand,
|
|
29
|
-
UnzipCommand.name: UnzipCommand,
|
|
30
|
-
ZipCommand.name: ZipCommand,
|
|
31
|
-
ListCommand.name: ListCommand,
|
|
32
|
-
WheelCommand.name: WheelCommand,
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
commands_order = [
|
|
37
|
-
InstallCommand,
|
|
38
|
-
UninstallCommand,
|
|
39
|
-
FreezeCommand,
|
|
40
|
-
ListCommand,
|
|
41
|
-
ShowCommand,
|
|
42
|
-
SearchCommand,
|
|
43
|
-
WheelCommand,
|
|
44
|
-
ZipCommand,
|
|
45
|
-
UnzipCommand,
|
|
46
|
-
BundleCommand,
|
|
47
|
-
HelpCommand,
|
|
48
|
-
]
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
def get_summaries(ignore_hidden=True, ordered=True):
|
|
52
|
-
"""Yields sorted (command name, command summary) tuples."""
|
|
53
|
-
|
|
54
|
-
if ordered:
|
|
55
|
-
cmditems = _sort_commands(commands, commands_order)
|
|
56
|
-
else:
|
|
57
|
-
cmditems = commands.items()
|
|
58
|
-
|
|
59
|
-
for name, command_class in cmditems:
|
|
60
|
-
if ignore_hidden and command_class.hidden:
|
|
61
|
-
continue
|
|
62
|
-
|
|
63
|
-
yield (name, command_class.summary)
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
def get_similar_commands(name):
|
|
67
|
-
"""Command name auto-correct."""
|
|
68
|
-
from difflib import get_close_matches
|
|
69
|
-
|
|
70
|
-
close_commands = get_close_matches(name, commands.keys())
|
|
71
|
-
|
|
72
|
-
if close_commands:
|
|
73
|
-
guess = close_commands[0]
|
|
74
|
-
else:
|
|
75
|
-
guess = False
|
|
76
|
-
|
|
77
|
-
return guess
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
def _sort_commands(cmddict, order):
|
|
81
|
-
def keyfn(key):
|
|
82
|
-
try:
|
|
83
|
-
return order.index(key[1])
|
|
84
|
-
except ValueError:
|
|
85
|
-
# unordered items should come last
|
|
86
|
-
return 0xff
|
|
87
|
-
|
|
88
|
-
return sorted(cmddict.items(), key=keyfn)
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import textwrap
|
|
2
|
-
from pip.locations import build_prefix, src_prefix
|
|
3
|
-
from pip.util import display_path, backup_dir
|
|
4
|
-
from pip.log import logger
|
|
5
|
-
from pip.exceptions import InstallationError
|
|
6
|
-
from pip.commands.install import InstallCommand
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class BundleCommand(InstallCommand):
|
|
10
|
-
"""Create pybundles (archives containing multiple packages)."""
|
|
11
|
-
name = 'bundle'
|
|
12
|
-
usage = """
|
|
13
|
-
%prog [options] <bundle name>.pybundle <package>..."""
|
|
14
|
-
summary = 'DEPRECATED. Create pybundles.'
|
|
15
|
-
bundle = True
|
|
16
|
-
|
|
17
|
-
def __init__(self, *args, **kw):
|
|
18
|
-
super(BundleCommand, self).__init__(*args, **kw)
|
|
19
|
-
# bundle uses different default source and build dirs
|
|
20
|
-
build_opt = self.parser.get_option("--build")
|
|
21
|
-
build_opt.default = backup_dir(build_prefix, '-bundle')
|
|
22
|
-
src_opt = self.parser.get_option("--src")
|
|
23
|
-
src_opt.default = backup_dir(src_prefix, '-bundle')
|
|
24
|
-
self.parser.set_defaults(**{
|
|
25
|
-
src_opt.dest: src_opt.default,
|
|
26
|
-
build_opt.dest: build_opt.default,
|
|
27
|
-
})
|
|
28
|
-
|
|
29
|
-
def run(self, options, args):
|
|
30
|
-
|
|
31
|
-
logger.deprecated('1.6', "DEPRECATION: 'pip bundle' and support for installing from *.pybundle files is deprecated. "
|
|
32
|
-
"See https://github.com/pypa/pip/pull/1046")
|
|
33
|
-
|
|
34
|
-
if not args:
|
|
35
|
-
raise InstallationError('You must give a bundle filename')
|
|
36
|
-
# We have to get everything when creating a bundle:
|
|
37
|
-
options.ignore_installed = True
|
|
38
|
-
logger.notify('Putting temporary build files in %s and source/develop files in %s'
|
|
39
|
-
% (display_path(options.build_dir), display_path(options.src_dir)))
|
|
40
|
-
self.bundle_filename = args.pop(0)
|
|
41
|
-
requirement_set = super(BundleCommand, self).run(options, args)
|
|
42
|
-
return requirement_set
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import sys
|
|
2
|
-
from pip.basecommand import Command
|
|
3
|
-
|
|
4
|
-
BASE_COMPLETION = """
|
|
5
|
-
# pip %(shell)s completion start%(script)s# pip %(shell)s completion end
|
|
6
|
-
"""
|
|
7
|
-
|
|
8
|
-
COMPLETION_SCRIPTS = {
|
|
9
|
-
'bash': """
|
|
10
|
-
_pip_completion()
|
|
11
|
-
{
|
|
12
|
-
COMPREPLY=( $( COMP_WORDS="${COMP_WORDS[*]}" \\
|
|
13
|
-
COMP_CWORD=$COMP_CWORD \\
|
|
14
|
-
PIP_AUTO_COMPLETE=1 $1 ) )
|
|
15
|
-
}
|
|
16
|
-
complete -o default -F _pip_completion pip
|
|
17
|
-
""", 'zsh': """
|
|
18
|
-
function _pip_completion {
|
|
19
|
-
local words cword
|
|
20
|
-
read -Ac words
|
|
21
|
-
read -cn cword
|
|
22
|
-
reply=( $( COMP_WORDS="$words[*]" \\
|
|
23
|
-
COMP_CWORD=$(( cword-1 )) \\
|
|
24
|
-
PIP_AUTO_COMPLETE=1 $words[1] ) )
|
|
25
|
-
}
|
|
26
|
-
compctl -K _pip_completion pip
|
|
27
|
-
"""}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
class CompletionCommand(Command):
|
|
31
|
-
"""A helper command to be used for command completion."""
|
|
32
|
-
name = 'completion'
|
|
33
|
-
summary = 'A helper command to be used for command completion'
|
|
34
|
-
hidden = True
|
|
35
|
-
|
|
36
|
-
def __init__(self, *args, **kw):
|
|
37
|
-
super(CompletionCommand, self).__init__(*args, **kw)
|
|
38
|
-
self.parser.add_option(
|
|
39
|
-
'--bash', '-b',
|
|
40
|
-
action='store_const',
|
|
41
|
-
const='bash',
|
|
42
|
-
dest='shell',
|
|
43
|
-
help='Emit completion code for bash')
|
|
44
|
-
self.parser.add_option(
|
|
45
|
-
'--zsh', '-z',
|
|
46
|
-
action='store_const',
|
|
47
|
-
const='zsh',
|
|
48
|
-
dest='shell',
|
|
49
|
-
help='Emit completion code for zsh')
|
|
50
|
-
|
|
51
|
-
def run(self, options, args):
|
|
52
|
-
"""Prints the completion code of the given shell"""
|
|
53
|
-
shells = COMPLETION_SCRIPTS.keys()
|
|
54
|
-
shell_options = ['--' + shell for shell in sorted(shells)]
|
|
55
|
-
if options.shell in shells:
|
|
56
|
-
script = COMPLETION_SCRIPTS.get(options.shell, '')
|
|
57
|
-
print(BASE_COMPLETION % {'script': script, 'shell': options.shell})
|
|
58
|
-
else:
|
|
59
|
-
sys.stderr.write('ERROR: You must pass %s\n' % ' or '.join(shell_options))
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import re
|
|
2
|
-
import sys
|
|
3
|
-
import pip
|
|
4
|
-
|
|
5
|
-
from pip.req import InstallRequirement
|
|
6
|
-
from pip.log import logger
|
|
7
|
-
from pip.basecommand import Command
|
|
8
|
-
from pip.util import get_installed_distributions
|
|
9
|
-
from pip._vendor import pkg_resources
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class FreezeCommand(Command):
|
|
13
|
-
"""Output installed packages in requirements format."""
|
|
14
|
-
name = 'freeze'
|
|
15
|
-
usage = """
|
|
16
|
-
%prog [options]"""
|
|
17
|
-
summary = 'Output installed packages in requirements format.'
|
|
18
|
-
|
|
19
|
-
def __init__(self, *args, **kw):
|
|
20
|
-
super(FreezeCommand, self).__init__(*args, **kw)
|
|
21
|
-
|
|
22
|
-
self.cmd_opts.add_option(
|
|
23
|
-
'-r', '--requirement',
|
|
24
|
-
dest='requirement',
|
|
25
|
-
action='store',
|
|
26
|
-
default=None,
|
|
27
|
-
metavar='file',
|
|
28
|
-
help="Use the order in the given requirements file and it's comments when generating output.")
|
|
29
|
-
self.cmd_opts.add_option(
|
|
30
|
-
'-f', '--find-links',
|
|
31
|
-
dest='find_links',
|
|
32
|
-
action='append',
|
|
33
|
-
default=[],
|
|
34
|
-
metavar='URL',
|
|
35
|
-
help='URL for finding packages, which will be added to the output.')
|
|
36
|
-
self.cmd_opts.add_option(
|
|
37
|
-
'-l', '--local',
|
|
38
|
-
dest='local',
|
|
39
|
-
action='store_true',
|
|
40
|
-
default=False,
|
|
41
|
-
help='If in a virtualenv that has global access, do not output globally-installed packages.')
|
|
42
|
-
|
|
43
|
-
self.parser.insert_option_group(0, self.cmd_opts)
|
|
44
|
-
|
|
45
|
-
def setup_logging(self):
|
|
46
|
-
logger.move_stdout_to_stderr()
|
|
47
|
-
|
|
48
|
-
def run(self, options, args):
|
|
49
|
-
requirement = options.requirement
|
|
50
|
-
find_links = options.find_links or []
|
|
51
|
-
local_only = options.local
|
|
52
|
-
## FIXME: Obviously this should be settable:
|
|
53
|
-
find_tags = False
|
|
54
|
-
skip_match = None
|
|
55
|
-
|
|
56
|
-
skip_regex = options.skip_requirements_regex
|
|
57
|
-
if skip_regex:
|
|
58
|
-
skip_match = re.compile(skip_regex)
|
|
59
|
-
|
|
60
|
-
dependency_links = []
|
|
61
|
-
|
|
62
|
-
f = sys.stdout
|
|
63
|
-
|
|
64
|
-
for dist in pkg_resources.working_set:
|
|
65
|
-
if dist.has_metadata('dependency_links.txt'):
|
|
66
|
-
dependency_links.extend(dist.get_metadata_lines('dependency_links.txt'))
|
|
67
|
-
for link in find_links:
|
|
68
|
-
if '#egg=' in link:
|
|
69
|
-
dependency_links.append(link)
|
|
70
|
-
for link in find_links:
|
|
71
|
-
f.write('-f %s\n' % link)
|
|
72
|
-
installations = {}
|
|
73
|
-
for dist in get_installed_distributions(local_only=local_only):
|
|
74
|
-
req = pip.FrozenRequirement.from_dist(dist, dependency_links, find_tags=find_tags)
|
|
75
|
-
installations[req.name] = req
|
|
76
|
-
if requirement:
|
|
77
|
-
req_f = open(requirement)
|
|
78
|
-
for line in req_f:
|
|
79
|
-
if not line.strip() or line.strip().startswith('#'):
|
|
80
|
-
f.write(line)
|
|
81
|
-
continue
|
|
82
|
-
if skip_match and skip_match.search(line):
|
|
83
|
-
f.write(line)
|
|
84
|
-
continue
|
|
85
|
-
elif line.startswith('-e') or line.startswith('--editable'):
|
|
86
|
-
if line.startswith('-e'):
|
|
87
|
-
line = line[2:].strip()
|
|
88
|
-
else:
|
|
89
|
-
line = line[len('--editable'):].strip().lstrip('=')
|
|
90
|
-
line_req = InstallRequirement.from_editable(line, default_vcs=options.default_vcs)
|
|
91
|
-
elif (line.startswith('-r') or line.startswith('--requirement')
|
|
92
|
-
or line.startswith('-Z') or line.startswith('--always-unzip')
|
|
93
|
-
or line.startswith('-f') or line.startswith('-i')
|
|
94
|
-
or line.startswith('--extra-index-url')
|
|
95
|
-
or line.startswith('--find-links')
|
|
96
|
-
or line.startswith('--index-url')):
|
|
97
|
-
f.write(line)
|
|
98
|
-
continue
|
|
99
|
-
else:
|
|
100
|
-
line_req = InstallRequirement.from_line(line)
|
|
101
|
-
if not line_req.name:
|
|
102
|
-
logger.notify("Skipping line because it's not clear what it would install: %s"
|
|
103
|
-
% line.strip())
|
|
104
|
-
logger.notify(" (add #egg=PackageName to the URL to avoid this warning)")
|
|
105
|
-
continue
|
|
106
|
-
if line_req.name not in installations:
|
|
107
|
-
logger.warn("Requirement file contains %s, but that package is not installed"
|
|
108
|
-
% line.strip())
|
|
109
|
-
continue
|
|
110
|
-
f.write(str(installations[line_req.name]))
|
|
111
|
-
del installations[line_req.name]
|
|
112
|
-
f.write('## The following requirements were added by pip --freeze:\n')
|
|
113
|
-
for installation in sorted(installations.values(), key=lambda x: x.name):
|
|
114
|
-
f.write(str(installation))
|