diff options
author | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2023-04-20 16:38:15 +0100 |
---|---|---|
committer | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2023-05-05 18:26:25 +0100 |
commit | 8e6aebfc108697e5d9de6319be2cfeed65c4bbb8 (patch) | |
tree | f29a277b5b9e7f1379c41b46ce75245eb16ec51b | |
parent | b99d25456ccccb66b63811a4cf9ee2cccd0ba42a (diff) | |
download | python-setuptools-git-8e6aebfc108697e5d9de6319be2cfeed65c4bbb8.tar.gz |
Add skip-egg-info to install command
-rw-r--r-- | setuptools/command/install.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/setuptools/command/install.py b/setuptools/command/install.py index dec4e320..22999c25 100644 --- a/setuptools/command/install.py +++ b/setuptools/command/install.py @@ -19,12 +19,13 @@ class install(orig.install): ('old-and-unmanageable', None, "Try not to use this!"), ('single-version-externally-managed', None, "used by system package builders to create 'flat' eggs"), + ('skip-egg-info', None, "*TRANSITIONAL* will be removed in the future"), ] boolean_options = orig.install.boolean_options + [ - 'old-and-unmanageable', 'single-version-externally-managed', + 'old-and-unmanageable', 'single-version-externally-managed', 'skip-egg-info' ] new_commands = [ - ('install_egg_info', lambda self: True), + ('install_egg_info', lambda self: not self.skip_egg_info), ('install_scripts', lambda self: True), ] _nc = dict(new_commands) @@ -46,6 +47,7 @@ class install(orig.install): orig.install.initialize_options(self) self.old_and_unmanageable = None self.single_version_externally_managed = None + self.skip_egg_info = False def finalize_options(self): orig.install.finalize_options(self) |