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 3030import logging .handlers
3131from functools import total_ordering
3232from os import readlink
33+ import platform
3334import re
3435import shlex
3536import shutil
@@ -745,13 +746,14 @@ def build(self):
745746 sphinxbuild = self .venv / "bin" / "sphinx-build"
746747 blurb = self .venv / "bin" / "blurb"
747748 # Disable cpython switchers, we handle them now:
749+
750+ def is_mac ():
751+ return platform .system () == 'Darwin'
752+
748753 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" ]
755757 )
756758 self .version .setup_indexsidebar (
757759 self .versions ,
You can’t perform that action at this time.
0 commit comments