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.
2 parents 832c850 + cd4836f commit 89068c6Copy full SHA for 89068c6
setuptools/command/install.py
@@ -21,9 +21,16 @@
21
else:
22
easy_install_cls = None
23
24
-# Prior to numpy 1.9, NumPy relies on the '_install' name, so provide it for
25
-# now. See https://github.com/pypa/setuptools/issues/199/
26
-_install = orig.install
+
+def __getattr__(name: str): # pragma: no cover
+ if name == "_install":
27
+ SetuptoolsDeprecationWarning.emit(
28
+ "`setuptools.command._install` was an internal implementation detail "
29
+ + "that was left in for numpy<1.9 support.",
30
+ due_date=(2025, 5, 2), # Originally added on 2024-11-01
31
+ )
32
+ return orig.install
33
+ raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
34
35
36
class install(orig.install):
0 commit comments