Skip to content

Commit

Permalink
Update build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
learnforpractice committed Mar 15, 2021
1 parent 2c586a0 commit f4df81a
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 3 deletions.
25 changes: 25 additions & 0 deletions 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')
Expand Down
2 changes: 1 addition & 1 deletion 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
2 changes: 1 addition & 1 deletion 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
13 changes: 12 additions & 1 deletion setup.py
Expand Up @@ -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
Expand Down

0 comments on commit f4df81a

Please sign in to comment.