mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
distutils package was removed in 3.12 (#10249)
This commit is contained in:
@@ -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-
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user