Skip to content

Commit f4df81a

Browse files
Update build scripts
1 parent 2c586a0 commit f4df81a

File tree

4 files changed

+39
-3
lines changed

4 files changed

+39
-3
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
# Python Bindings for Mixin
22

3+
# Dependencies
4+
5+
clang & go 1.6 & cmake
6+
7+
8+
# Build
9+
10+
```
11+
git clone https://github.com/learnforpractice/mixin-python --recursive
12+
cd mixin-python
13+
python3 -m pip install -r requirements.txt
14+
```
15+
16+
Linux
17+
18+
```
19+
./build_linux.sh
20+
```
21+
22+
macOS X
23+
24+
```
25+
./build_mac.sh
26+
```
27+
328
```python
429
from mixin.mixin_api import MixinApi
530
api = MixinApi('http://mixin-node0.exinpool.com:8239')

build-linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
CC=clang CXX=clang++ python3.7 setup.py sdist bdist_wheel
1+
CC=clang CXX=clang++ python3 setup.py sdist bdist_wheel

build-mac.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#rm src/mixin/libmixin.a
2-
CC=clang CXX=clang++ python3.7 setup.py sdist bdist_wheel --plat-name macosx-10.9-x86_64
2+
CC=clang CXX=clang++ python3 setup.py sdist bdist_wheel --plat-name macosx-10.9-x86_64

setup.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,18 @@
2929
package_data={'mixin': []},
3030
data_files = data_files,
3131
scripts=[],
32-
install_requires=[],
32+
install_requires=[
33+
"cryptography==2.4.2",
34+
"pycparser==2.19",
35+
"pycryptodome==3.7.2",
36+
"PyJWT==1.7.1",
37+
"python-dateutil==2.7.5",
38+
"PyYAML==3.13",
39+
"requests==2.21.0",
40+
"websocket-client==0.54.0",
41+
"websockets",
42+
"httpx"
43+
],
3344
tests_require=['pytest'],
3445
setup_requires=setup_requires,
3546
include_package_data=True

0 commit comments

Comments
 (0)