From 875d2195fc8efa642c7bca714d468551d1805c6c Mon Sep 17 00:00:00 2001 From: Lucas Holt Date: Fri, 19 Nov 2021 16:04:29 -0500 Subject: Handle missing dependencies on MidnightBSD (#2019) --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 16b476f2..90ae5170 100755 --- a/setup.py +++ b/setup.py @@ -424,7 +424,10 @@ def main(): print(hilite("XCode (https://developer.apple.com/xcode/) " "is not installed"), color="red", file=sys.stderr) elif FREEBSD: - missdeps("pkg install gcc python%s" % py3) + if which('pkg'): + missdeps("pkg install gcc python%s" % py3) + elif which('mport'): # MidnightBSD + missdeps("mport install gcc python%s" % py3) elif OPENBSD: missdeps("pkg_add -v gcc python%s" % py3) elif NETBSD: -- cgit v1.2.1