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

Method calc_extra_info

numpy/distutils/system_info.py:828–842  ·  view source on GitHub ↗

Updates the information in the current information with respect to these flags: extra_compile_args extra_link_args

(self)

Source from the content-addressed store, hash-verified

826 return self.__class__.__name__ in self.saved_results
827
828 def calc_extra_info(self):
829 """ Updates the information in the current information with
830 respect to these flags:
831 extra_compile_args
832 extra_link_args
833 """
834 info = {}
835 for key in ['extra_compile_args', 'extra_link_args']:
836 # Get values
837 opt = self.cp.get(self.section, key)
838 opt = _shell_utils.NativeParser.split(opt)
839 if opt:
840 tmp = {key: opt}
841 dict_append(info, **tmp)
842 return info
843
844 def get_info(self, notfound_action=0):
845 """ Return a dictionary with items that are compatible

Callers 6

set_infoMethod · 0.95
_calc_infoMethod · 0.80
calc_infoMethod · 0.80
test_allMethod · 0.80
test_temp2Method · 0.80
test_compile2Method · 0.80

Calls 3

dict_appendFunction · 0.70
getMethod · 0.45
splitMethod · 0.45

Tested by 3

test_allMethod · 0.64
test_temp2Method · 0.64
test_compile2Method · 0.64