forked from hummingbot/hummingbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·126 lines (118 loc) · 2.91 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#!/usr/bin/env python
from setuptools import setup
from Cython.Build import cythonize
import numpy as np
import os
import subprocess
if os.name == "posix":
os_name = subprocess.check_output("uname").decode("utf8")
if "Darwin" in os_name:
os.environ["CFLAGS"] = "-stdlib=libc++ -std=c++11"
else:
os.environ["CFLAGS"] = "-std=c++11"
def main():
version = "20190429"
packages = [
"wings",
"wings.logger",
"wings.model",
"wings.strategy",
"wings.watcher",
"wings.data_source",
"wings.orderbook",
"wings.tracker",
"wings.market",
"wings.wallet",
"hummingbot",
"hummingbot.strategy",
"hummingbot.strategy.arbitrage",
"hummingbot.strategy.cross_exchange_market_making",
"hummingbot.cli",
"hummingbot.cli.ui",
"hummingbot.cli.utils",
"hummingbot.logger",
"hummingbot.management",
"hummingbot.templates",
]
package_data = {
"wings": [
"cpp/*.h",
"abi/*.json",
],
"hummingbot": [
"erc20_tokens.json",
"VERSION",
"templates/*TEMPLATE.yml"
],
}
install_requires=[
"aioconsole",
"aiokafka",
"attrdict",
"cytoolz",
"eth-abi",
"eth-account",
"eth-hash",
"eth-keyfile",
"eth-keys",
"eth-rlp",
"eth-utils",
"hexbytes",
"kafka-python",
"lru-dict",
"parsimonious",
"pycryptodome",
"requests",
"rlp",
"toolz",
"tzlocal",
"urllib3",
"web3",
"websockets",
"aiohttp",
"async-timeout",
"attrs",
"certifi",
"chardet",
"cython==0.29.5",
"idna",
"idna_ssl",
"multidict",
"numpy",
"pandas",
"pytz",
"pyyaml",
"python-binance==0.6.9",
"sqlalchemy",
"ujson",
"yarl",
]
if "DEV_MODE" in os.environ:
version += ".dev1"
package_data[""] = [
"*.pxd", "*.pyx", "*.h"
]
package_data["wings"].append("cpp/*.cpp")
setup(name="hummingbot",
version=version,
description="CoinAlpha Hummingbot",
url="https://github.com/CoinAlpha/hummingbot",
author="Martin Kou",
author_email="[email protected]",
license="Proprietary",
packages=packages,
package_data=package_data,
install_requires=install_requires,
ext_modules=cythonize([
"hummingbot/**/*.pyx",
"wings/**/*.pyx",
], language="c++", language_level=3),
include_dirs=[
np.get_include(),
],
scripts=[
"bin/hummingbot.py"
],
)
if __name__ == "__main__":
main()