com.googler.python 1.0.8 → 1.1.0
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 +1 -1
- 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-10.0.0.dist-info/LICENSE.txt +20 -0
- package/python3.4.2/lib/python3.4/site-packages/pip-10.0.0.dist-info/METADATA +78 -0
- package/python3.4.2/lib/python3.4/site-packages/pip-10.0.0.dist-info/RECORD +294 -0
- package/python3.4.2/lib/python3.4/site-packages/{pip-1.5.6.dist-info → pip-10.0.0.dist-info}/WHEEL +6 -6
- package/python3.4.2/lib/python3.4/site-packages/pip-10.0.0.dist-info/entry_points.txt +5 -0
- package/python3.4.2/lib/python3.4/site-packages/{pip-1.5.6.dist-info → pip-10.0.0.dist-info}/top_level.txt +0 -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
- package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/DESCRIPTION.rst +0 -71
- package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/METADATA +0 -98
- package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/RECORD +0 -373
- package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/entry_points.txt +0 -5
- package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/metadata.json +0 -1
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
from pip.req import InstallRequirement, RequirementSet, parse_requirements
|
|
2
|
-
from pip.basecommand import Command
|
|
3
|
-
from pip.exceptions import InstallationError
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class UninstallCommand(Command):
|
|
7
|
-
"""
|
|
8
|
-
Uninstall packages.
|
|
9
|
-
|
|
10
|
-
pip is able to uninstall most installed packages. Known exceptions are:
|
|
11
|
-
|
|
12
|
-
- Pure distutils packages installed with ``python setup.py install``, which
|
|
13
|
-
leave behind no metadata to determine what files were installed.
|
|
14
|
-
- Script wrappers installed by ``python setup.py develop``.
|
|
15
|
-
"""
|
|
16
|
-
name = 'uninstall'
|
|
17
|
-
usage = """
|
|
18
|
-
%prog [options] <package> ...
|
|
19
|
-
%prog [options] -r <requirements file> ..."""
|
|
20
|
-
summary = 'Uninstall packages.'
|
|
21
|
-
|
|
22
|
-
def __init__(self, *args, **kw):
|
|
23
|
-
super(UninstallCommand, self).__init__(*args, **kw)
|
|
24
|
-
self.cmd_opts.add_option(
|
|
25
|
-
'-r', '--requirement',
|
|
26
|
-
dest='requirements',
|
|
27
|
-
action='append',
|
|
28
|
-
default=[],
|
|
29
|
-
metavar='file',
|
|
30
|
-
help='Uninstall all the packages listed in the given requirements file. '
|
|
31
|
-
'This option can be used multiple times.')
|
|
32
|
-
self.cmd_opts.add_option(
|
|
33
|
-
'-y', '--yes',
|
|
34
|
-
dest='yes',
|
|
35
|
-
action='store_true',
|
|
36
|
-
help="Don't ask for confirmation of uninstall deletions.")
|
|
37
|
-
|
|
38
|
-
self.parser.insert_option_group(0, self.cmd_opts)
|
|
39
|
-
|
|
40
|
-
def run(self, options, args):
|
|
41
|
-
session = self._build_session(options)
|
|
42
|
-
|
|
43
|
-
requirement_set = RequirementSet(
|
|
44
|
-
build_dir=None,
|
|
45
|
-
src_dir=None,
|
|
46
|
-
download_dir=None,
|
|
47
|
-
session=session,
|
|
48
|
-
)
|
|
49
|
-
for name in args:
|
|
50
|
-
requirement_set.add_requirement(
|
|
51
|
-
InstallRequirement.from_line(name))
|
|
52
|
-
for filename in options.requirements:
|
|
53
|
-
for req in parse_requirements(filename,
|
|
54
|
-
options=options, session=session):
|
|
55
|
-
requirement_set.add_requirement(req)
|
|
56
|
-
if not requirement_set.has_requirements:
|
|
57
|
-
raise InstallationError('You must give at least one requirement '
|
|
58
|
-
'to %(name)s (see "pip help %(name)s")' % dict(name=self.name))
|
|
59
|
-
requirement_set.uninstall(auto_confirm=options.yes)
|
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
from __future__ import absolute_import
|
|
3
|
-
|
|
4
|
-
import os
|
|
5
|
-
import sys
|
|
6
|
-
from pip.basecommand import Command
|
|
7
|
-
from pip.index import PackageFinder
|
|
8
|
-
from pip.log import logger
|
|
9
|
-
from pip.exceptions import CommandError, PreviousBuildDirError
|
|
10
|
-
from pip.req import InstallRequirement, RequirementSet, parse_requirements
|
|
11
|
-
from pip.util import normalize_path
|
|
12
|
-
from pip.wheel import WheelBuilder
|
|
13
|
-
from pip import cmdoptions
|
|
14
|
-
|
|
15
|
-
DEFAULT_WHEEL_DIR = os.path.join(normalize_path(os.curdir), 'wheelhouse')
|
|
16
|
-
|
|
17
|
-
class WheelCommand(Command):
|
|
18
|
-
"""
|
|
19
|
-
Build Wheel archives for your requirements and dependencies.
|
|
20
|
-
|
|
21
|
-
Wheel is a built-package format, and offers the advantage of not recompiling your software during every install.
|
|
22
|
-
For more details, see the wheel docs: http://wheel.readthedocs.org/en/latest.
|
|
23
|
-
|
|
24
|
-
Requirements: setuptools>=0.8, and wheel.
|
|
25
|
-
|
|
26
|
-
'pip wheel' uses the bdist_wheel setuptools extension from the wheel package to build individual wheels.
|
|
27
|
-
|
|
28
|
-
"""
|
|
29
|
-
|
|
30
|
-
name = 'wheel'
|
|
31
|
-
usage = """
|
|
32
|
-
%prog [options] <requirement specifier> ...
|
|
33
|
-
%prog [options] -r <requirements file> ...
|
|
34
|
-
%prog [options] <vcs project url> ...
|
|
35
|
-
%prog [options] <local project path> ...
|
|
36
|
-
%prog [options] <archive url/path> ..."""
|
|
37
|
-
|
|
38
|
-
summary = 'Build wheels from your requirements.'
|
|
39
|
-
|
|
40
|
-
def __init__(self, *args, **kw):
|
|
41
|
-
super(WheelCommand, self).__init__(*args, **kw)
|
|
42
|
-
|
|
43
|
-
cmd_opts = self.cmd_opts
|
|
44
|
-
|
|
45
|
-
cmd_opts.add_option(
|
|
46
|
-
'-w', '--wheel-dir',
|
|
47
|
-
dest='wheel_dir',
|
|
48
|
-
metavar='dir',
|
|
49
|
-
default=DEFAULT_WHEEL_DIR,
|
|
50
|
-
help="Build wheels into <dir>, where the default is '<cwd>/wheelhouse'.")
|
|
51
|
-
cmd_opts.add_option(cmdoptions.use_wheel.make())
|
|
52
|
-
cmd_opts.add_option(cmdoptions.no_use_wheel.make())
|
|
53
|
-
cmd_opts.add_option(
|
|
54
|
-
'--build-option',
|
|
55
|
-
dest='build_options',
|
|
56
|
-
metavar='options',
|
|
57
|
-
action='append',
|
|
58
|
-
help="Extra arguments to be supplied to 'setup.py bdist_wheel'.")
|
|
59
|
-
cmd_opts.add_option(cmdoptions.requirements.make())
|
|
60
|
-
cmd_opts.add_option(cmdoptions.download_cache.make())
|
|
61
|
-
cmd_opts.add_option(cmdoptions.no_deps.make())
|
|
62
|
-
cmd_opts.add_option(cmdoptions.build_dir.make())
|
|
63
|
-
|
|
64
|
-
cmd_opts.add_option(
|
|
65
|
-
'--global-option',
|
|
66
|
-
dest='global_options',
|
|
67
|
-
action='append',
|
|
68
|
-
metavar='options',
|
|
69
|
-
help="Extra global options to be supplied to the setup.py "
|
|
70
|
-
"call before the 'bdist_wheel' command.")
|
|
71
|
-
|
|
72
|
-
cmd_opts.add_option(
|
|
73
|
-
'--pre',
|
|
74
|
-
action='store_true',
|
|
75
|
-
default=False,
|
|
76
|
-
help="Include pre-release and development versions. By default, pip only finds stable versions.")
|
|
77
|
-
|
|
78
|
-
cmd_opts.add_option(cmdoptions.no_clean.make())
|
|
79
|
-
|
|
80
|
-
index_opts = cmdoptions.make_option_group(cmdoptions.index_group, self.parser)
|
|
81
|
-
|
|
82
|
-
self.parser.insert_option_group(0, index_opts)
|
|
83
|
-
self.parser.insert_option_group(0, cmd_opts)
|
|
84
|
-
|
|
85
|
-
def run(self, options, args):
|
|
86
|
-
|
|
87
|
-
# confirm requirements
|
|
88
|
-
try:
|
|
89
|
-
import wheel.bdist_wheel
|
|
90
|
-
except ImportError:
|
|
91
|
-
raise CommandError("'pip wheel' requires the 'wheel' package. To fix this, run: pip install wheel")
|
|
92
|
-
|
|
93
|
-
try:
|
|
94
|
-
import pkg_resources
|
|
95
|
-
except ImportError:
|
|
96
|
-
raise CommandError(
|
|
97
|
-
"'pip wheel' requires setuptools >= 0.8 for dist-info support."
|
|
98
|
-
" To fix this, run: pip install --upgrade setuptools"
|
|
99
|
-
)
|
|
100
|
-
else:
|
|
101
|
-
if not hasattr(pkg_resources, 'DistInfoDistribution'):
|
|
102
|
-
raise CommandError(
|
|
103
|
-
"'pip wheel' requires setuptools >= 0.8 for dist-info "
|
|
104
|
-
"support. To fix this, run: pip install --upgrade "
|
|
105
|
-
"setuptools"
|
|
106
|
-
)
|
|
107
|
-
|
|
108
|
-
index_urls = [options.index_url] + options.extra_index_urls
|
|
109
|
-
if options.no_index:
|
|
110
|
-
logger.notify('Ignoring indexes: %s' % ','.join(index_urls))
|
|
111
|
-
index_urls = []
|
|
112
|
-
|
|
113
|
-
if options.use_mirrors:
|
|
114
|
-
logger.deprecated("1.7",
|
|
115
|
-
"--use-mirrors has been deprecated and will be removed"
|
|
116
|
-
" in the future. Explicit uses of --index-url and/or "
|
|
117
|
-
"--extra-index-url is suggested.")
|
|
118
|
-
|
|
119
|
-
if options.mirrors:
|
|
120
|
-
logger.deprecated("1.7",
|
|
121
|
-
"--mirrors has been deprecated and will be removed in "
|
|
122
|
-
" the future. Explicit uses of --index-url and/or "
|
|
123
|
-
"--extra-index-url is suggested.")
|
|
124
|
-
index_urls += options.mirrors
|
|
125
|
-
|
|
126
|
-
session = self._build_session(options)
|
|
127
|
-
|
|
128
|
-
finder = PackageFinder(find_links=options.find_links,
|
|
129
|
-
index_urls=index_urls,
|
|
130
|
-
use_wheel=options.use_wheel,
|
|
131
|
-
allow_external=options.allow_external,
|
|
132
|
-
allow_unverified=options.allow_unverified,
|
|
133
|
-
allow_all_external=options.allow_all_external,
|
|
134
|
-
allow_all_prereleases=options.pre,
|
|
135
|
-
process_dependency_links=
|
|
136
|
-
options.process_dependency_links,
|
|
137
|
-
session=session,
|
|
138
|
-
)
|
|
139
|
-
|
|
140
|
-
options.build_dir = os.path.abspath(options.build_dir)
|
|
141
|
-
requirement_set = RequirementSet(
|
|
142
|
-
build_dir=options.build_dir,
|
|
143
|
-
src_dir=None,
|
|
144
|
-
download_dir=None,
|
|
145
|
-
download_cache=options.download_cache,
|
|
146
|
-
ignore_dependencies=options.ignore_dependencies,
|
|
147
|
-
ignore_installed=True,
|
|
148
|
-
session=session,
|
|
149
|
-
wheel_download_dir=options.wheel_dir
|
|
150
|
-
)
|
|
151
|
-
|
|
152
|
-
# make the wheelhouse
|
|
153
|
-
if not os.path.exists(options.wheel_dir):
|
|
154
|
-
os.makedirs(options.wheel_dir)
|
|
155
|
-
|
|
156
|
-
#parse args and/or requirements files
|
|
157
|
-
for name in args:
|
|
158
|
-
requirement_set.add_requirement(
|
|
159
|
-
InstallRequirement.from_line(name, None))
|
|
160
|
-
|
|
161
|
-
for filename in options.requirements:
|
|
162
|
-
for req in parse_requirements(
|
|
163
|
-
filename,
|
|
164
|
-
finder=finder,
|
|
165
|
-
options=options,
|
|
166
|
-
session=session):
|
|
167
|
-
if req.editable:
|
|
168
|
-
logger.notify("ignoring %s" % req.url)
|
|
169
|
-
continue
|
|
170
|
-
requirement_set.add_requirement(req)
|
|
171
|
-
|
|
172
|
-
#fail if no requirements
|
|
173
|
-
if not requirement_set.has_requirements:
|
|
174
|
-
opts = {'name': self.name}
|
|
175
|
-
msg = ('You must give at least one requirement '
|
|
176
|
-
'to %(name)s (see "pip help %(name)s")' % opts)
|
|
177
|
-
logger.error(msg)
|
|
178
|
-
return
|
|
179
|
-
|
|
180
|
-
try:
|
|
181
|
-
#build wheels
|
|
182
|
-
wb = WheelBuilder(
|
|
183
|
-
requirement_set,
|
|
184
|
-
finder,
|
|
185
|
-
options.wheel_dir,
|
|
186
|
-
build_options = options.build_options or [],
|
|
187
|
-
global_options = options.global_options or []
|
|
188
|
-
)
|
|
189
|
-
wb.build()
|
|
190
|
-
except PreviousBuildDirError:
|
|
191
|
-
options.no_clean = True
|
|
192
|
-
raise
|
|
193
|
-
finally:
|
|
194
|
-
if not options.no_clean:
|
|
195
|
-
requirement_set.cleanup_files()
|
|
@@ -1,351 +0,0 @@
|
|
|
1
|
-
import sys
|
|
2
|
-
import re
|
|
3
|
-
import fnmatch
|
|
4
|
-
import os
|
|
5
|
-
import shutil
|
|
6
|
-
import zipfile
|
|
7
|
-
from pip.util import display_path, backup_dir, rmtree
|
|
8
|
-
from pip.log import logger
|
|
9
|
-
from pip.exceptions import InstallationError
|
|
10
|
-
from pip.basecommand import Command
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class ZipCommand(Command):
|
|
14
|
-
"""Zip individual packages."""
|
|
15
|
-
name = 'zip'
|
|
16
|
-
usage = """
|
|
17
|
-
%prog [options] <package> ..."""
|
|
18
|
-
summary = 'DEPRECATED. Zip individual packages.'
|
|
19
|
-
|
|
20
|
-
def __init__(self, *args, **kw):
|
|
21
|
-
super(ZipCommand, self).__init__(*args, **kw)
|
|
22
|
-
if self.name == 'zip':
|
|
23
|
-
self.cmd_opts.add_option(
|
|
24
|
-
'--unzip',
|
|
25
|
-
action='store_true',
|
|
26
|
-
dest='unzip',
|
|
27
|
-
help='Unzip (rather than zip) a package.')
|
|
28
|
-
else:
|
|
29
|
-
self.cmd_opts.add_option(
|
|
30
|
-
'--zip',
|
|
31
|
-
action='store_false',
|
|
32
|
-
dest='unzip',
|
|
33
|
-
default=True,
|
|
34
|
-
help='Zip (rather than unzip) a package.')
|
|
35
|
-
self.cmd_opts.add_option(
|
|
36
|
-
'--no-pyc',
|
|
37
|
-
action='store_true',
|
|
38
|
-
dest='no_pyc',
|
|
39
|
-
help='Do not include .pyc files in zip files (useful on Google App Engine).')
|
|
40
|
-
self.cmd_opts.add_option(
|
|
41
|
-
'-l', '--list',
|
|
42
|
-
action='store_true',
|
|
43
|
-
dest='list',
|
|
44
|
-
help='List the packages available, and their zip status.')
|
|
45
|
-
self.cmd_opts.add_option(
|
|
46
|
-
'--sort-files',
|
|
47
|
-
action='store_true',
|
|
48
|
-
dest='sort_files',
|
|
49
|
-
help='With --list, sort packages according to how many files they contain.')
|
|
50
|
-
self.cmd_opts.add_option(
|
|
51
|
-
'--path',
|
|
52
|
-
action='append',
|
|
53
|
-
dest='paths',
|
|
54
|
-
help='Restrict operations to the given paths (may include wildcards).')
|
|
55
|
-
self.cmd_opts.add_option(
|
|
56
|
-
'-n', '--simulate',
|
|
57
|
-
action='store_true',
|
|
58
|
-
help='Do not actually perform the zip/unzip operation.')
|
|
59
|
-
|
|
60
|
-
self.parser.insert_option_group(0, self.cmd_opts)
|
|
61
|
-
|
|
62
|
-
def paths(self):
|
|
63
|
-
"""All the entries of sys.path, possibly restricted by --path"""
|
|
64
|
-
if not self.select_paths:
|
|
65
|
-
return sys.path
|
|
66
|
-
result = []
|
|
67
|
-
match_any = set()
|
|
68
|
-
for path in sys.path:
|
|
69
|
-
path = os.path.normcase(os.path.abspath(path))
|
|
70
|
-
for match in self.select_paths:
|
|
71
|
-
match = os.path.normcase(os.path.abspath(match))
|
|
72
|
-
if '*' in match:
|
|
73
|
-
if re.search(fnmatch.translate(match + '*'), path):
|
|
74
|
-
result.append(path)
|
|
75
|
-
match_any.add(match)
|
|
76
|
-
break
|
|
77
|
-
else:
|
|
78
|
-
if path.startswith(match):
|
|
79
|
-
result.append(path)
|
|
80
|
-
match_any.add(match)
|
|
81
|
-
break
|
|
82
|
-
else:
|
|
83
|
-
logger.debug("Skipping path %s because it doesn't match %s"
|
|
84
|
-
% (path, ', '.join(self.select_paths)))
|
|
85
|
-
for match in self.select_paths:
|
|
86
|
-
if match not in match_any and '*' not in match:
|
|
87
|
-
result.append(match)
|
|
88
|
-
logger.debug("Adding path %s because it doesn't match "
|
|
89
|
-
"anything already on sys.path" % match)
|
|
90
|
-
return result
|
|
91
|
-
|
|
92
|
-
def run(self, options, args):
|
|
93
|
-
|
|
94
|
-
logger.deprecated('1.7', "DEPRECATION: 'pip zip' and 'pip unzip` are deprecated, and will be removed in a future release.")
|
|
95
|
-
|
|
96
|
-
self.select_paths = options.paths
|
|
97
|
-
self.simulate = options.simulate
|
|
98
|
-
if options.list:
|
|
99
|
-
return self.list(options, args)
|
|
100
|
-
if not args:
|
|
101
|
-
raise InstallationError(
|
|
102
|
-
'You must give at least one package to zip or unzip')
|
|
103
|
-
packages = []
|
|
104
|
-
for arg in args:
|
|
105
|
-
module_name, filename = self.find_package(arg)
|
|
106
|
-
if options.unzip and os.path.isdir(filename):
|
|
107
|
-
raise InstallationError(
|
|
108
|
-
'The module %s (in %s) is not a zip file; cannot be unzipped'
|
|
109
|
-
% (module_name, filename))
|
|
110
|
-
elif not options.unzip and not os.path.isdir(filename):
|
|
111
|
-
raise InstallationError(
|
|
112
|
-
'The module %s (in %s) is not a directory; cannot be zipped'
|
|
113
|
-
% (module_name, filename))
|
|
114
|
-
packages.append((module_name, filename))
|
|
115
|
-
last_status = None
|
|
116
|
-
for module_name, filename in packages:
|
|
117
|
-
if options.unzip:
|
|
118
|
-
last_status = self.unzip_package(module_name, filename)
|
|
119
|
-
else:
|
|
120
|
-
last_status = self.zip_package(module_name, filename, options.no_pyc)
|
|
121
|
-
return last_status
|
|
122
|
-
|
|
123
|
-
def unzip_package(self, module_name, filename):
|
|
124
|
-
zip_filename = os.path.dirname(filename)
|
|
125
|
-
if not os.path.isfile(zip_filename) and zipfile.is_zipfile(zip_filename):
|
|
126
|
-
raise InstallationError(
|
|
127
|
-
'Module %s (in %s) isn\'t located in a zip file in %s'
|
|
128
|
-
% (module_name, filename, zip_filename))
|
|
129
|
-
package_path = os.path.dirname(zip_filename)
|
|
130
|
-
if not package_path in self.paths():
|
|
131
|
-
logger.warn(
|
|
132
|
-
'Unpacking %s into %s, but %s is not on sys.path'
|
|
133
|
-
% (display_path(zip_filename), display_path(package_path),
|
|
134
|
-
display_path(package_path)))
|
|
135
|
-
logger.notify('Unzipping %s (in %s)' % (module_name, display_path(zip_filename)))
|
|
136
|
-
if self.simulate:
|
|
137
|
-
logger.notify('Skipping remaining operations because of --simulate')
|
|
138
|
-
return
|
|
139
|
-
logger.indent += 2
|
|
140
|
-
try:
|
|
141
|
-
## FIXME: this should be undoable:
|
|
142
|
-
zip = zipfile.ZipFile(zip_filename)
|
|
143
|
-
to_save = []
|
|
144
|
-
for info in zip.infolist():
|
|
145
|
-
name = info.filename
|
|
146
|
-
if name.startswith(module_name + os.path.sep):
|
|
147
|
-
content = zip.read(name)
|
|
148
|
-
dest = os.path.join(package_path, name)
|
|
149
|
-
if not os.path.exists(os.path.dirname(dest)):
|
|
150
|
-
os.makedirs(os.path.dirname(dest))
|
|
151
|
-
if not content and dest.endswith(os.path.sep):
|
|
152
|
-
if not os.path.exists(dest):
|
|
153
|
-
os.makedirs(dest)
|
|
154
|
-
else:
|
|
155
|
-
f = open(dest, 'wb')
|
|
156
|
-
f.write(content)
|
|
157
|
-
f.close()
|
|
158
|
-
else:
|
|
159
|
-
to_save.append((name, zip.read(name)))
|
|
160
|
-
zip.close()
|
|
161
|
-
if not to_save:
|
|
162
|
-
logger.info('Removing now-empty zip file %s' % display_path(zip_filename))
|
|
163
|
-
os.unlink(zip_filename)
|
|
164
|
-
self.remove_filename_from_pth(zip_filename)
|
|
165
|
-
else:
|
|
166
|
-
logger.info('Removing entries in %s/ from zip file %s' % (module_name, display_path(zip_filename)))
|
|
167
|
-
zip = zipfile.ZipFile(zip_filename, 'w')
|
|
168
|
-
for name, content in to_save:
|
|
169
|
-
zip.writestr(name, content)
|
|
170
|
-
zip.close()
|
|
171
|
-
finally:
|
|
172
|
-
logger.indent -= 2
|
|
173
|
-
|
|
174
|
-
def zip_package(self, module_name, filename, no_pyc):
|
|
175
|
-
orig_filename = filename
|
|
176
|
-
logger.notify('Zip %s (in %s)' % (module_name, display_path(filename)))
|
|
177
|
-
logger.indent += 2
|
|
178
|
-
if filename.endswith('.egg'):
|
|
179
|
-
dest_filename = filename
|
|
180
|
-
else:
|
|
181
|
-
dest_filename = filename + '.zip'
|
|
182
|
-
try:
|
|
183
|
-
## FIXME: I think this needs to be undoable:
|
|
184
|
-
if filename == dest_filename:
|
|
185
|
-
filename = backup_dir(orig_filename)
|
|
186
|
-
logger.notify('Moving %s aside to %s' % (orig_filename, filename))
|
|
187
|
-
if not self.simulate:
|
|
188
|
-
shutil.move(orig_filename, filename)
|
|
189
|
-
try:
|
|
190
|
-
logger.info('Creating zip file in %s' % display_path(dest_filename))
|
|
191
|
-
if not self.simulate:
|
|
192
|
-
zip = zipfile.ZipFile(dest_filename, 'w')
|
|
193
|
-
zip.writestr(module_name + '/', '')
|
|
194
|
-
for dirpath, dirnames, filenames in os.walk(filename):
|
|
195
|
-
if no_pyc:
|
|
196
|
-
filenames = [f for f in filenames
|
|
197
|
-
if not f.lower().endswith('.pyc')]
|
|
198
|
-
for fns, is_dir in [(dirnames, True), (filenames, False)]:
|
|
199
|
-
for fn in fns:
|
|
200
|
-
full = os.path.join(dirpath, fn)
|
|
201
|
-
dest = os.path.join(module_name, dirpath[len(filename):].lstrip(os.path.sep), fn)
|
|
202
|
-
if is_dir:
|
|
203
|
-
zip.writestr(dest + '/', '')
|
|
204
|
-
else:
|
|
205
|
-
zip.write(full, dest)
|
|
206
|
-
zip.close()
|
|
207
|
-
logger.info('Removing old directory %s' % display_path(filename))
|
|
208
|
-
if not self.simulate:
|
|
209
|
-
rmtree(filename)
|
|
210
|
-
except:
|
|
211
|
-
## FIXME: need to do an undo here
|
|
212
|
-
raise
|
|
213
|
-
## FIXME: should also be undone:
|
|
214
|
-
self.add_filename_to_pth(dest_filename)
|
|
215
|
-
finally:
|
|
216
|
-
logger.indent -= 2
|
|
217
|
-
|
|
218
|
-
def remove_filename_from_pth(self, filename):
|
|
219
|
-
for pth in self.pth_files():
|
|
220
|
-
f = open(pth, 'r')
|
|
221
|
-
lines = f.readlines()
|
|
222
|
-
f.close()
|
|
223
|
-
new_lines = [
|
|
224
|
-
l for l in lines if l.strip() != filename]
|
|
225
|
-
if lines != new_lines:
|
|
226
|
-
logger.info('Removing reference to %s from .pth file %s'
|
|
227
|
-
% (display_path(filename), display_path(pth)))
|
|
228
|
-
if not [line for line in new_lines if line]:
|
|
229
|
-
logger.info('%s file would be empty: deleting' % display_path(pth))
|
|
230
|
-
if not self.simulate:
|
|
231
|
-
os.unlink(pth)
|
|
232
|
-
else:
|
|
233
|
-
if not self.simulate:
|
|
234
|
-
f = open(pth, 'wb')
|
|
235
|
-
f.writelines(new_lines)
|
|
236
|
-
f.close()
|
|
237
|
-
return
|
|
238
|
-
logger.warn('Cannot find a reference to %s in any .pth file' % display_path(filename))
|
|
239
|
-
|
|
240
|
-
def add_filename_to_pth(self, filename):
|
|
241
|
-
path = os.path.dirname(filename)
|
|
242
|
-
dest = filename + '.pth'
|
|
243
|
-
if path not in self.paths():
|
|
244
|
-
logger.warn('Adding .pth file %s, but it is not on sys.path' % display_path(dest))
|
|
245
|
-
if not self.simulate:
|
|
246
|
-
if os.path.exists(dest):
|
|
247
|
-
f = open(dest)
|
|
248
|
-
lines = f.readlines()
|
|
249
|
-
f.close()
|
|
250
|
-
if lines and not lines[-1].endswith('\n'):
|
|
251
|
-
lines[-1] += '\n'
|
|
252
|
-
lines.append(filename + '\n')
|
|
253
|
-
else:
|
|
254
|
-
lines = [filename + '\n']
|
|
255
|
-
f = open(dest, 'wb')
|
|
256
|
-
f.writelines(lines)
|
|
257
|
-
f.close()
|
|
258
|
-
|
|
259
|
-
def pth_files(self):
|
|
260
|
-
for path in self.paths():
|
|
261
|
-
if not os.path.exists(path) or not os.path.isdir(path):
|
|
262
|
-
continue
|
|
263
|
-
for filename in os.listdir(path):
|
|
264
|
-
if filename.endswith('.pth'):
|
|
265
|
-
yield os.path.join(path, filename)
|
|
266
|
-
|
|
267
|
-
def find_package(self, package):
|
|
268
|
-
for path in self.paths():
|
|
269
|
-
full = os.path.join(path, package)
|
|
270
|
-
if os.path.exists(full):
|
|
271
|
-
return package, full
|
|
272
|
-
if not os.path.isdir(path) and zipfile.is_zipfile(path):
|
|
273
|
-
zip = zipfile.ZipFile(path, 'r')
|
|
274
|
-
try:
|
|
275
|
-
zip.read(os.path.join(package, '__init__.py'))
|
|
276
|
-
except KeyError:
|
|
277
|
-
pass
|
|
278
|
-
else:
|
|
279
|
-
zip.close()
|
|
280
|
-
return package, full
|
|
281
|
-
zip.close()
|
|
282
|
-
## FIXME: need special error for package.py case:
|
|
283
|
-
raise InstallationError(
|
|
284
|
-
'No package with the name %s found' % package)
|
|
285
|
-
|
|
286
|
-
def list(self, options, args):
|
|
287
|
-
if args:
|
|
288
|
-
raise InstallationError(
|
|
289
|
-
'You cannot give an argument with --list')
|
|
290
|
-
for path in sorted(self.paths()):
|
|
291
|
-
if not os.path.exists(path):
|
|
292
|
-
continue
|
|
293
|
-
basename = os.path.basename(path.rstrip(os.path.sep))
|
|
294
|
-
if os.path.isfile(path) and zipfile.is_zipfile(path):
|
|
295
|
-
if os.path.dirname(path) not in self.paths():
|
|
296
|
-
logger.notify('Zipped egg: %s' % display_path(path))
|
|
297
|
-
continue
|
|
298
|
-
if (basename != 'site-packages' and basename != 'dist-packages'
|
|
299
|
-
and not path.replace('\\', '/').endswith('lib/python')):
|
|
300
|
-
continue
|
|
301
|
-
logger.notify('In %s:' % display_path(path))
|
|
302
|
-
logger.indent += 2
|
|
303
|
-
zipped = []
|
|
304
|
-
unzipped = []
|
|
305
|
-
try:
|
|
306
|
-
for filename in sorted(os.listdir(path)):
|
|
307
|
-
ext = os.path.splitext(filename)[1].lower()
|
|
308
|
-
if ext in ('.pth', '.egg-info', '.egg-link'):
|
|
309
|
-
continue
|
|
310
|
-
if ext == '.py':
|
|
311
|
-
logger.info('Not displaying %s: not a package' % display_path(filename))
|
|
312
|
-
continue
|
|
313
|
-
full = os.path.join(path, filename)
|
|
314
|
-
if os.path.isdir(full):
|
|
315
|
-
unzipped.append((filename, self.count_package(full)))
|
|
316
|
-
elif zipfile.is_zipfile(full):
|
|
317
|
-
zipped.append(filename)
|
|
318
|
-
else:
|
|
319
|
-
logger.info('Unknown file: %s' % display_path(filename))
|
|
320
|
-
if zipped:
|
|
321
|
-
logger.notify('Zipped packages:')
|
|
322
|
-
logger.indent += 2
|
|
323
|
-
try:
|
|
324
|
-
for filename in zipped:
|
|
325
|
-
logger.notify(filename)
|
|
326
|
-
finally:
|
|
327
|
-
logger.indent -= 2
|
|
328
|
-
else:
|
|
329
|
-
logger.notify('No zipped packages.')
|
|
330
|
-
if unzipped:
|
|
331
|
-
if options.sort_files:
|
|
332
|
-
unzipped.sort(key=lambda x: -x[1])
|
|
333
|
-
logger.notify('Unzipped packages:')
|
|
334
|
-
logger.indent += 2
|
|
335
|
-
try:
|
|
336
|
-
for filename, count in unzipped:
|
|
337
|
-
logger.notify('%s (%i files)' % (filename, count))
|
|
338
|
-
finally:
|
|
339
|
-
logger.indent -= 2
|
|
340
|
-
else:
|
|
341
|
-
logger.notify('No unzipped packages.')
|
|
342
|
-
finally:
|
|
343
|
-
logger.indent -= 2
|
|
344
|
-
|
|
345
|
-
def count_package(self, path):
|
|
346
|
-
total = 0
|
|
347
|
-
for dirpath, dirnames, filenames in os.walk(path):
|
|
348
|
-
filenames = [f for f in filenames
|
|
349
|
-
if not f.lower().endswith('.pyc')]
|
|
350
|
-
total += len(filenames)
|
|
351
|
-
return total
|