automatically detect BSDs as platform=linuxbsd

This commit is contained in:
Omar Polo 2021-08-09 13:11:53 +00:00
parent 0cbb19a246
commit 78cd0ffdba

View file

@ -196,7 +196,13 @@ elif env_base["p"] != "":
selected_platform = env_base["p"]
else:
# 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 = "linuxbsd"
elif sys.platform == "darwin":
selected_platform = "osx"