__init__.py 541 B

1234567891011121314151617181920
  1. """distutils
  2. The main package for the Python Module Distribution Utilities. Normally
  3. used from a setup script as
  4. from distutils.core import setup
  5. setup (...)
  6. """
  7. import sys
  8. import warnings
  9. __version__ = sys.version[:sys.version.index(' ')]
  10. _DEPRECATION_MESSAGE = ("The distutils package is deprecated and slated for "
  11. "removal in Python 3.12. Use setuptools or check "
  12. "PEP 632 for potential alternatives")
  13. warnings.warn(_DEPRECATION_MESSAGE,
  14. DeprecationWarning, 2)