HiddenEye-Legacy/venv/lib/python3.8/site-packages/pip/_internal/models/scheme.py

32 lines
778 B
Python
Raw Normal View History

2020-08-17 21:33:09 +08:00
"""
For types associated with installation schemes.
For a general overview of available schemes and their context, see
https://docs.python.org/3/install/index.html#alternate-installation.
"""
2020-08-23 02:46:15 +08:00
SCHEME_KEYS = ['platlib', 'purelib', 'headers', 'scripts', 'data']
2020-08-17 21:33:09 +08:00
class Scheme(object):
"""A Scheme holds paths which are used as the base directories for
artifacts associated with a Python package.
"""
2020-08-23 02:46:15 +08:00
__slots__ = SCHEME_KEYS
2020-08-17 21:33:09 +08:00
def __init__(
self,
platlib, # type: str
purelib, # type: str
headers, # type: str
scripts, # type: str
data, # type: str
):
self.platlib = platlib
self.purelib = purelib
self.headers = headers
self.scripts = scripts
self.data = data