Skip to content

[doc] replace 'distutils' examples with 'setuptools' #90163

Closed as not planned
Closed as not planned

Description

@elmjag
mannequin
BPO 46005
Nosy @taleinat, @merwok, @sobolevn, @elmjag
PRs
  • bpo-46005: add note about setuptools to Doc/extending/building.rst #30062
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2021-12-07.08:08:57.511>
    labels = ['3.11', 'type-feature', '3.10', 'docs']
    title = "[doc] replace 'distutils' examples with 'setuptools'"
    updated_at = <Date 2022-02-02.07:53:49.787>
    user = 'https://github.com/elmjag'

    bugs.python.org fields:

    activity = <Date 2022-02-02.07:53:49.787>
    actor = 'elmjag'
    assignee = 'docs@python'
    closed = False
    closed_date = None
    closer = None
    components = ['Documentation']
    creation = <Date 2021-12-07.08:08:57.511>
    creator = 'elmjag'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 46005
    keywords = ['patch']
    message_count = 6.0
    messages = ['407896', '408333', '408428', '409512', '410844', '412341']
    nosy_count = 5.0
    nosy_names = ['taleinat', 'eric.araujo', 'docs@python', 'sobolevn', 'elmjag']
    pr_nums = ['30062']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue46005'
    versions = ['Python 3.10', 'Python 3.11']

    Activity

    1. elmjag commented on Feb 2, 2022

      elmjagmannequin
      MannequinAuthor

      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 extension module with setuptools here:

      https://elmjag.github.io/setuptools.html

    2. transferred this issue fromon Apr 10, 2022
    3. jacalata commented on Jun 25, 2022

      @jacalata

      This is the setuptools doc page: https://setuptools.pypa.io/en/latest/userguide/ext_modules.html, which is probably what needs to be updated

    4. aisk commented on Sep 18, 2023

      @aisk
      Member

      Currently, distutil has been removed. Should we remove this section and only refer to other third-party tools, especially setuptools?

    5. hugovk commented on Sep 18, 2023

      @hugovk
      Member

      This is how the pages looks now for 3.12 (will become /3/ when 3.12 is released): https://docs.python.org/3.12/extending/building.html

      Compare with 3.11 (the current /3/ docs version): https://docs.python.org/3.11/extending/building.html

      For 3.12 the distutils section has been removed, and replaced with a a reference to the setuptools page (in PR #95239).

      Is there anything else that needs doing for this issue or can we close it?

    6. merwok commented on Sep 18, 2023

      @merwok
      Member

      OK to close for me. @taleinat ?

    7. AA-Turner commented on Sep 19, 2023

      @AA-Turner
      Member

      #108030 addresses one final part (extending/windows).

      A

    8. StanFromIreland commented on Aug 10, 2025

      @StanFromIreland
      Member

      #108030 addresses one final part (extending/windows).

      This is now under a new issue, I think this is complete then?

    9. added
      pendingThe issue will be closed if no feedback is provided
      and removed
      3.11only security fixes
      3.12only security fixes
      on Aug 10, 2025
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      docsDocumentation in the Doc dirpendingThe issue will be closed if no feedback is provided

      Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions