Skip to content

Commit

Permalink
Fix build for conda feedstock
Browse files Browse the repository at this point in the history
  • Loading branch information
holgern committed Feb 12, 2019
1 parent 36ce979 commit 9efcc8d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ PyPy as well.

Changelog
=========
0.8.11
------

* fix build for conda feedstock

0.8.10
------

Expand Down
2 changes: 1 addition & 1 deletion scrypt/scrypt.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
c_size_t, c_double, c_int, c_uint64, c_uint32,
create_string_buffer)

__version__ = '0.8.10'
__version__ = '0.8.11'

_scrypt = cdll.LoadLibrary(imp.find_module('_scrypt')[1])

Expand Down
10 changes: 8 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,25 @@
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'
elif os.path.isdir('c:\Program Files\OpenSSL'):
openssl_dir = 'c:\Program Files\OpenSSL'
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'
elif os.path.isdir('c:\Program Files\OpenSSL'):
openssl_dir = 'c:\Program Files\OpenSSL'
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'):
if os.path.isfile(library_dirs[0] + '\libcrypto_static.lib'):
libraries = ['libcrypto_static', 'advapi32', 'user32', 'gdi32']
elif os.path.isfile(library_dirs[0] + '\libcrypto.lib'):
libraries = ['libcrypto', 'advapi32', 'user32', 'gdi32']
else:
libraries = ['libeay32', 'advapi32']

Expand Down Expand Up @@ -98,7 +104,7 @@
libraries=libraries)

setup(name='scrypt',
version='0.8.10',
version='0.8.11',
description='Bindings for the scrypt key derivation function library',
author='Magnus Hallin',
author_email='[email protected]',
Expand Down

0 comments on commit 9efcc8d

Please sign in to comment.