-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
43 lines (36 loc) · 1.08 KB
/
setup.py
File metadata and controls
43 lines (36 loc) · 1.08 KB
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
43
from __future__ import print_function
import sawtooth_sdk
import os
import subprocess
from setuptools import setup, find_packages
conf_dir = "/etc/sawtooth"
data_files = [
(conf_dir, ['med_python/packaging/med.toml.example'])
]
if os.path.exists("/etc/default"):
data_files.append(
('/etc/default', ['med_python/packaging/systemd/sawtooth-med-tp-python']))
if os.path.exists("/lib/systemd/system"):
data_files.append(('/lib/systemd/system',
['med_python/packaging/systemd/sawtooth-med-tp-python.service']))
setup(
name='sawtooth-med',
version="1.0",
description='Sawtooth Med',
author='Hyperledger Sawtooth',
url='https://github.com/hyperledger/sawtooth-sdk-python',
packages=find_packages(),
install_requires=[
'aiohttp',
'colorlog',
'protobuf',
'sawtooth-sdk',
'PyYAML',
],
data_files=data_files,
entry_points={
'console_scripts': [
'med = sawtooth_med.med_cli:main_wrapper',
'med-tp-python = sawtooth_med.processor.main:main',
]
})