-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
32 lines (29 loc) · 1.19 KB
/
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
30
31
32
# -*- coding:utf-8 -*-
import site
import sys
import sysconfig
from setuptools import setup
if '--user' in sys.argv: # There must be a better way to do this,
# if you know it, please tell me.
packages_path = site.getusersitepackages()
else:
packages_path = sysconfig.get_path('purelib')
version = '3'
setup (name = 'systemd-coredump-python',
version = version,
description = 'sys.excepthook helper to log Python exceptions in the journal via systemd-coredump',
long_description = open('README').read(),
author = 'Zbigniew Jędrzejewski-Szmek',
author_email = 'zbyszek@in.waw.pl',
url = 'https://github.com/systemd/systemd-coredump-python',
license = 'GPLv2+',
classifiers = [
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Logging',
'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
],
py_modules = ['systemd_coredump_exception_handler'],
data_files = [(packages_path, ["systemd_coredump.pth"])],
)