automatically detect BSDs as platform=linuxbsd
(cherry picked from commit 78cd0ffdba
)
This commit is contained in:
parent
832833e6a3
commit
abe5760a2d
1 changed files with 7 additions and 1 deletions
|
@ -198,7 +198,13 @@ elif env_base["p"] != "":
|
||||||
selected_platform = env_base["p"]
|
selected_platform = env_base["p"]
|
||||||
else:
|
else:
|
||||||
# Missing `platform` argument, try to detect platform automatically
|
# Missing `platform` argument, try to detect platform automatically
|
||||||
if sys.platform.startswith("linux"):
|
if (
|
||||||
|
sys.platform.startswith("linux")
|
||||||
|
or sys.platform.startswith("dragonfly")
|
||||||
|
or sys.platform.startswith("freebsd")
|
||||||
|
or sys.platform.startswith("netbsd")
|
||||||
|
or sys.platform.startswith("openbsd")
|
||||||
|
):
|
||||||
selected_platform = "x11"
|
selected_platform = "x11"
|
||||||
elif sys.platform == "darwin":
|
elif sys.platform == "darwin":
|
||||||
selected_platform = "osx"
|
selected_platform = "osx"
|
||||||
|
|
Loading…
Reference in a new issue