We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd8620b commit 27b193bCopy full SHA for 27b193b
build_docs.py
@@ -30,6 +30,7 @@
30
import logging.handlers
31
from functools import total_ordering
32
from os import readlink
33
+import platform
34
import re
35
import shlex
36
import shutil
@@ -745,13 +746,14 @@ def build(self):
745
746
sphinxbuild = self.venv / "bin" / "sphinx-build"
747
blurb = self.venv / "bin" / "blurb"
748
# Disable cpython switchers, we handle them now:
749
+
750
+ def is_mac():
751
+ return platform.system() == 'Darwin'
752
753
run(
- [
- "sed",
- "-i",
- "s/ *-A switchers=1//",
- self.checkout / "Doc" / "Makefile",
754
- ]
+ ["sed", "-i"]
755
+ + ([""] if is_mac() else [])
756
+ + ["s/ *-A switchers=1//", self.checkout / "Doc" / "Makefile"]
757
)
758
self.version.setup_indexsidebar(
759
self.versions,
0 commit comments