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

View file

@ -201,7 +201,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 = "linuxbsd" selected_platform = "linuxbsd"
elif sys.platform == "darwin": elif sys.platform == "darwin":
selected_platform = "osx" selected_platform = "osx"