X7ROOT File Manager
Current Path:
/lib/python2.7/site-packages/pip/_vendor
lib
/
python2.7
/
site-packages
/
pip
/
_vendor
/
??
..
??
__init__.py
(4.56 KB)
??
__init__.pyc
(3.13 KB)
??
__init__.pyo
(3.13 KB)
??
appdirs.py
(21.84 KB)
??
appdirs.pyc
(20.16 KB)
??
appdirs.pyo
(20.16 KB)
??
cachecontrol
??
certifi
??
chardet
??
colorama
??
distlib
??
distro.py
(37.45 KB)
??
distro.pyc
(35.11 KB)
??
distro.pyo
(35.11 KB)
??
html5lib
??
idna
??
ipaddress.py
(78.3 KB)
??
ipaddress.pyc
(75.99 KB)
??
ipaddress.pyo
(75.8 KB)
??
lockfile
??
packaging
??
pkg_resources
??
progress
??
pyparsing.py
(218.92 KB)
??
pyparsing.pyc
(224.71 KB)
??
pyparsing.pyo
(224.71 KB)
??
re-vendor.py
(773 B)
??
re-vendor.pyc
(1.41 KB)
??
re-vendor.pyo
(1.41 KB)
??
requests
??
retrying.py
(9.74 KB)
??
retrying.pyc
(9.97 KB)
??
retrying.pyo
(9.97 KB)
??
six.py
(29.39 KB)
??
six.pyc
(30.32 KB)
??
six.pyo
(30.32 KB)
??
urllib3
??
webencodings
Editing: re-vendor.py
import os import sys import pip import glob import shutil here = os.path.abspath(os.path.dirname(__file__)) def usage(): print("Usage: re-vendor.py [clean|vendor]") sys.exit(1) def clean(): for fn in os.listdir(here): dirname = os.path.join(here, fn) if os.path.isdir(dirname): shutil.rmtree(dirname) # six is a single file, not a package os.unlink(os.path.join(here, 'six.py')) def vendor(): pip.main(['install', '-t', here, '-r', 'vendor.txt']) for dirname in glob.glob('*.egg-info'): shutil.rmtree(dirname) if __name__ == '__main__': if len(sys.argv) != 2: usage() if sys.argv[1] == 'clean': clean() elif sys.argv[1] == 'vendor': vendor() else: usage()
Upload File
Create Folder