numpy_distribution.py 700 B

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