Tx c7f589c51275698ee30f9a1294cba6ffb973e721@43653541
Included in block
43,653,541
at 2020-05-23 13:13:51 (UTC)
Raw transaction
ref_block_num | 6,564 |
---|
ref_block_prefix | 4,175,981,561 |
---|
expiration | 2020-05-23 13:14:16 |
---|
operations | 0. | 0. | comment |
---|
1. | parent_author | "" |
---|
parent_permlink | steemdev |
---|
author | holger80 |
---|
permlink | fixing-the-windows-version-of-the-scrypt-library |
---|
title | "Fixing the windows build of the scrypt library" |
---|
body | "After seeing that scrypt no longer works for windows:
![image.png](https://ipfs.busy.org/ipfs/QmQXphZbUwCzd3YF84Qmz1dxY9bjrivVp3etSfiZ2MxUYG)
I had to act, as I'm the maintainer of the scrypt package. The package can be found here https://bitbucket.org/mhallin/py-scrypt/. The original author gave me write access to the repository as he is no longer maintaining it.
scrypt is an important package and is used in several python libraries as dependency (e.g. [python-bitshares,](https://github.com/bitshares/python-bitshares), [steem-python](https://github.com/steemit/steem-python), [beem](https://github.com/holgern/beem) )
The reason why it failed unter windows, is that a library in the OpenSSL package is renamed in the newest windows version of it. By fixing the names, I could compile it again.
![image.png](https://ipfs.busy.org/ipfs/QmQewtkBgGfCfqRqgS31aLvM532XF1LEhLvBFYUWdv5KJu)
### Compile scrypt in windows
A c compiler must be installed (e.g. Visual Studio 2017). Then,
Win64 OpenSSL v1.1.1a from https://slproweb.com/products/Win32OpenSSL.html must be installed to `c:\\OpenSSL-Win64`
A
```
python setup.py build
```
should now work.
## Precompiled wheels
I uploaded also several pre-compiled wheels.
![image.png](https://ipfs.busy.org/ipfs/QmceFwkpAjbkjsxJecxpTTgjUetR4sjWcmjbGJ47of7Sky)
A
```
pip install scrypt
```
under windows should also work without having a compiler.
## Anaconda
I pushed the changes to conda-forge and working packages are available for windows:
![image.png](https://ipfs.busy.org/ipfs/QmUF3LXsCAy5puQU3HhsRFDYFHqNWz8TvS8vaZGetCbpgt)
" |
---|
json_metadata | "{"community": "busy", "app": "hiveblog", "format": "markdown", "tags": ["steemdev", "python", "scrypt", "steemtank", "busy"], "users": [], "links": ["https://bitbucket.org/mhallin/py-scrypt/", "https://github.com/bitshares/python-bitshares", "https://github.com/steemit/steem-python", "https://github.com/holgern/beem", "https://slproweb.com/products/Win32OpenSSL.html"], "image": ["https://ipfs.busy.org/ipfs/QmQXphZbUwCzd3YF84Qmz1dxY9bjrivVp3etSfiZ2MxUYG", "https://ipfs.busy.org/ipfs/QmQewtkBgGfCfqRqgS31aLvM532XF1LEhLvBFYUWdv5KJu", "https://ipfs.busy.org/ipfs/QmceFwkpAjbkjsxJecxpTTgjUetR4sjWcmjbGJ47of7Sky", "https://ipfs.busy.org/ipfs/QmUF3LXsCAy5puQU3HhsRFDYFHqNWz8TvS8vaZGetCbpgt"], "canonical_url": "https://hive.blog/steemdev/@holger80/fixing-the-windows-version-of-the-scrypt-library"}" |
---|
|
---|
|
---|
|
---|
extensions | [] |
---|
signatures | 0. | 207d6fe5a17ccf95dcb311469e96cf6b48ca54517a263abc9a5122f0bc28aee3646ac670d99c7ff59132e5de225f310c5a324b68f42935024a27a5a50606bb729c |
---|
|
---|
transaction_id | c7f589c51275698ee30f9a1294cba6ffb973e721 |
---|
block_num | 43,653,541 |
---|
transaction_num | 10 |
---|