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
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE> [pycrypto] Compiling on Windows tips
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:pycrypto%40lists.dlitz.net?Subject=Re%3A%20%5Bpycrypto%5D%20Compiling%20on%20Windows%20tips&In-Reply-To=%3CCAEncD4dqu2fx%3D%3DkZ%3D4-2jJx2X0h0NgztOe7d4FGbNa9qWEp8gQ%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="000840.html">
<LINK REL="Next" HREF="000842.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[pycrypto] Compiling on Windows tips</H1>
<B>Dave Pawson</B>
<A HREF="mailto:pycrypto%40lists.dlitz.net?Subject=Re%3A%20%5Bpycrypto%5D%20Compiling%20on%20Windows%20tips&In-Reply-To=%3CCAEncD4dqu2fx%3D%3DkZ%3D4-2jJx2X0h0NgztOe7d4FGbNa9qWEp8gQ%40mail.gmail.com%3E"
TITLE="[pycrypto] Compiling on Windows tips">dave.pawson at gmail.com
</A><BR>
<I>Mon Jun 15 09:59:36 PDT 2015</I>
<P><UL>
<LI>Previous message: <A HREF="000840.html">[pycrypto] Compiling on Windows tips
</A></li>
<LI>Next message: <A HREF="000842.html">[pycrypto] pycrypto Digest, Vol 75, Issue 2
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#841">[ date ]</a>
<a href="thread.html#841">[ thread ]</a>
<a href="subject.html#841">[ subject ]</a>
<a href="author.html#841">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Thanks Max.
simple question, which of the n variants of Vis Studio should we install please?
regards
On 2 June 2015 at 06:25, Max Polk <<A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">maxpolk at gmail.com</A>> wrote:
><i> I have some notes for compiling pip packages on Windows that may be of use.
</I>><i>
</I>><i> To build pycrypto with Visual Studio Express 10, edit the python
</I>><i> msvc9compiler.py, add the line here above the existing line:
</I>><i>
</I>><i> ld_args.append('/MANIFEST')
</I>><i> ld_args.append('/MANIFESTFILE:' + temp_manifest)
</I>><i>
</I>><i> Then use this to build:
</I>><i>
</I>><i> set VS90COMNTOOLS=%VS100COMNTOOLS%
</I>><i> python setup.py bdist_wininst
</I>><i>
</I>><i> The above creates an .exe in the dist directory such as
</I>><i> pycrypto-2.5.win32-py2.7.exe
</I>><i>
</I>><i> In general, for various pip packages that require compiling on Windows such
</I>><i> as tornado, to compile with Visual Studio from Python, trick Python into
</I>><i> using an old variable name before calling pip install:
</I>><i>
</I>><i> Visual Studio 2010 (VS10):
</I>><i> SET VS90COMNTOOLS=%VS100COMNTOOLS%
</I>><i>
</I>><i> Visual Studio 2012 (VS11):
</I>><i> SET VS90COMNTOOLS=%VS110COMNTOOLS%
</I>><i>
</I>><i> Visual Studio 2013 (VS12):
</I>><i> SET VS90COMNTOOLS=%VS120COMNTOOLS%
</I>><i>
</I>><i> If it is looking for Visual C++ 10, you will set VS100COMNTOOLS instead of
</I>><i> setting VS90COMNTOOLS.
</I>><i>
</I>><i> The above worked for pip install tornado on Windows python 2 and 3.
</I>><i>
</I>><i>
</I>><i> _______________________________________________
</I>><i> pycrypto mailing list
</I>><i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">pycrypto at lists.dlitz.net</A>
</I>><i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</A>
</I>><i>
</I>
--
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
<A HREF="http://www.dpawson.co.uk">http://www.dpawson.co.uk</A>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="000840.html">[pycrypto] Compiling on Windows tips
</A></li>
<LI>Next message: <A HREF="000842.html">[pycrypto] pycrypto Digest, Vol 75, Issue 2
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#841">[ date ]</a>
<a href="thread.html#841">[ thread ]</a>
<a href="subject.html#841">[ subject ]</a>
<a href="author.html#841">[ 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>
|