summaryrefslogtreecommitdiff
path: root/pipermail/pycrypto/2014q2/000801.html
blob: 6d1514599aad26408dbe99f0deb444c811433731 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
 <HEAD>
   <TITLE> [pycrypto] Building a Win32 egg for PyCrypto 2.5
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:pycrypto%40lists.dlitz.net?Subject=Re%3A%20%5Bpycrypto%5D%20Building%20a%20Win32%20egg%20for%20PyCrypto%202.5&In-Reply-To=%3CCAL3j_b8Zr5c%2BcPQzOfGHB1P%3DG8Y0ctFVDox8%2BeaJ58a0SDvKjw%40mail.gmail.com%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <style type="text/css">
       pre {
           white-space: pre-wrap;       /* css-2.1, curent FF, Opera, Safari */
           }
   </style>
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="000800.html">
   <LINK REL="Next"  HREF="000802.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[pycrypto] Building a Win32 egg for PyCrypto 2.5</H1>
    <B>George V. Reilly</B> 
    <A HREF="mailto:pycrypto%40lists.dlitz.net?Subject=Re%3A%20%5Bpycrypto%5D%20Building%20a%20Win32%20egg%20for%20PyCrypto%202.5&In-Reply-To=%3CCAL3j_b8Zr5c%2BcPQzOfGHB1P%3DG8Y0ctFVDox8%2BeaJ58a0SDvKjw%40mail.gmail.com%3E"
       TITLE="[pycrypto] Building a Win32 egg for PyCrypto 2.5">george at reilly.org
       </A><BR>
    <I>Sun Apr 20 10:53:17 PDT 2014</I>
    <P><UL>
        <LI>Previous message: <A HREF="000800.html">[pycrypto] Building a Win32 egg for PyCrypto 2.5
</A></li>
        <LI>Next message: <A HREF="000802.html">[pycrypto] Is PyCrypto dead?
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#801">[ date ]</a>
              <a href="thread.html#801">[ thread ]</a>
              <a href="subject.html#801">[ subject ]</a>
              <a href="author.html#801">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>Well, I don't know about you, but it wasn't obvious to me that running
easy_install against an .EXE would (a) work at all or (b) work in a
virtualenv. And, yes, I do know about the Voidspace page; the same
link is right there in the middle of my message. Thanks to Michael
Foord for making the installers available to everyone.

This thread will have some google juice for future searchers.
--
/George V. Reilly  <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">george at reilly.org</A>  Twitter: @georgevreilly
<A HREF="http://www.georgevreilly.com/blog">http://www.georgevreilly.com/blog</A>


