mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-10 08:12:33 +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-atheris
|
||||||
types-defusedxml
|
types-defusedxml
|
||||||
types-olefile
|
types-olefile
|
||||||
types-setuptools
|
types-setuptools>=75.2.0
|
||||||
|
|
7
setup.py
7
setup.py
|
@ -16,11 +16,14 @@ import subprocess
|
||||||
import sys
|
import sys
|
||||||
import warnings
|
import warnings
|
||||||
from collections.abc import Iterator
|
from collections.abc import Iterator
|
||||||
from typing import Any
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
from setuptools import Extension, setup
|
from setuptools import Extension, setup
|
||||||
from setuptools.command.build_ext import build_ext
|
from setuptools.command.build_ext import build_ext
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from setuptools import _BuildInfo
|
||||||
|
|
||||||
|
|
||||||
def get_version() -> str:
|
def get_version() -> str:
|
||||||
version_file = "src/PIL/_version.py"
|
version_file = "src/PIL/_version.py"
|
||||||
|
@ -1001,7 +1004,7 @@ def debug_build() -> bool:
|
||||||
return hasattr(sys, "gettotalrefcount") or FUZZING_BUILD
|
return hasattr(sys, "gettotalrefcount") or FUZZING_BUILD
|
||||||
|
|
||||||
|
|
||||||
libraries = [
|
libraries: list[tuple[str, _BuildInfo]] = [
|
||||||
("pil_imaging_mode", {"sources": ["src/libImaging/Mode.c"]}),
|
("pil_imaging_mode", {"sources": ["src/libImaging/Mode.c"]}),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user