From f4df81af273d9b6260f636175600dfcd8b889d5d Mon Sep 17 00:00:00 2001 From: learnforpractice Date: Mon, 15 Mar 2021 13:19:40 +0800 Subject: [PATCH] Update build scripts --- README.md | 25 +++++++++++++++++++++++++ build-linux.sh | 2 +- build-mac.sh | 2 +- setup.py | 13 ++++++++++++- 4 files changed, 39 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index af84976..77fa2e9 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,30 @@ # Python Bindings for Mixin +# Dependencies + +clang & go 1.6 & cmake + + +# Build + +``` +git clone https://github.com/learnforpractice/mixin-python --recursive +cd mixin-python +python3 -m pip install -r requirements.txt +``` + +Linux + +``` +./build_linux.sh +``` + +macOS X + +``` +./build_mac.sh +``` + ```python from mixin.mixin_api import MixinApi api = MixinApi('http://mixin-node0.exinpool.com:8239') diff --git a/build-linux.sh b/build-linux.sh index a491894..dd34771 100755 --- a/build-linux.sh +++ b/build-linux.sh @@ -1 +1 @@ -CC=clang CXX=clang++ python3.7 setup.py sdist bdist_wheel +CC=clang CXX=clang++ python3 setup.py sdist bdist_wheel diff --git a/build-mac.sh b/build-mac.sh index 9e62be0..cf25e97 100755 --- a/build-mac.sh +++ b/build-mac.sh @@ -1,2 +1,2 @@ #rm src/mixin/libmixin.a -CC=clang CXX=clang++ python3.7 setup.py sdist bdist_wheel --plat-name macosx-10.9-x86_64 +CC=clang CXX=clang++ python3 setup.py sdist bdist_wheel --plat-name macosx-10.9-x86_64 diff --git a/setup.py b/setup.py index cc3e723..573ba0a 100644 --- a/setup.py +++ b/setup.py @@ -29,7 +29,18 @@ package_data={'mixin': []}, data_files = data_files, scripts=[], - install_requires=[], + install_requires=[ + "cryptography==2.4.2", + "pycparser==2.19", + "pycryptodome==3.7.2", + "PyJWT==1.7.1", + "python-dateutil==2.7.5", + "PyYAML==3.13", + "requests==2.21.0", + "websocket-client==0.54.0", + "websockets", + "httpx" + ], tests_require=['pytest'], setup_requires=setup_requires, include_package_data=True