scheme.py 778 B

12345678910111213141516171819202122232425262728293031
  1. """
  2. For types associated with installation schemes.
  3. For a general overview of available schemes and their context, see
  4. https://docs.python.org/3/install/index.html#alternate-installation.
  5. """
  6. SCHEME_KEYS = ['platlib', 'purelib', 'headers', 'scripts', 'data']
  7. class Scheme(object):
  8. """A Scheme holds paths which are used as the base directories for
  9. artifacts associated with a Python package.
  10. """
  11. __slots__ = SCHEME_KEYS
  12. def __init__(
  13. self,
  14. platlib, # type: str
  15. purelib, # type: str
  16. headers, # type: str
  17. scripts, # type: str
  18. data, # type: str
  19. ):
  20. self.platlib = platlib
  21. self.purelib = purelib
  22. self.headers = headers
  23. self.scripts = scripts
  24. self.data = data