MCPcopy Create free account
hub / github.com/numpy/numpy / todict

Method todict

numpy/distutils/misc_util.py:866–883  ·  view source on GitHub ↗

Return a dictionary compatible with the keyword arguments of distutils setup function. Examples -------- >>> setup(**config.todict()) #doctest: +SKIP

(self)

Source from the content-addressed store, hash-verified

864 self.setup_name = setup_name
865
866 def todict(self):
867 """
868 Return a dictionary compatible with the keyword arguments of distutils
869 setup function.
870
871 Examples
872 --------
873 >>> setup(**config.todict()) #doctest: +SKIP
874 """
875
876 self._optimize_data_files()
877 d = {}
878 known_keys = self.list_keys + self.dict_keys + self.extra_keys
879 for n in known_keys:
880 a = getattr(self, n)
881 if a:
882 d[n] = a
883 return d
884
885 def info(self, message):
886 if not self.options['quiet']:

Callers 8

default_config_dictFunction · 0.95
setup.pyFile · 0.80
setup.pyFile · 0.80
setup.pyFile · 0.80
setupFunction · 0.80
add_subpackageMethod · 0.80
add_extensionMethod · 0.80
setup.pyFile · 0.80

Calls 1

_optimize_data_filesMethod · 0.95

Tested by

no test coverage detected