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