<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px;white-space:nowrap">Khalid,</span><br><div><span style="font-family:arial,sans-serif;font-size:13px;white-space:nowrap">recent openssl bindings has that code:</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px;white-space:nowrap"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px;white-space:nowrap"><div> # OpenSSL goes by a different library name on different operating</div>
<div> # systems.</div><div> if sys.platform != "win32":</div><div> libraries = ["crypto", "ssl"]</div><div> else: # pragma: no cover</div><div> libraries = ["libeay32", "ssleay32", "advapi32"]</div>
<div><br></div><div><br></div><div>So your problem with different library naming is actually addressed.</div><div>HTH</div></span></div><div><span style="font-family:arial,sans-serif;font-size:13px;font-weight:bold;white-space:nowrap"><br>
</span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-02-20 18:43 GMT+02:00 Khalid [KAB] <span dir="ltr"><<a href="mailto:khabkr@yahoo.com" target="_blank">khabkr@yahoo.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello all.<br>
<br>
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.<br>
<br>
<br>
Congratulations on the first release.<br>
<br>
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.<br>
<br>
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.<br>
<br>
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.<br>
<br>
This made cryptography's build complete successfully and the package was installed without problems. Here is the summary output of py.test:<br>
<br>
=================================== ERRORS ====================================<br>
____________________ ERROR collecting tests/test_fernet.py ____________________<br>
tests\test_fernet.py:40: in <module><br>
> class TestFernet(object):<br>
tests\test_fernet.py:42: in TestFernet<br>
> ("secret", "now", "iv", "src", "token"), "generate.json",<br>
tests\test_fernet.py:32: in json_parametrize<br>
> with open(path) as f:<br>
E IOError: [Errno 2] No such file or directory: 'J:\\projs\\cryptograp<br>
hy-0.1\\tests\\vectors\\fernet\\generate.json'<br>
=========== 15473 passed, 47261 skipped, 1 error in 291.69 seconds ============<br>
<br>
<br>
I hope someone will find this useful.<br>
<br>
Khalid<br>
_______________________________________________<br>
Cryptography-dev mailing list<br>
<a href="mailto:Cryptography-dev@python.org">Cryptography-dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/cryptography-dev" target="_blank">https://mail.python.org/mailman/listinfo/cryptography-dev</a><br>
</blockquote></div><br></div>