diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2020-01-19 11:43:44 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2020-01-19 11:43:44 -0500 |
commit | 7f6394863dc096b9f31e71a5843acbd836ff8d6c (patch) | |
tree | fec654007beab4fff0d9cb0bfa2db8cb6ccb91c4 /bootstrap.py | |
parent | d09dd5ff998887536e3e898ec7c007053d96e0aa (diff) | |
download | external_python_setuptools-7f6394863dc096b9f31e71a5843acbd836ff8d6c.tar.gz external_python_setuptools-7f6394863dc096b9f31e71a5843acbd836ff8d6c.tar.bz2 external_python_setuptools-7f6394863dc096b9f31e71a5843acbd836ff8d6c.zip |
Only run 'egg_info' when bootstrapping was required.
Diffstat (limited to 'bootstrap.py')
-rw-r--r-- | bootstrap.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/bootstrap.py b/bootstrap.py index 077bf690..8fa9e4b5 100644 --- a/bootstrap.py +++ b/bootstrap.py @@ -36,10 +36,11 @@ def ensure_egg_info(): if os.path.exists('setuptools.egg-info'): return print("adding minimal entry_points") - build_egg_info() + add_minimal_info() + run_egg_info() -def build_egg_info(): +def add_minimal_info(): """ Build a minimal egg-info, enough to invoke egg_info """ @@ -55,9 +56,4 @@ def run_egg_info(): subprocess.check_call(cmd) -def main(): - ensure_egg_info() - run_egg_info() - - -__name__ == '__main__' and main() +__name__ == '__main__' and ensure_egg_info() |