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

2022-02-01 Thread Elmir
Elmir added the comment: I agree that documenting third-party tools in CPython docs is a bit weird. I guess this is more an issue with setuptools docs. IMHO here is no clear explanation on how to build extension modules there. As a temporary work around, I wrote an example of building

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

2022-01-17 Thread Tal Einat
Tal Einat added the comment: First, I think that it's good and useful to have full, well-maintained examples of how to build extension modules in the docs. Second, until distutils is removed, I think we should keep the documentation for how to use it. Due to this, I don't think adding the

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

2022-01-02 Thread Éric Araujo
Éric Araujo added the comment: Distutils is deprecated, and core Python docs are not the place to show how to use a specific build system (thanks to a lot of work, we now have multiple viable build systems!). -- nosy: +eric.araujo ___ Python

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

2021-12-12 Thread Elmir
Elmir 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

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

2021-12-11 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +28282 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30062 ___ Python tracker ___

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

2021-12-11 Thread Nikita Sobolev
Nikita Sobolev added the comment: Or maybe we should just include https://github.com/python/cpython/blob/main/Doc/distutils/_setuptools_disclaimer.rst as others do? I will send my proposal :) -- nosy: +sobolevn ___ Python tracker

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

2021-12-07 Thread Elmir
New submission from Elmir : As the distutils have been deprecated, the documentation on building C/C++ extension modules should be updated to use more future proof tool. I guess the section: 'Building C and C++ Extensions with distutils' should be replaced with: 'Building C and C++