summaryrefslogtreecommitdiff
path: root/pipermail/pycrypto/attachments/20100824/8b0898ce/attachment.htm
diff options
context:
space:
mode:
Diffstat (limited to 'pipermail/pycrypto/attachments/20100824/8b0898ce/attachment.htm')
-rw-r--r--pipermail/pycrypto/attachments/20100824/8b0898ce/attachment.htm3
1 files changed, 3 insertions, 0 deletions
diff --git a/pipermail/pycrypto/attachments/20100824/8b0898ce/attachment.htm b/pipermail/pycrypto/attachments/20100824/8b0898ce/attachment.htm
new file mode 100644
index 0000000..6b543bf
--- /dev/null
+++ b/pipermail/pycrypto/attachments/20100824/8b0898ce/attachment.htm
@@ -0,0 +1,3 @@
+<tt>
+&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&nbsp;style=&quot;word-wrap:&nbsp;break-word;&nbsp;-webkit-nbsp-mode:&nbsp;space;&nbsp;-webkit-line-break:&nbsp;after-white-space;&nbsp;&quot;&gt;Hello,&lt;br&gt;&lt;br&gt;I'm&nbsp;not&nbsp;sure&nbsp;if&nbsp;this&nbsp;is&nbsp;the&nbsp;best&nbsp;place&nbsp;for&nbsp;something&nbsp;like&nbsp;this,&nbsp;but&nbsp;I&nbsp;figured&nbsp;I'd&nbsp;share&nbsp;a&nbsp;workaround&nbsp;and&nbsp;a&nbsp;suggestion&nbsp;for&nbsp;others&nbsp;to&nbsp;take&nbsp;or&nbsp;leave.&nbsp;I'm&nbsp;currently&nbsp;running&nbsp;a&nbsp;64-bit&nbsp;Windows&nbsp;7&nbsp;machine&nbsp;for&nbsp;testing&nbsp;some&nbsp;of&nbsp;our&nbsp;codebase&nbsp;on&nbsp;Windows,&nbsp;and&nbsp;ran&nbsp;into&nbsp;a&nbsp;snag&nbsp;while&nbsp;installing&nbsp;PyCrypto&nbsp;(so&nbsp;I&nbsp;could&nbsp;use&nbsp;Fabric,&nbsp;which&nbsp;depends&nbsp;on&nbsp;Paramiko,&nbsp;which&nbsp;depends&nbsp;on&nbsp;PyCrypto).&amp;nbsp;&lt;br&gt;&lt;br&gt;As&nbsp;you&nbsp;are&nbsp;probably&nbsp;aware&nbsp;of,&nbsp;PyCrypto&nbsp;tries&nbsp;to&nbsp;download/compile&nbsp;winrandom,&nbsp;which&nbsp;can&nbsp;be&nbsp;a&nbsp;problem&nbsp;for&nbsp;many&nbsp;that&nbsp;lack&nbsp;a&nbsp;compiler.&nbsp;As&nbsp;an&nbsp;alternative&nbsp;for&nbsp;those&nbsp;who&nbsp;can't/won't&nbsp;install&nbsp;winrandom,&nbsp;I&nbsp;put&nbsp;together&nbsp;a&nbsp;ctypes&nbsp;equivalent&nbsp;that&nbsp;doesn't&nbsp;require&nbsp;compilation&nbsp;like&nbsp;the&nbsp;original&nbsp;winrandom.&nbsp;This&nbsp;new&nbsp;module&nbsp;aims&nbsp;to&nbsp;be&nbsp;functionally&nbsp;equivalent&nbsp;in&nbsp;every&nbsp;way&nbsp;to&nbsp;winrandom,&nbsp;but&nbsp;accesses&nbsp;the&nbsp;Windows-specific&nbsp;cryptography&nbsp;library&nbsp;through&nbsp;ctypes&nbsp;rather&nbsp;than&nbsp;a&nbsp;compiled&nbsp;Python&nbsp;C&nbsp;extension&nbsp;module.&lt;br&gt;&lt;br&gt;The&nbsp;PyPi&nbsp;page&nbsp;can&nbsp;be&nbsp;found&nbsp;at:&amp;nbsp;&lt;a&nbsp;href=&quot;http://pypi.python.org/pypi/winrandom-ctypes/&quot;&gt;http://pypi.python.org/pypi/winrandom-ctypes/&lt;/a&gt;&lt;br&gt;The&nbsp;Github&nbsp;page&nbsp;can&nbsp;be&nbsp;found&nbsp;at:&amp;nbsp;&lt;a&nbsp;href=&quot;http://github.com/duointeractive/winrandom-ctypes&quot;&gt;http://github.com/duointeractive/winrandom-ctypes&lt;/a&gt;&lt;br&gt;&lt;br&gt;I&nbsp;understand&nbsp;that&nbsp;going&nbsp;the&nbsp;ctypes&nbsp;route&nbsp;might&nbsp;raise&nbsp;the&nbsp;minimum&nbsp;Python&nbsp;version&nbsp;required&nbsp;(2.4&nbsp;or&nbsp;2.5?),&nbsp;so&nbsp;this&nbsp;probably&nbsp;isn't&nbsp;a&nbsp;one-size-fits-all&nbsp;solution.&nbsp;However,&nbsp;if&nbsp;there&nbsp;was&nbsp;anything&nbsp;that&nbsp;could&nbsp;be&nbsp;done&nbsp;to&nbsp;make&nbsp;it&nbsp;easier&nbsp;for&nbsp;a&nbsp;user&nbsp;to&nbsp;elect&nbsp;to&nbsp;use&nbsp;the&nbsp;ctypes&nbsp;version,&nbsp;that'd&nbsp;be&nbsp;great.&nbsp;Perhaps&nbsp;PyCrypto&nbsp;could&nbsp;check&nbsp;at&nbsp;install&nbsp;time&nbsp;whether&nbsp;winrandom&nbsp;is&nbsp;already&nbsp;installed,&nbsp;and&nbsp;skip&nbsp;trying&nbsp;to&nbsp;compile/re-install&nbsp;it&nbsp;(winrandom-ctypes&nbsp;provides&nbsp;winrandom)&nbsp;to&nbsp;allow&nbsp;a&nbsp;user&nbsp;to&nbsp;plug&nbsp;something&nbsp;else&nbsp;in&nbsp;(winrandom-ctypes?).&lt;br&gt;&lt;br&gt;Just&nbsp;thought&nbsp;I'd&nbsp;throw&nbsp;this&nbsp;out&nbsp;here&nbsp;for&nbsp;those&nbsp;who&nbsp;might&nbsp;find&nbsp;it&nbsp;useful&nbsp;in&nbsp;the&nbsp;painful&nbsp;situation&nbsp;that&nbsp;they&nbsp;have&nbsp;to&nbsp;develop&nbsp;on&nbsp;Windows.&lt;br&gt;&lt;br&gt;Greg&nbsp;Taylor&lt;br&gt;&lt;a&nbsp;href=&quot;http://duointeractive.com/&quot;&gt;http://duointeractive.com&lt;/a&gt;&lt;br&gt;DUO&nbsp;Interactive,&nbsp;LLC&lt;/body&gt;&lt;/html&gt;
+</tt>