summaryrefslogtreecommitdiff
path: root/pipermail/pycrypto/2010q1/000198.html
blob: 254b4074b8f3b69e193e15ab5f63e1111d618246 (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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [pycrypto] python crypto with python 3.0 or 3.1
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:pycrypto%40lists.dlitz.net?Subject=%5Bpycrypto%5D%20python%20crypto%20with%20python%203.0%20or%203.1&In-Reply-To=SNT132-w193E74A25DFDF35C5F7184B1690%40phx.gbl">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="000181.html">
   <LINK REL="Next"  HREF="000200.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[pycrypto] python crypto with python 3.0 or 3.1</H1>
    <B>Grail Dane</B> 
    <A HREF="mailto:pycrypto%40lists.dlitz.net?Subject=%5Bpycrypto%5D%20python%20crypto%20with%20python%203.0%20or%203.1&In-Reply-To=SNT132-w193E74A25DFDF35C5F7184B1690%40phx.gbl"
       TITLE="[pycrypto] python crypto with python 3.0 or 3.1">grail69 at hotmail.com
       </A><BR>
    <I>Fri Jan 15 03:20:20 CST 2010</I>
    <P><UL>
        <LI>Previous message: <A HREF="000181.html">[pycrypto] python crypto with python 3.0 or 3.1
</A></li>
        <LI>Next message: <A HREF="000200.html">[pycrypto] python crypto with python 3.0 or 3.1
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#198">[ date ]</a>
              <a href="thread.html#198">[ thread ]</a>
              <a href="subject.html#198">[ subject ]</a>
              <a href="author.html#198">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>
Hi All
So I am going to go on a limb a little and say I have successfully compiled pycrypto with python 3.1.1
The attached patch makes the necessary changes to remove any errors during install.If someone would like to give me a small test script, I am happy to see if my tinkering actually worksor is just allowing it to install??
I am also aware that some of the changes are probably not the best way to do it, but I am happy to investigatefurther once I have it working :)
CheersGrail

From: <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">grail69 at hotmail.com</A>
To: <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">pycrypto at lists.dlitz.net</A>
Date: Fri, 15 Jan 2010 00:32:04 +0000
Subject: Re: [pycrypto] python crypto with python 3.0 or 3.1








