Skip to content

Commit

Permalink
Deprecation warning for setuptools.command._install
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed Nov 1, 2024
1 parent f410da1 commit cd4836f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions setuptools/command/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,16 @@
else:
easy_install_cls = None

# Prior to numpy 1.9, NumPy relies on the '_install' name, so provide it for
# now. See https://github.com/pypa/setuptools/issues/199/
_install = orig.install

def __getattr__(name: str): # pragma: no cover
if name == "_install":
SetuptoolsDeprecationWarning.emit(
"`setuptools.command._install` was an internal implementation detail "
+ "that was left in for numpy<1.9 support.",
due_date=(2025, 5, 2), # Originally added on 2024-11-01
)
return orig.install
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")


class install(orig.install):
Expand Down

0 comments on commit cd4836f

Please sign in to comment.