GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GH-92584: Redirect to Setuptools' guidance on extension modules by AA-Turner · Pull Request #108030 · python/cpython

Conversation

@AA-Turner

@AA-Turner AA-Turner commented Aug 16, 2023 •
edited by github-actions Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

I'm unsure if we should just drop extending/windows entirely, as it internally reccomends just to use setuptools:

Module authors are encouraged to use the distutils approach for building extension modules, instead of the one described in this section.

A

  • Issue: PEP 632: Remove the distutils package (Python 3.12) #92584

📚 Documentation preview 📚: https://cpython-previews--108030.org.readthedocs.build/

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@AA-Turner AA-Turner added docs Documentation in the Doc dir skip news needs backport to 3.12 only security fixes labels Aug 16, 2023
@AA-Turner
AA-Turner requested review from vstinner, zooba and zware August 16, 2023 15:04
@bedevere-bot bedevere-bot mentioned this pull request Aug 16, 2023
PEP 632: Remove the distutils package (Python 3.12) #92584
Closed
@bedevere-bot bedevere-bot added the awaiting review label Aug 16, 2023
@zooba

zooba commented Aug 16, 2023

Copy link
Copy Markdown
Member

I'm unsure if we should just drop extending/windows entirely

It's got important information in there that probably doesn't officially exist anywhere else, and for POSIX devs trying to make stuff work on Windows I'm sure it's invaluable (though it would be nice to have similar guides for Windows devs trying to make stuff work on *nix, but I'm not going to hold my breath). Expecting people to extract the same information from setuptools or another backend is asking too much.

That said, it's in desperate need of cleanup and modernisation anyway, so I won't miss it. A cross-platform primer on building extension modules by hand (i.e. without setuptools), referencing sysconfig heavily I'd expect, would be a great replacement.

AA-Turner reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@AA-Turner

AA-Turner commented Aug 16, 2023

Copy link
Copy Markdown
Member Author

A cross-platform primer on building extension modules by hand (i.e. without setuptools), referencing sysconfig heavily I'd expect, would be a great replacement.

Should we open a new issue for this?

A

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@zooba

zooba commented Aug 16, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Should we open a new issue for this?

It won't hurt, but I'm not sure it'll help convince anyone to actually do it. But I don't know of any better place to put the note - maybe as a comment in the docs as well (referencing the soon-to-be-created new issue)?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@AA-Turner

AA-Turner commented Aug 16, 2023

Copy link
Copy Markdown
Member Author

Opened #108064

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@AA-Turner AA-Turner mentioned this pull request Sep 19, 2023
[doc] replace 'distutils' examples with 'setuptools' #90163
Closed
@serhiy-storchaka serhiy-storchaka added the needs backport to 3.13 only security fixes label May 9, 2024
@hugovk hugovk removed the needs backport to 3.12 only security fixes label Apr 10, 2025
@serhiy-storchaka serhiy-storchaka added the needs backport to 3.14 bugs and security fixes label May 8, 2025
@github-actions

github-actions Bot commented Apr 13, 2026

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Apr 13, 2026
@serhiy-storchaka serhiy-storchaka added the needs backport to 3.15 bugs and security fixes label May 30, 2026
@github-actions github-actions Bot removed the stale Stale PR or inactive for long period of time. label Jun 5, 2026
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

This PR is stale because it has been open for 90 days with no activity.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Sep 7, 2026
AA-Turner added 5 commits October 20, 2026 22:56
@AA-Turner @ambv
Redirect to Setuptools' guidance on extension modules
6688430
@AA-Turner @ambv
Remove "Building C and C++ Extensions on Windows"
8d392bf
@AA-Turner @ambv
Add note to building.rst
373746f
@AA-Turner @ambv
Remove extending/windows from toctree
25952c0
@AA-Turner @ambv
Update link in pyport.h
98cc4f1
@ambv
ambv force-pushed the drop-distutils-doc/ext-modules branch from e509f0d to 98cc4f1 Compare October 20, 2026 21:01
ambv added a commit to AA-Turner/cpython that referenced this pull request Oct 21, 2026
@ambv
Fix CI: drop deleted windows.rst from toctree, keep Py_NO_LINK_LIB do…
72b894b
…cumented (pythongh-108030)

Co-authored-by: Muse Code (Meta Muse Spark)
@read-the-docs-community

read-the-docs-community Bot commented Oct 21, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #35285559 | 📁 Comparing 00143b5 against main (1277a5e)

  🔍 Preview build  

4 files changed
± extending/building.html
± extending/index.html
± using/windows.html
- extending/windows.html
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ambv
Fix CI: drop deleted windows.rst from toctree, keep Py_NO_LINK_LIB do…
00143b5
…cumented (pythongh-108030)

Co-authored-by: Muse Code (Meta Muse Spark)
@ambv
ambv force-pushed the drop-distutils-doc/ext-modules branch from 72b894b to 00143b5 Compare October 21, 2026 01:52
@github-actions github-actions Bot removed the stale Stale PR or inactive for long period of time. label Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@vstinner vstinner Awaiting requested review from vstinner
@zooba zooba Awaiting requested review from zooba
@zware zware Awaiting requested review from zware

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

awaiting review docs Documentation in the Doc dir needs backport to 3.13 only security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes skip news

Projects

Docs PRs
Status: Todo

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@AA-Turner @zooba @hugovk @serhiy-storchaka @bedevere-bot @ambv
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.