develop.py 575 B

123456789101112131415
  1. """ Override the develop command from setuptools so we can ensure that our
  2. generated files (from build_src or build_scripts) are properly converted to real
  3. files with filenames.
  4. """
  5. from setuptools.command.develop import develop as old_develop
  6. class develop(old_develop):
  7. __doc__ = old_develop.__doc__
  8. def install_for_development(self):
  9. # Build sources in-place, too.
  10. self.reinitialize_command('build_src', inplace=1)
  11. # Make sure scripts are built.
  12. self.run_command('build_scripts')
  13. old_develop.install_for_development(self)