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.

17 lines
634 B

6 months ago
  1. # XXX: Handle setuptools ?
  2. from distutils.core import Distribution
  3. # This class is used because we add new files (sconscripts, and so on) with the
  4. # scons command
  5. class NumpyDistribution(Distribution):
  6. def __init__(self, attrs = None):
  7. # A list of (sconscripts, pre_hook, post_hook, src, parent_names)
  8. self.scons_data = []
  9. # A list of installable libraries
  10. self.installed_libraries = []
  11. # A dict of pkg_config files to generate/install
  12. self.installed_pkg_config = {}
  13. Distribution.__init__(self, attrs)
  14. def has_scons_scripts(self):
  15. return bool(self.scons_data)