CoolFace
Apppublic

Aluode/PerceptionLabPortable

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
__init__.py22 linesDownload Raw Back to command
1# mypy: disable_error_code=call-overload2# pyright: reportCallIssue=false, reportArgumentType=false3# Can't disable on the exact line because distutils doesn't exists on Python 3.124# and type-checkers aren't aware of distutils_hack,5# causing distutils.command.bdist.bdist.format_commands to be Any.6 7import sys8 9from distutils.command.bdist import bdist10 11if 'egg' not in bdist.format_commands:12    try:13        # format_commands is a dict in vendored distutils14        # It used to be a list in older (stdlib) distutils15        # We support both for backwards compatibility16        bdist.format_commands['egg'] = ('bdist_egg', "Python .egg file")17    except TypeError:18        bdist.format_command['egg'] = ('bdist_egg', "Python .egg file")19        bdist.format_commands.append('egg')20 21del bdist, sys22 
Aluode/PerceptionLabPortable · CoolFace