Hackfut Security File Manager
Current Path:
/usr/lib/python2.6/site-packages/pip/commands
usr
/
lib
/
python2.6
/
site-packages
/
pip
/
commands
/
📁
..
📄
__init__.py
(1.96 KB)
📄
__init__.pyc
(2.38 KB)
📄
__init__.pyo
(2.38 KB)
📄
completion.py
(1.94 KB)
📄
completion.pyc
(2.48 KB)
📄
completion.pyo
(2.48 KB)
📄
freeze.py
(2.28 KB)
📄
freeze.pyc
(2.7 KB)
📄
freeze.pyo
(2.7 KB)
📄
help.py
(982 B)
📄
help.pyc
(1.33 KB)
📄
help.pyo
(1.33 KB)
📄
install.py
(14.04 KB)
📄
install.pyc
(9.84 KB)
📄
install.pyo
(9.84 KB)
📄
list.py
(7.08 KB)
📄
list.pyc
(6.72 KB)
📄
list.pyo
(6.72 KB)
📄
search.py
(4.5 KB)
📄
search.pyc
(5.21 KB)
📄
search.pyo
(5.21 KB)
📄
show.py
(4.86 KB)
📄
show.pyc
(5.15 KB)
📄
show.pyo
(5.15 KB)
📄
uninstall.py
(2.82 KB)
📄
uninstall.pyc
(3.03 KB)
📄
uninstall.pyo
(3.03 KB)
📄
wheel.py
(7.27 KB)
📄
wheel.pyc
(6.18 KB)
📄
wheel.pyo
(6.18 KB)
Editing: freeze.py
from __future__ import absolute_import import sys import pip from pip.basecommand import Command from pip.operations.freeze import freeze from pip.wheel import WheelCache class FreezeCommand(Command): """ Output installed packages in requirements format. packages are listed in a case-insensitive sorted order. """ name = 'freeze' usage = """ %prog [options]""" summary = 'Output installed packages in requirements format.' log_streams = ("ext://sys.stderr", "ext://sys.stderr") def __init__(self, *args, **kw): super(FreezeCommand, self).__init__(*args, **kw) self.cmd_opts.add_option( '-r', '--requirement', dest='requirement', action='store', default=None, metavar='file', help="Use the order in the given requirements file and its " "comments when generating output.") self.cmd_opts.add_option( '-f', '--find-links', dest='find_links', action='append', default=[], metavar='URL', help='URL for finding packages, which will be added to the ' 'output.') self.cmd_opts.add_option( '-l', '--local', dest='local', action='store_true', default=False, help='If in a virtualenv that has global access, do not output ' 'globally-installed packages.') self.cmd_opts.add_option( '--user', dest='user', action='store_true', default=False, help='Only output packages installed in user-site.') self.parser.insert_option_group(0, self.cmd_opts) def run(self, options, args): format_control = pip.index.FormatControl(set(), set()) wheel_cache = WheelCache(options.cache_dir, format_control) freeze_kwargs = dict( requirement=options.requirement, find_links=options.find_links, local_only=options.local, user_only=options.user, skip_regex=options.skip_requirements_regex, isolated=options.isolated_mode, wheel_cache=wheel_cache) for line in freeze(**freeze_kwargs): sys.stdout.write(line + '\n')
Upload File
Create Folder