[issue46005] [doc] replace 'distutils' examples with 'setuptools'

Elmir report at bugs.python.org
Mon Dec 13 02:53:07 EST 2021


Elmir <elmir.jagudin at maxiv.lu.se> added the comment:

I think it would be very helpful to include an example how to build with setuptools as well. As it in the end boils down to two simple steps:

* install 'setuptools' package
* change import line:

"from distutils.core import setup, Extension" 

to

"from setuptools import setup, Extension"

It took me a lot of time to figure out that 'setuptools' have this 'drop-in replacement' API for distutils. IMHO, it's not very well documented anywhere.

I can make a PR with such addition, if you thinks it's good idea.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46005>
_______________________________________


More information about the Python-bugs-list mailing list