diff options
author | Lucas Holt <luke@foolishgames.com> | 2021-11-19 16:04:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-19 22:04:29 +0100 |
commit | 875d2195fc8efa642c7bca714d468551d1805c6c (patch) | |
tree | 7403c1c85cad988d01966a2f10cc73f202a10489 /setup.py | |
parent | 7fa22e8b8510e2bcf03694204ada1ee7be82e477 (diff) | |
download | psutil-875d2195fc8efa642c7bca714d468551d1805c6c.tar.gz |
Handle missing dependencies on MidnightBSD (#2019)
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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: |