Skip to content

Commit c1a857a

Browse files
authored
distutils package was removed in 3.12 (#10249)
1 parent d5555b1 commit c1a857a

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

stdlib/VERSIONS

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ dbm: 2.7-
112112
decimal: 2.7-
113113
difflib: 2.7-
114114
dis: 2.7-
115-
distutils: 2.7-
115+
distutils: 2.7-3.11
116116
distutils.command.bdist_msi: 2.7-3.10
117117
distutils.command.bdist_wininst: 2.7-3.9
118118
doctest: 2.7-

stubs/babel/METADATA.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
version = "2.11.*"
2-
requires = ["types-pytz"]
2+
requires = ["types-pytz", "types-setuptools"]
33
obsolete_since = "2.12.1" # Released on 2023-02-28
44
partial_stub = true
55

stubs/babel/babel/messages/frontend.pyi

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import abc
22
from _typeshed import Incomplete
3-
from distutils.cmd import Command as _Command
43
from typing import Any
54

5+
from setuptools._distutils.cmd import Command as _Command
6+
67
def listify_value(arg, split: Incomplete | None = None): ...
78

89
class Command(_Command, metaclass=abc.ABCMeta):

stubs/cffi/METADATA.toml

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
version = "1.15.*"
2+
requires = ["types-setuptools"]
23

34
[tool.stubtest]
45
# linux and darwin are mostly equivalent, except for a single `RTLD_DEEPBIND` variable

stubs/cffi/cffi/api.pyi

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import distutils.core
21
import sys
32
import types
43
from _typeshed import Incomplete, ReadableBuffer, WriteableBuffer
@@ -7,6 +6,7 @@ from typing import Any, TypeVar, overload
76
from typing_extensions import Literal, TypeAlias
87

98
import _cffi_backend
9+
from setuptools._distutils.extension import Extension
1010

1111
_T = TypeVar("_T")
1212

@@ -93,7 +93,7 @@ class FFI:
9393
def set_source_pkgconfig(
9494
self, module_name: str, pkgconfig_libs: list[str], source: str, source_extension: str = ".c", **kwds: Any
9595
) -> None: ...
96-
def distutils_extension(self, tmpdir: str = "build", verbose: bool = True) -> distutils.core.Extension: ...
96+
def distutils_extension(self, tmpdir: str = "build", verbose: bool = True) -> Extension: ...
9797
def emit_c_code(self, filename: str) -> None: ...
9898
def emit_python_code(self, filename: str) -> None: ...
9999
def compile(self, tmpdir: str = ".", verbose: int = 0, target: str | None = None, debug: bool | None = None) -> str: ...

0 commit comments

Comments
 (0)