distutils package was removed in 3.12 (#10249)

This commit is contained in:
Nikita Sobolev
2023-06-04 08:08:09 +03:00
committed by GitHub
parent d5555b1018
commit c1a857a41a
5 changed files with 7 additions and 5 deletions

View File

@@ -112,7 +112,7 @@ dbm: 2.7-
decimal: 2.7-
difflib: 2.7-
dis: 2.7-
distutils: 2.7-
distutils: 2.7-3.11
distutils.command.bdist_msi: 2.7-3.10
distutils.command.bdist_wininst: 2.7-3.9
doctest: 2.7-

View File

@@ -1,5 +1,5 @@
version = "2.11.*"
requires = ["types-pytz"]
requires = ["types-pytz", "types-setuptools"]
obsolete_since = "2.12.1" # Released on 2023-02-28
partial_stub = true

View File

@@ -1,8 +1,9 @@
import abc
from _typeshed import Incomplete
from distutils.cmd import Command as _Command
from typing import Any
from setuptools._distutils.cmd import Command as _Command
def listify_value(arg, split: Incomplete | None = None): ...
class Command(_Command, metaclass=abc.ABCMeta):

View File

@@ -1,4 +1,5 @@
version = "1.15.*"
requires = ["types-setuptools"]
[tool.stubtest]
# linux and darwin are mostly equivalent, except for a single `RTLD_DEEPBIND` variable

View File

@@ -1,4 +1,3 @@
import distutils.core
import sys
import types
from _typeshed import Incomplete, ReadableBuffer, WriteableBuffer
@@ -7,6 +6,7 @@ from typing import Any, TypeVar, overload
from typing_extensions import Literal, TypeAlias
import _cffi_backend
from setuptools._distutils.extension import Extension
_T = TypeVar("_T")
@@ -93,7 +93,7 @@ class FFI:
def set_source_pkgconfig(
self, module_name: str, pkgconfig_libs: list[str], source: str, source_extension: str = ".c", **kwds: Any
) -> None: ...
def distutils_extension(self, tmpdir: str = "build", verbose: bool = True) -> distutils.core.Extension: ...
def distutils_extension(self, tmpdir: str = "build", verbose: bool = True) -> Extension: ...
def emit_c_code(self, filename: str) -> None: ...
def emit_python_code(self, filename: str) -> None: ...
def compile(self, tmpdir: str = ".", verbose: int = 0, target: str | None = None, debug: bool | None = None) -> str: ...