-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
32 lines (29 loc) · 917 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
30
31
32
#!/usr/bin/env python
# encoding: utf-8
import sys
from distutils.core import setup
from distutils.util import get_platform
"""Verify Python platform is Linux."""
platform = get_platform()
if platform.startswith('linux') == False:
sys.stderr.write("Daemon-Python is not compatible with %s\n" % platform)
sys.exit(1)
"""Determine appropriate Python version for installation."""
if sys.version_info[0] >= 3:
package_dir = {'': 'src/3.x.x'}
else:
package_dir = {'': 'src/2.x.x'}
setup(
name = 'daemon',
version = '0.2',
description = 'Lightweight and no-nonsense POSIX daemon library for Python (2.x.x/3.x.x)',
author = 'Fredrick Galoso - Stackd, LLC',
license = 'MIT/X11',
platforms='Linux',
url = 'https://github.com/stackd/daemon-py',
download_url = 'https://github.com/stackd/daemon-py.git',
package_dir = package_dir,
py_modules = [
'daemon',
],
)