diff options
author | Stephen Finucane <stephen@that.guru> | 2018-01-17 16:46:12 +0000 |
---|---|---|
committer | Stephen Finucane <stephen@that.guru> | 2018-01-20 13:05:06 +0000 |
commit | 30b7f3f4d6bdff7e8f9470f7ce385b9af4a1d7a8 (patch) | |
tree | a9745e8d7c00837d2c6b20f1c30dbdf54e52bbf9 /sphinx/setup_command.py | |
parent | 3a85b3502fcbf03c6bfe2b3b67af220c90180425 (diff) | |
download | sphinx-git-30b7f3f4d6bdff7e8f9470f7ce385b9af4a1d7a8.tar.gz |
setuptools: Don't create directories
Don't create the build or doctree directories. These are already handled
by 'sphinx.application.Application' and 'sphinx.builder.Builder',
respectively.
Signed-off-by: Stephen Finucane <stephen@that.guru>
Diffstat (limited to 'sphinx/setup_command.py')
-rw-r--r-- | sphinx/setup_command.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sphinx/setup_command.py b/sphinx/setup_command.py index 319abcf3a..56096c1b6 100644 --- a/sphinx/setup_command.py +++ b/sphinx/setup_command.py @@ -148,16 +148,12 @@ class BuildDoc(Command): if self.build_dir is None: build = self.get_finalized_command('build') self.build_dir = os.path.join(abspath(build.build_base), 'sphinx') # type: ignore - self.mkpath(self.build_dir) # type: ignore self.doctree_dir = os.path.join(self.build_dir, 'doctrees') - self.mkpath(self.doctree_dir) # type: ignore self.builder_target_dirs = [ (builder, os.path.join(self.build_dir, builder)) for builder in self.builder] # type: List[Tuple[str, unicode]] - for _, builder_target_dir in self.builder_target_dirs: - self.mkpath(builder_target_dir) # type: ignore def run(self): # type: () -> None |