8000 GH-92584: Remove distutils from the newtypes tutorial includes by AA-Turner · Pull Request #108024 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-92584: Remove distutils from the newtypes tutorial includes #108024

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Aug 22, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Build the extension types tutorial with setuptools
  • Loading branch information
AA-Turner committed Aug 16, 2023
commit 2b22389b9e0cdd4594e1e87b57badd35564b6000
7 changes: 7 additions & 0 deletions Doc/includes/newtypes/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "newtypes_tutorial"
version = "1"
17 changes: 8 additions & 9 deletions Doc/includes/newtypes/setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
from distutils.core import setup, Extension
setup(name="noddy", version="1.0",
ext_modules=[
Extension("noddy", ["noddy.c"]),
Extension("noddy2", ["noddy2.c"]),
Extension("noddy3", ["noddy3.c"]),
Extension("noddy4", ["noddy4.c"]),
Extension("shoddy", ["shoddy.c"]),
])
from setuptools import Extension, setup
setup(ext_modules=[
Extension("custom", ["custom.c"]),
Extension("custom2", ["custom2.c"]),
Extension("custom3", ["custom3.c"]),
Extension("custom4", ["custom4.c"]),
Extension("sublist", ["sublist.c"]),
])
0