Skip to content

Commit

Permalink
Handle missing dependencies on MidnightBSD (#2019)
Browse files Browse the repository at this point in the history
  • Loading branch information
laffer1 authored Nov 19, 2021
1 parent 7fa22e8 commit 875d219
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 875d219

Please sign in to comment.