m2m模型翻译
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
921 B

6 months ago
  1. import sys
  2. from setuptools.command.egg_info import egg_info as _egg_info
  3. class egg_info(_egg_info):
  4. def run(self):
  5. if 'sdist' in sys.argv:
  6. import warnings
  7. import textwrap
  8. msg = textwrap.dedent("""
  9. `build_src` is being run, this may lead to missing
  10. files in your sdist! You want to use distutils.sdist
  11. instead of the setuptools version:
  12. from distutils.command.sdist import sdist
  13. cmdclass={'sdist': sdist}"
  14. See numpy's setup.py or gh-7131 for details.""")
  15. warnings.warn(msg, UserWarning, stacklevel=2)
  16. # We need to ensure that build_src has been executed in order to give
  17. # setuptools' egg_info command real filenames instead of functions which
  18. # generate files.
  19. self.run_command("build_src")
  20. _egg_info.run(self)