develop.py 641 B

1234567891011121314151617
  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 __future__ import division, absolute_import, print_function
  6. from setuptools.command.develop import develop as old_develop
  7. class develop(old_develop):
  8. __doc__ = old_develop.__doc__
  9. def install_for_development(self):
  10. # Build sources in-place, too.
  11. self.reinitialize_command('build_src', inplace=1)
  12. # Make sure scripts are built.
  13. self.run_command('build_scripts')
  14. old_develop.install_for_development(self)