On Sat, Apr 19, 2014 at 11:44 PM, Dave Pawson &lt;<A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">dave.pawson at gmail.com</A>&gt; wrote:
&gt;<i> GIYF?
</I>&gt;<i>
</I>&gt;<i> <A HREF="http://www.voidspace.org.uk/python/modules.shtml#pycrypto">http://www.voidspace.org.uk/python/modules.shtml#pycrypto</A>
</I>&gt;<i>
</I>&gt;<i> regards
</I>&gt;<i>
</I>&gt;<i> On 20 April 2014 06:22, George V. Reilly &lt;<A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">george at reilly.org</A>&gt; wrote:
</I>&gt;&gt;<i> Today I needed to install PyCrypto into a virtualenv on a Windows box
</I>&gt;&gt;<i> that didn't have a compiler. I found that using easy_install against
</I>&gt;&gt;<i> the installer executable worked well.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>   REM download a PyCrypto installer from
</I>&gt;&gt;<i> <A HREF="http://www.voidspace.org.uk/python/modules.shtml#pycrypto">http://www.voidspace.org.uk/python/modules.shtml#pycrypto</A>
</I>&gt;&gt;<i>   REM say, pycrypto-2.6.win32-py2.7.exe
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>   MyEnv\Scripts\activate.bat
</I>&gt;&gt;<i>   easy_install pycrypto-2.6.win32-py2.7.exe
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> More than two years later, there's still zero Windows-related
</I>&gt;&gt;<i> information on building or installing PyCrypto anywhere on the
</I>&gt;&gt;<i> website. Since it's non-trivial, this omission continues to disappoint
</I>&gt;&gt;<i> me.
</I>&gt;&gt;<i> --
</I>&gt;&gt;<i> /George V. Reilly  <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">george at reilly.org</A>  Twitter: @georgevreilly
</I>&gt;&gt;<i> <A HREF="http://www.georgevreilly.com/blog">http://www.georgevreilly.com/blog</A>
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> On Sun, Jan 29, 2012 at 11:18 PM, George V. Reilly &lt;<A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">george at reilly.org</A>&gt; wrote:
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> I'm really surprised that there's no information on building Win32 eggs anywhere on the PyCrypto website or in the PyCrypto docs. With all the export regulations, I can understand why you might not want to supply pre-built binaries, but it would be good to explain how to do it. Michael Foord has supplied such binaries for earlier versions of PyCrypto, but there's none available for PyCrypto 2.5 yet.
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> I managed to figure it out today, with an assist from <A HREF="https://tahoe-lafs.org/trac/tahoe-lafs/wiki/HowtoBuildPyCryptoOnWindows">https://tahoe-lafs.org/trac/tahoe-lafs/wiki/HowtoBuildPyCryptoOnWindows</A>
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> Here's the batch file that I used:
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> REM Build a Win32 egg for Python 2.6 or 2.7
</I>&gt;&gt;&gt;<i> REM Assumes that you have the Visual Studio 2008 C++ compiler (Express suffices).
</I>&gt;&gt;&gt;<i> REM <A HREF="http://www.microsoft.com/visualstudio/en-us/products/2008-editions/express">http://www.microsoft.com/visualstudio/en-us/products/2008-editions/express</A>
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> if [&quot;%VCINSTALLDIR%&quot;]==[&quot;&quot;] (&quot;%VS90COMNTOOLS%&quot;vsvars32.bat)
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> @REM If package uses setuptools, this can be
</I>&gt;&gt;&gt;<i> @REM collapsed to &quot;python setup.py bdist_egg&quot;
</I>&gt;&gt;&gt;<i> python setup.py build
</I>&gt;&gt;&gt;<i> python -c &quot;import setuptools; execfile('setup.py')&quot; bdist_egg
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> The standard Windows binaries for Python 2.5 and earlier are built with different compilers. <A HREF="http://stackoverflow.com/questions/101061/building-python-c-extension-modules-for-windows">http://stackoverflow.com/questions/101061/building-python-c-extension-modules-for-windows</A> gives some hints.
</I>&gt;&gt;&gt;<i> --
</I>&gt;&gt;&gt;<i> /George V. Reilly  <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">george at reilly.org</A>  Twitter: @georgevreilly
</I>&gt;&gt;&gt;<i> <A HREF="http://www.georgevreilly.com/blog">http://www.georgevreilly.com/blog</A>  <A HREF="http://blogs.cozi.com/tech">http://blogs.cozi.com/tech</A>
</I>&gt;&gt;<i> _______________________________________________
</I>&gt;&gt;<i> pycrypto mailing list
</I>&gt;&gt;<i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">pycrypto at lists.dlitz.net</A>
</I>&gt;&gt;<i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</A>
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i> --
</I>&gt;<i> Dave Pawson
</I>&gt;<i> XSLT XSL-FO FAQ.
</I>&gt;<i> Docbook FAQ.
</I>&gt;<i> <A HREF="http://www.dpawson.co.uk">http://www.dpawson.co.uk</A>
</I>&gt;<i> _______________________________________________
</I>&gt;<i> pycrypto mailing list
</I>&gt;<i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">pycrypto at lists.dlitz.net</A>
</I>&gt;<i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</A>
</I></PRE>



<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="000800.html">[pycrypto] Building a Win32 egg for PyCrypto 2.5
</A></li>
	<LI>Next message: <A HREF="000802.html">[pycrypto] Is PyCrypto dead?
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#801">[ date ]</a>
              <a href="thread.html#801">[ thread ]</a>
              <a href="subject.html#801">[ subject ]</a>
              <a href="author.html#801">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">More information about the pycrypto
mailing list</a><br>
</body></html>