Return a dictionary compatible with the keyword arguments of distutils setup function. Examples -------- >>> setup(**config.todict()) #doctest: +SKIP
(self)
| 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']: |
no test coverage detected