-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
44 lines (36 loc) · 1.08 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
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/env python
# -*- coding: utf-8 -*-
version = "0.1.0"
try:
import fastentrypoints
except ImportError:
from setuptools.command import easy_install
import pkg_resources
easy_install.main(['fastentrypoints'])
pkg_resources.require('fastentrypoints')
import fastentrypoints
import sys
from setuptools import setup, find_packages
if sys.version_info[0] == 2:
jsonrpclib = "jsonrpclib"
ep = {"console_scripts": ["zerophone_api_daemon = zerophone_api_daemon.zerophone_api_daemon:main"]}
elif sys.version_info[0] == 3:
jsonrpclib = "jsonrpclib-pelix"
ep = {}
setup(
name='zerophone_api_daemon',
packages=find_packages(),
version=version,
description='ZeroPhone API daemon',
author='CRImier',
author_email='crimier@yandex.ru',
install_requires=[
jsonrpclib,
"PyRIC",
"zerophone_hw >= 0.4.0"
],
url = 'https://github.com/ZeroPhone/Zerophone-API-Daemon',
download_url = 'https://github.com/ZeroPhone/Zerophone-API-Daemon/archive/{}.tar.gz'.format(version),
entry_points=ep
)
import sys