Skip to content

Commit

Permalink
Leave an empty 'egg_info.warn_depends_obsolete' to avoid erros when u…
Browse files Browse the repository at this point in the history
…pdating from source
  • Loading branch information
abravalheri committed Jun 19, 2023
1 parent 92382de commit 6ef81fe
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions setuptools/command/egg_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,16 @@ def write_pkg_info(cmd, basename, filename):
bdist_egg.write_safety_flag(cmd.egg_info, safe)


def warn_depends_obsolete(cmd, basename, filename):
"""
Unused: left to avoid errors when updating (from source) from <= 67.8.
Old installations have a .dist-info directory with the entry-point
``depends.txt = setuptools.command.egg_info:warn_depends_obsolete``.
This may trigger errors when running the first egg_info in build_meta.
TODO: Remove this function in a version sufficiently > 68.
"""


def _write_requirements(stream, reqs):
lines = yield_lines(reqs or ())

Expand Down

0 comments on commit 6ef81fe

Please sign in to comment.