Skip to content

Commit 875d219

Browse files
authored
Handle missing dependencies on MidnightBSD (#2019)
1 parent 7fa22e8 commit 875d219

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,10 @@ def main():
424424
print(hilite("XCode (https://developer.apple.com/xcode/) "
425425
"is not installed"), color="red", file=sys.stderr)
426426
elif FREEBSD:
427-
missdeps("pkg install gcc python%s" % py3)
427+
if which('pkg'):
428+
missdeps("pkg install gcc python%s" % py3)
429+
elif which('mport'): # MidnightBSD
430+
missdeps("mport install gcc python%s" % py3)
428431
elif OPENBSD:
429432
missdeps("pkg_add -v gcc python%s" % py3)
430433
elif NETBSD:

0 commit comments

Comments
 (0)