Merge pull request #51427 from omar-polo/platform-detect-openbsd

automatically detect openbsd as platform=linuxbsd
This commit is contained in:
Rémi Verschelde 2021-08-09 15:35:36 +02:00 committed by GitHub
commit 25fd4edd29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -201,7 +201,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"