docs/packages: Explicitly recommend usage of setuptools instead of distutils.

This commit is contained in:
Paul Sokolovsky 2017-12-16 10:41:45 +02:00
parent 9251f1395e
commit e37ccfe59b

View File

@ -204,12 +204,13 @@ Creating distribution packages
Distribution packages for MicroPython are created in the same manner Distribution packages for MicroPython are created in the same manner
as for CPython or any other Python implementation, see references at as for CPython or any other Python implementation, see references at
the end of chapter. "Source distribution" (sdist) format is used for the end of chapter. Setuptools (instead of distutils) should be used,
packaging. The post-processing discussed above, (and pre-processing because distutils do not support dependencies and other features. "Source
discussed in the following section) is achieved by using custom distribution" (``sdist``) format is used for packaging. The post-processing
"sdist" command for distutils/setuptools. Thus, packaging steps discussed above, (and pre-processing discussed in the following section)
remain the same as for standard distutils/setuptools, the user just is achieved by using custom ``sdist`` command for setuptools. Thus, packaging
need to override "sdist" command implementation by passing the steps remain the same as for the standard setuptools, the user just
needs to override ``sdist`` command implementation by passing the
appropriate argument to ``setup()`` call:: appropriate argument to ``setup()`` call::
from setuptools import setup from setuptools import setup