15. distutils ってなに
In Python 2.0, the distutils API was first added to
the standard library. This provided Linux distro
maintainers with a standard way of converting
Python projects into Linux distro packages, and
system administrators with a standard way of in-
stalling them directly onto target systems.
• Python パッケージを各種 OS のパッケージに変換した
り、直接インストールするための方法として用意さ
れた。
11
16. setuptools との関わり
• すでに多くの人が distutils を直接使わず、setuptools
経由で利用している
• 実質 setuptools.setup =
distutils.core.setup
• setup_requires を処理するためのフックがある
だけ
def setup(**attrs):
# Make sure we have any requirements needed
_install_setup_requires(attrs)
return distutils.core.setup(**attrs)
12