mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
GH-92584: Remove distutils from the newtypes tutorial includes (#108024)
This commit is contained in:
parent
13966da71b
commit
e97b7bef4f
10 changed files with 42 additions and 43 deletions
7
Doc/includes/newtypes/pyproject.toml
Normal file
7
Doc/includes/newtypes/pyproject.toml
Normal file
|
@ -0,0 +1,7 @@
|
|||
[build-system]
|
||||
requires = ["setuptools"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "custom"
|
||||
version = "1"
|
8
Doc/includes/newtypes/setup.py
Normal file
8
Doc/includes/newtypes/setup.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
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"]),
|
||||
])
|
|
@ -187,13 +187,6 @@ Test cyclic gc(?)
|
|||
>>> gc.enable()
|
||||
"""
|
||||
|
||||
import os
|
||||
import sys
|
||||
from distutils.util import get_platform
|
||||
PLAT_SPEC = "%s-%d.%d" % (get_platform(), *sys.version_info[:2])
|
||||
src = os.path.join("build", "lib.%s" % PLAT_SPEC)
|
||||
sys.path.append(src)
|
||||
|
||||
if __name__ == "__main__":
|
||||
import doctest, __main__
|
||||
doctest.testmod(__main__)
|
|
@ -1,9 +0,0 @@
|
|||
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"]),
|
||||
])
|
Loading…
Add table
Add a link
Reference in a new issue