File: setup.py

package info (click to toggle)
psutils 3.3.14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,280 kB
  • sloc: python: 2,984; makefile: 28
file content (25 lines) | stat: -rw-r--r-- 539 bytes parent folder | download
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