File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 30
30
import logging .handlers
31
31
from functools import total_ordering
32
32
from os import readlink
33
+ import platform
33
34
import re
34
35
import shlex
35
36
import shutil
@@ -745,13 +746,14 @@ def build(self):
745
746
sphinxbuild = self .venv / "bin" / "sphinx-build"
746
747
blurb = self .venv / "bin" / "blurb"
747
748
# Disable cpython switchers, we handle them now:
749
+
750
+ def is_mac ():
751
+ return platform .system () == 'Darwin'
752
+
748
753
run (
749
- [
750
- "sed" ,
751
- "-i" ,
752
- "s/ *-A switchers=1//" ,
753
- self .checkout / "Doc" / "Makefile" ,
754
- ]
754
+ ["sed" , "-i" ]
755
+ + (["" ] if is_mac () else [])
756
+ + ["s/ *-A switchers=1//" , self .checkout / "Doc" / "Makefile" ]
755
757
)
756
758
self .version .setup_indexsidebar (
757
759
self .versions ,
You can’t perform that action at this time.
0 commit comments