-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathsetup.py
More file actions
25 lines (20 loc) · 539 Bytes
/
setup.py
File metadata and controls
25 lines (20 loc) · 539 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
"""setup.py for psutils"""
import subprocess
from build_manpages.build_manpages import ( # type: ignore
build_manpages,
get_build_py_cmd,
get_install_cmd,
)
from setuptools import setup
setup(
cmdclass={
"build_manpages": build_manpages,
"build_py": get_build_py_cmd(),
"install": get_install_cmd(),
}
)
# Test we have 'paper' (from libpaper) installed
try:
subprocess.check_output(["paper"])
except OSError as exc:
raise SystemExit("psutils needs libpaper >= 2 to work") from exc