Skip to content
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

distutils package was removed in 3.12 #10249

Merged
merged 4 commits into from
Jun 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion stdlib/VERSIONS
Original file line number Diff line number Diff line change
Expand Up @@ -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-
Expand Down
2 changes: 1 addition & 1 deletion stubs/babel/METADATA.toml
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 2 additions & 1 deletion stubs/babel/babel/messages/frontend.pyi
Original file line number Diff line number Diff line change
@@ -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):
Expand Down
1 change: 1 addition & 0 deletions stubs/cffi/METADATA.toml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions stubs/cffi/cffi/api.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import distutils.core
import sys
import types
from _typeshed import Incomplete, ReadableBuffer, WriteableBuffer
Expand All @@ -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")

Expand Down Expand Up @@ -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: ...
Expand Down