Beispiel #1
0
 def finalize_options(self):
     self.options_dict = {}
     for (option_name, cmd_name) in self.option_to_cmds.items():
         if option_name in ['help', 'verbose']:
             continue
         value = getattr(self, option_name)
         if value is None:
             continue
         if is_flag(value):
             value = flag_on(value)
         self.options_dict[option_name] = value
Beispiel #2
0
 def finalize_options(self):
     self.options_dict = {}
     for (option_name, cmd_name) in self.option_to_cmds.items():
         if option_name in ['help', 'verbose']:
             continue
         value = getattr(self, option_name)
         if value is None:
             continue
         if is_flag(value):
             value = flag_on(value)
         self.options_dict[option_name] = value
Beispiel #3
0
    def finalize_options(self):
        self.options_dict = {}
        for (option_name, cmd_name) in self.option_to_cmds.items():
            if option_name in ['help', 'verbose']:
                continue
            value = getattr(self, option_name)
            if value is None:
                continue
            if is_flag(value):
                value = flag_on(value)
            # Check if there's any values that need to be fixed.
            if option_name == "include" and isinstance(value, str):
                value = re.findall('[^,;\s]+', value)

            self.options_dict[option_name] = value
Beispiel #4
0
    def finalize_options(self):
        self.options_dict = {}
        for (option_name, cmd_name) in self.option_to_cmds.items():
            if option_name in ['help', 'verbose']:
                continue
            value = getattr(self, option_name)
            if value is None:
                continue
            if is_flag(value):
                value = flag_on(value)
            # Check if there's any values that need to be fixed.
            if option_name == "include" and isinstance(value, str):
                value = re.findall('[^,;\s]+', value)

            self.options_dict[option_name] = value