'Set `path_file` and `extra_dirs` using `extra_path`.'

def handle_extra_path(self):

    if (self.extra_path is None):
        self.extra_path = self.distribution.extra_path
    if (self.extra_path is not None):
        if isinstance(self.extra_path, str):
            self.extra_path = self.extra_path.split(',')
        if (len(self.extra_path) == 1):
            path_file = extra_dirs = self.extra_path[0]
        elif (len(self.extra_path) == 2):
            (path_file, extra_dirs) = self.extra_path
        else:
            raise DistutilsOptionError("'extra_path'    option    must    be    a    list,    tuple,    or    comma-separated    string    with    1    or    2    elements")
        extra_dirs = convert_path(extra_dirs)
    else:
        path_file = None
        extra_dirs = ''
    self.path_file = path_file
    self.extra_dirs = extra_dirs
