Skip to content

Commit 6ef81fe

Browse files
committed
Leave an empty 'egg_info.warn_depends_obsolete' to avoid erros when updating from source
1 parent 92382de commit 6ef81fe

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

setuptools/command/egg_info.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,16 @@ def write_pkg_info(cmd, basename, filename):
683683
bdist_egg.write_safety_flag(cmd.egg_info, safe)
684684

685685

686+
def warn_depends_obsolete(cmd, basename, filename):
687+
"""
688+
Unused: left to avoid errors when updating (from source) from <= 67.8.
689+
Old installations have a .dist-info directory with the entry-point
690+
``depends.txt = setuptools.command.egg_info:warn_depends_obsolete``.
691+
This may trigger errors when running the first egg_info in build_meta.
692+
TODO: Remove this function in a version sufficiently > 68.
693+
"""
694+
695+
686696
def _write_requirements(stream, reqs):
687697
lines = yield_lines(reqs or ())
688698

0 commit comments

Comments
 (0)