diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2021-10-22 16:12:38 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-22 16:12:38 -0400 |
| commit | 391bb5d4d09c9eb8d6b2b98968e623455ae0a384 (patch) | |
| tree | 377d795c5a3cccc372d7e88bde17fcc689b0c4c8 /setuptools/command | |
| parent | ce9cc34c020fac31a5e10e4b1ab4af3d66dc038c (diff) | |
| parent | fc5c3083908170e1cbfd1dec91f87a3e2707e3fa (diff) | |
| download | python-setuptools-git-391bb5d4d09c9eb8d6b2b98968e623455ae0a384.tar.gz | |
Merge pull request #2824 from pypa/debt/deprecate-setup-requires
Deprecate setup_requires, setup.py install, and easy_install command.
Diffstat (limited to 'setuptools/command')
| -rw-r--r-- | setuptools/command/easy_install.py | 6 | ||||
| -rw-r--r-- | setuptools/command/install.py | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index b88c3e9a..1aed0e87 100644 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -153,6 +153,12 @@ class easy_install(Command): create_index = PackageIndex def initialize_options(self): + warnings.warn( + "easy_install command is deprecated. " + "Use build and pip and other standards-based tools.", + EasyInstallDeprecationWarning, + ) + # the --user option seems to be an opt-in one, # so the default should be False. self.user = 0 diff --git a/setuptools/command/install.py b/setuptools/command/install.py index 72b9a3e4..35e54d20 100644 --- a/setuptools/command/install.py +++ b/setuptools/command/install.py @@ -30,6 +30,13 @@ class install(orig.install): _nc = dict(new_commands) def initialize_options(self): + + warnings.warn( + "setup.py install is deprecated. " + "Use build and pip and other standards-based tools.", + setuptools.SetuptoolsDeprecationWarning, + ) + orig.install.initialize_options(self) self.old_and_unmanageable = None self.single_version_externally_managed = None |
