Fixing scrypt for windows a second time - tester needed

in #scrypt5 years ago (edited)

I tried to fix again the windows precompiled builds for windows for the scrypt library in version 0.8.9 (now 0.8.10).
There were some problems with importing scrypt which results in an error:

The specified module could not be found

This time, I check if the libeay32 or the libcrypto library is available in the openssl directory and adapt the library name. When libcrypto is there, I will use the static version of the library and link also user32 and gdi32.

elif sys.platform.startswith('win32'):
    define_macros = [('inline', '__inline')]

    extra_sources = ['scrypt-windows-stubs/gettimeofday.c']
    if struct.calcsize('P') == 8:
        if os.path.isdir('c:\OpenSSL-v111-Win64') and sys.version_info[0] > 3 and sys.version_info[1] > 4:
            openssl_dir = 'c:\OpenSSL-v111-Win64'
        else:
            openssl_dir = 'c:\OpenSSL-Win64'
        library_dirs = [openssl_dir + '\lib']
        includes = [openssl_dir + '\include', 'scrypt-windows-stubs/include']
    else:
        if os.path.isdir('c:\OpenSSL-v111-Win32'):
            openssl_dir = 'c:\OpenSSL-v111-Win32'
        else:
            openssl_dir = 'c:\OpenSSL-Win32'
        library_dirs = [openssl_dir + '\lib']
        includes = [openssl_dir + '\include', 'scrypt-windows-stubs/include']
    if os.path.isfile(library_dirs[0] + '\libcrypto.lib'):
        libraries = ['libcrypto_static', 'advapi32', 'user32', 'gdi32']
    else:
        libraries = ['libeay32', 'advapi32']

This allows it to compile scrypt with openssl 1.0.2 and 1.1.1. I created precomplied wheels for different python versions for 32 and 64 bit. For the 64bit version of python 2.7 and 3.4, I will use openssl 1.0.2 in the appveyer build server.

I downloaded all wheels from the appveyer build server:
image.png

and uploaded them to Pypi.

I need now some help in testing

I'm tested the python 3.7 build for 32 bit and 64 bit by:

pip install scrypt -U

It should say that 0.8.9 is installed:
image.png

I check if itworks by importing scrypt:
First I go into the python interpreter

python

then I import scrypt

import scrypt

It has worked, when there is no error message.

When you are using windows, could you test if scrypt 0.8.9 is working for you? That would be great.


Edit
I found a small typo, in order to correct it, I had to increase the version number to 0.8.10.

Sort:  

Thank you so much for participating in the Partiko Delegation Plan Round 1! We really appreciate your support! As part of the delegation benefits, we just gave you a 3.00% upvote! Together, let’s change the world!

God increase your strength friend

Hi @holger80!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your UA account score is currently 7.363 which ranks you at #61 across all Steem accounts.
Your rank has not changed in the last three days.

In our last Algorithmic Curation Round, consisting of 232 contributions, your post is ranked at #6.

Evaluation of your UA score:
  • Your follower network is great!
  • The readers appreciate your great work!
  • Great user engagement! You rock!

Feel free to join our @steem-ua Discord server

Hi, @holger80!

You just got a 2.78% upvote from SteemPlus!
To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn.
If you're not using SteemPlus yet, please check our last posts in here to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.

You got a 31.23% upvote from @ocdb courtesy of @holger80! :)

@ocdb is a non-profit bidbot for whitelisted Steemians, current max bid is 16 SBD and the equivalent amount in STEEM.
Check our website https://thegoodwhales.io/ for the whitelist, queue and delegation info. Join our Discord channel for more information.

If you like what @ocd does, consider voting for ocd-witness through SteemConnect or on the Steemit Witnesses page. :)

I tried it with python 3.6
scrypt1.png
Looks like it works
scrypt2.png