forked from dalibo/pg_activity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
29 lines (25 loc) · 795 Bytes
/
setup.py
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
26
27
28
29
import sys
data_files = None
for opt in sys.argv:
if opt == '--with-man':
data_files = [ ('/usr/share/man/man1', ['docs/man/pg_activity.1']) ]
sys.argv.remove(opt)
from setuptools import setup
if sys.version_info < (2, 6):
raise SystemExit('ERROR: pg_activity need at least python 2.6 to work.')
setup(
name = 'pg_activity',
version = '1.3.1',
author = 'Julien Tachoires',
author_email = '[email protected]',
scripts = ['pg_activity'],
packages = ['pgactivity'],
url = 'https://github.com/julmon/pg_activity',
license = 'LICENSE.txt',
description = 'Command line tool for PostgreSQL server activity monitoring.',
install_requires = [
"psutil >= 0.4.1",
"psycopg2 >= 2.2.1",
],
data_files = data_files,
)