forked from sovrin-foundation/sovrin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
42 lines (33 loc) · 1.18 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
import sys
import os
from setuptools import setup, find_packages, __version__
try:
SETUP_DIRNAME = os.path.dirname(__file__)
except NameError:
# We're probably being frozen, and __file__ triggered this NameError
# Work around this
SETUP_DIRNAME = os.path.dirname(sys.argv[0])
if SETUP_DIRNAME != '':
os.chdir(SETUP_DIRNAME)
SETUP_DIRNAME = os.path.abspath(SETUP_DIRNAME)
METADATA = os.path.join(SETUP_DIRNAME, 'sovrin', '__metadata__.py')
# Load the metadata using exec()
# so we don't trigger an import of ioflo.__init__
exec(compile(open(METADATA).read(), METADATA, 'exec'))
setup(
name='sovrin',
version=__version__,
description='Sovrin node',
url='https://github.com/sovrin-foundation/sovrin',
author=__author__,
author_email='[email protected]',
license=__license__,
keywords='Sovrin Genesis Transactions',
packages=find_packages(exclude=['docs', 'docs*']),
package_data={
'': ['*.txt', '*.md', '*.rst', '*.json', '*.conf', '*.html',
'*.css', '*.ico', '*.png', 'LICENSE', 'LEGAL', '*.indy']},
include_package_data=True,
install_requires=['indy-node', 'sovtoken', 'sovtokenfees'],
)