Hi
Thanks for the speedy reply :)
I am a little confused though as the doco for 3.1 says:
PyVarObjectThis is an extension of PyObject that adds the ob_size field. This is only used for objects that have some notion of length. This type does not often appear in the Python/C API. It corresponds to the fields defined by the expansion of the PyObject_VAR_HEAD macro.This appears to be the same as what is written in the doco for 2.6.4 as well, which pycrypto seems to work with.
Well i will keep looking to see what i can find out.
CheersGrail
&gt;<i> Date: Thu, 14 Jan 2010 10:07:36 +0100
</I>&gt;<i> From: <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">don at amberfisharts.com</A>
</I>&gt;<i> To: <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">pycrypto at lists.dlitz.net</A>
</I>&gt;<i> Subject: Re: [pycrypto] python crypto with python 3.0 or 3.1
</I>&gt;<i> 
</I>&gt;<i> Hi,
</I>&gt;<i> 
</I>&gt;<i> as far as I know there hasn't been a move to port pyCrypto to python 3.x
</I>&gt;<i> so simply compiling against python 3.x is bound to fail!
</I>&gt;<i> If you try to port yourself and during that effort ran into this compiler 
</I>&gt;<i> error then if you look at the documentation [1] or this blog post [2]
</I>&gt;<i> (it's
</I>&gt;<i> a bit outdated since the docs have been fixed in the meantime) you will
</I>&gt;<i> see
</I>&gt;<i> that the first few lines (besides other things) of a python extension type
</I>&gt;<i> have
</I>&gt;<i> changed from 
</I>&gt;<i>  
</I>&gt;<i>   PyObject_HEAD_INIT(NULL)
</I>&gt;<i>   0,                   /* ob_size */
</I>&gt;<i>   &quot;myTypeName&quot;,        /* tp_name */
</I>&gt;<i> 
</I>&gt;<i> to
</I>&gt;<i> 
</I>&gt;<i>   PyVarObject_HEAD_INIT(NULL, 0)
</I>&gt;<i>   &quot;myTypeName&quot;,        /* tp_name */
</I>&gt;<i> 
</I>&gt;<i> If I recall correctly, the ob_size has be moved to a different structure
</I>&gt;<i> and no longer
</I>&gt;<i> is a member of PyTypeObject.
</I>&gt;<i> So to sum it up:
</I>&gt;<i>  * no porting effort exist so far, AFAIK
</I>&gt;<i>  * no, the error is not bogus
</I>&gt;<i> 
</I>&gt;<i> sincerely yours
</I>&gt;<i> //Lorenz
</I>&gt;<i> 
</I>&gt;<i> [1] <A HREF="http://docs.python.org/dev/py3k/extending/newtypes.html">http://docs.python.org/dev/py3k/extending/newtypes.html</A>
</I>&gt;<i> [2]
</I>&gt;<i> <A HREF="http://rhodesmill.org/brandon/2008/porting-a-c-extension-module-to-python-30/">http://rhodesmill.org/brandon/2008/porting-a-c-extension-module-to-python-30/</A>
</I>&gt;<i> 
</I>&gt;<i> 
</I>&gt;<i> 
</I>&gt;<i> On Thu, 14 Jan 2010 07:52:59 +0000, Grail Dane &lt;<A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">grail69 at hotmail.com</A>&gt;
</I>&gt;<i> wrote:
</I>&gt;<i> &gt; Hi GuysI am new to the list but have recently run into this issue.Has
</I>&gt;<i> &gt; there been any movement?Personally I am stuck when gcc tries to compile
</I>&gt;<i> &gt; src/_fastmath.cwhich seems to die with an error about 'ob_size' member
</I>&gt;<i> not
</I>&gt;<i> &gt; existing :(This seems to be bogus as I traced back the struct's to
</I>&gt;<i> include
</I>&gt;<i> &gt; PyObject_VAR_HEADwhich does have this as member.Any further help on this
</I>&gt;<i> &gt; would be appreciated ;)Cheers Grail&gt;On Fri, Dec 04, 2009 at 11:44:00AM
</I>&gt;<i> &gt; +0100, Tobias Koeck wrote:&gt;&gt;Is it possible to run python crypto with
</I>&gt;<i> python
</I>&gt;<i> &gt; 3.0 or 3.1. If not is 
</I>&gt;<i> &gt;&gt;&gt;it planed to adjust?
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt;&gt;Sure, and it'll happen sooner if somebody volunteers to do it. :-)
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt;&gt;There will need to be be some strategy for Python 2.x compatibility, and
</I>&gt;<i> 
</I>&gt;<i> &gt;&gt;the contributor(s) need to to meet the PyCrypto Code Submission 
</I>&gt;<i> &gt;&gt;Requirements:
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt;&gt;<A HREF="http://www.dlitz.net/software/pycrypto/submission-requirements/">http://www.dlitz.net/software/pycrypto/submission-requirements/</A>
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt;&gt;-- 
</I>&gt;<i> &gt;&gt;Dwayne C. Litzenberger &lt;dlitz at dlitz.net&gt;
</I>&gt;<i> &gt;&gt;  Key-signing key   - 19E1 1FE8 B3CF F273 ED17  4A24 928C EC13 39C2 5CF7
</I>&gt;<i> &gt;&gt;  Annual key (2009) - C805 1746 397B 0202 2758  2821 58E0 894B 81D2 582E
</I>&gt;<i> &gt;&gt;
</I>&gt;<i> &gt; _________________________________________________________________
</I>&gt;<i> &gt; View photos of singles in your area! Browse profiles for FREE
</I>&gt;<i> &gt; <A HREF="http://clk.atdmt.com/NMN/go/150855801/direct/01/">http://clk.atdmt.com/NMN/go/150855801/direct/01/</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> 		 	   		  
If It Exists, You'll Find it on SEEK Shopping Trolley Mechanic 		 	   		  
_________________________________________________________________
Time for a new car? Sell your old one fast!
<A HREF="http://clk.atdmt.com/NMN/go/157637060/direct/01/">http://clk.atdmt.com/NMN/go/157637060/direct/01/</A>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <A HREF="http://lists.dlitz.net/pipermail/pycrypto/attachments/20100115/b2b73d11/attachment-0001.htm">http://lists.dlitz.net/pipermail/pycrypto/attachments/20100115/b2b73d11/attachment-0001.htm</A> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pycrypto-2.1.0-python3-1.patch
Type: application/octet-stream
Size: 31263 bytes
Desc: not available
Url : <A HREF="http://lists.dlitz.net/pipermail/pycrypto/attachments/20100115/b2b73d11/attachment-0001.obj">http://lists.dlitz.net/pipermail/pycrypto/attachments/20100115/b2b73d11/attachment-0001.obj</A> 
</PRE>


<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="000181.html">[pycrypto] python crypto with python 3.0 or 3.1
</A></li>
	<LI>Next message: <A HREF="000200.html">[pycrypto] python crypto with python 3.0 or 3.1
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#198">[ date ]</a>
              <a href="thread.html#198">[ thread ]</a>
              <a href="subject.html#198">[ subject ]</a>
              <a href="author.html#198">[ 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>