[ SYSTEM ]: Linux srv.persadacompanies.com 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
[ SERVER ]: Apache | PHP: 8.4.19
[ USER ]: persadamedika | IP: 45.64.1.108
GEFORCE FILE MANAGER
/
usr
/
lib
/
python3.6
/
site-packages
/
pip
/
commands
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 __pycache__
SET
[ DEL ]
📄 __init__.py
2,244 B
SET
[ EDIT ]
|
[ DEL ]
📄 check.py
1,382 B
SET
[ EDIT ]
|
[ DEL ]
📄 completion.py
2,453 B
SET
[ EDIT ]
|
[ DEL ]
📄 download.py
7,810 B
SET
[ EDIT ]
|
[ DEL ]
📄 freeze.py
2,835 B
SET
[ EDIT ]
|
[ DEL ]
📄 hash.py
1,597 B
SET
[ EDIT ]
|
[ DEL ]
📄 help.py
982 B
SET
[ EDIT ]
|
[ DEL ]
📄 install.py
18,289 B
SET
[ EDIT ]
|
[ DEL ]
📄 list.py
11,369 B
SET
[ EDIT ]
|
[ DEL ]
📄 search.py
4,502 B
SET
[ EDIT ]
|
[ DEL ]
📄 show.py
5,891 B
SET
[ EDIT ]
|
[ DEL ]
📄 uninstall.py
2,884 B
SET
[ EDIT ]
|
[ DEL ]
📄 wheel.py
7,729 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: check.py
import logging from pip.basecommand import Command from pip.operations.check import check_requirements from pip.utils import get_installed_distributions logger = logging.getLogger(__name__) class CheckCommand(Command): """Verify installed packages have compatible dependencies.""" name = 'check' usage = """ %prog [options]""" summary = 'Verify installed packages have compatible dependencies.' def run(self, options, args): dists = get_installed_distributions(local_only=False, skip=()) missing_reqs_dict, incompatible_reqs_dict = check_requirements(dists) for dist in dists: key = '%s==%s' % (dist.project_name, dist.version) for requirement in missing_reqs_dict.get(key, []): logger.info( "%s %s requires %s, which is not installed.", dist.project_name, dist.version, requirement.project_name) for requirement, actual in incompatible_reqs_dict.get(key, []): logger.info( "%s %s has requirement %s, but you have %s %s.", dist.project_name, dist.version, requirement, actual.project_name, actual.version) if missing_reqs_dict or incompatible_reqs_dict: return 1 else: logger.info("No broken requirements found.")