numpy_distribution.py 634 B

1234567891011121314151617
  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)