MCPcopy Create free account
hub / github.com/bpython/bpython / finalize_options

Method finalize_options

setup.py:145–166  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

143 return os.curdir
144
145 def finalize_options(self) -> None:
146 self.ensure_string_list("builder")
147
148 if self.source_dir is None:
149 self.source_dir = self._guess_source_dir()
150 self.announce("Using source directory %s" % self.source_dir)
151
152 self.ensure_dirname("source_dir")
153
154 if self.config_dir is None:
155 self.config_dir = self.source_dir
156
157 if self.build_dir is None:
158 build = self.get_finalized_command("build")
159 self.build_dir = os.path.join(abspath(build.build_base), "sphinx") # type: ignore
160
161 self.doctree_dir = os.path.join(self.build_dir, "doctrees")
162
163 self.builder_target_dirs = [
164 (builder, os.path.join(self.build_dir, builder))
165 for builder in self.builder
166 ]
167
168 def run(self) -> None:
169 if not color_terminal():

Callers

nothing calls this directly

Calls 1

_guess_source_dirMethod · 0.95

Tested by

no test coverage detected