We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cff2141 commit e2a96a5Copy full SHA for e2a96a5
setup.py
@@ -8,7 +8,6 @@
8
# ------------------------------
9
from __future__ import annotations
10
11
-import distutils.ccompiler
12
import os
13
import re
14
import shutil
@@ -18,12 +17,15 @@
18
17
import tempfile
19
import warnings
20
from collections.abc import Iterator
21
-from typing import Any
+from typing import TYPE_CHECKING, Any
22
23
from setuptools import Extension, setup
24
from setuptools.command.build_ext import build_ext
25
from setuptools.errors import CompileError
26
+if TYPE_CHECKING:
27
+ import distutils.ccompiler
28
+
29
30
def get_version() -> str:
31
version_file = "src/PIL/_version.py"
0 commit comments