Skip to content

Commit 5b39e4e

Browse files
committed
Add the deprecation warning to attribute access.
1 parent 30c0038 commit 5b39e4e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

setuptools/command/easy_install.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from setuptools import Command
66

7-
from .. import _scripts
7+
from .. import _scripts, warnings
88

99

1010
class easy_install(Command):
@@ -21,4 +21,10 @@ def __getattr__(name):
2121
),
2222
name,
2323
)
24+
warnings.SetuptoolsDeprecationWarning.emit(
25+
summary="easy_install module is deprecated",
26+
details="Avoid accessing attributes of setuptools.command.easy_install.",
27+
due_date=(2025, 10, 31),
28+
see_url="https://github.com/pypa/setuptools/issues/4976",
29+
)
2430
return attr

0 commit comments

Comments
 (0)