mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
require types-setuptools>=75.2.0
this is necessary to have https://github.com/python/typeshed/pull/12791
This commit is contained in:
parent
96421923eb
commit
f7b57265ad
|
@ -9,4 +9,4 @@ sphinx
|
|||
types-atheris
|
||||
types-defusedxml
|
||||
types-olefile
|
||||
types-setuptools
|
||||
types-setuptools>=75.2.0
|
||||
|
|
7
setup.py
7
setup.py
|
@ -16,11 +16,14 @@ import subprocess
|
|||
import sys
|
||||
import warnings
|
||||
from collections.abc import Iterator
|
||||
from typing import Any
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
from setuptools import Extension, setup
|
||||
from setuptools.command.build_ext import build_ext
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from setuptools import _BuildInfo
|
||||
|
||||
|
||||
def get_version() -> str:
|
||||
version_file = "src/PIL/_version.py"
|
||||
|
@ -1001,7 +1004,7 @@ def debug_build() -> bool:
|
|||
return hasattr(sys, "gettotalrefcount") or FUZZING_BUILD
|
||||
|
||||
|
||||
libraries = [
|
||||
libraries: list[tuple[str, _BuildInfo]] = [
|
||||
("pil_imaging_mode", {"sources": ["src/libImaging/Mode.c"]}),
|
||||
]
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user