[Cryptography-dev] Building on Windows 7, 64x
Alexander Belchenko
alexander.belchenko at gmail.com
Fri Feb 21 08:24:29 CET 2014
Khalid,
recent openssl bindings has that code:
# OpenSSL goes by a different library name on different operating
# systems.
if sys.platform != "win32":
libraries = ["crypto", "ssl"]
else: # pragma: no cover
libraries = ["libeay32", "ssleay32", "advapi32"]
So your problem with different library naming is actually addressed.
HTH
2014-02-20 18:43 GMT+02:00 Khalid [KAB] <khabkr at yahoo.com>:
> Hello all.
>
> I sent this sometime ago, but I don't know why it is not showing in the
> mail archives. Seeing the discussion about building on Windows, I am
> re-sending this, maybe it helps someone.
>
>
> Congratulations on the first release.
>
> Given the nature of the package, I opted to build everything from source.
> I started with openssl-1.0.0l and once that was built and installed, I set
> the include and lib environment variables for cryptography's build process
> to use.
>
> It turns out, however, that the openssl build creates two libraries:
> libeay32.lib and ssleay32.lib. This of course cause the build process of
> cryptography to fail since it cannot find crypto.lib and ssl.lib.
>
> But since I've come to know that libeay32.lib is crypto.lib and likewise
> ssleay32.lib is ssl.lib, I copied the original libraries (libeay32.lib and
> ssleay32.lib) to the same directory they were installed in by the openssl
> installation process and renamed them crypto.lib and ssl.lib respectively.
>
> This made cryptography's build complete successfully and the package was
> installed without problems. Here is the summary output of py.test:
>
> =================================== ERRORS
> ====================================
> ____________________ ERROR collecting tests/test_fernet.py
> ____________________
> tests\test_fernet.py:40: in <module>
> > class TestFernet(object):
> tests\test_fernet.py:42: in TestFernet
> > ("secret", "now", "iv", "src", "token"), "generate.json",
> tests\test_fernet.py:32: in json_parametrize
> > with open(path) as f:
> E IOError: [Errno 2] No such file or directory:
> 'J:\\projs\\cryptograp
> hy-0.1\\tests\\vectors\\fernet\\generate.json'
> =========== 15473 passed, 47261 skipped, 1 error in 291.69 seconds
> ============
>
>
> I hope someone will find this useful.
>
> Khalid
> _______________________________________________
> Cryptography-dev mailing list
> Cryptography-dev at python.org
> https://mail.python.org/mailman/listinfo/cryptography-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cryptography-dev/attachments/20140221/886059ee/attachment.html>
More information about the Cryptography-dev
mailing list