diff options
Diffstat (limited to 'pipermail/pycrypto/2010q1/000182.html')
-rw-r--r-- | pipermail/pycrypto/2010q1/000182.html | 179 |
1 files changed, 179 insertions, 0 deletions
diff --git a/pipermail/pycrypto/2010q1/000182.html b/pipermail/pycrypto/2010q1/000182.html new file mode 100644 index 0000000..14c0c10 --- /dev/null +++ b/pipermail/pycrypto/2010q1/000182.html @@ -0,0 +1,179 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<HTML> + <HEAD> + <TITLE> [pycrypto] FW: 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%20FW%3A%20%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="000201.html"> + <LINK REL="Next" HREF="000183.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[pycrypto] FW: python crypto with python 3.0 or 3.1</H1> + <B>Grail Dane</B> + <A HREF="mailto:pycrypto%40lists.dlitz.net?Subject=%5Bpycrypto%5D%20FW%3A%20%20python%20crypto%20with%20python%203.0%20or%203.1&In-Reply-To=SNT132-w193E74A25DFDF35C5F7184B1690%40phx.gbl" + TITLE="[pycrypto] FW: python crypto with python 3.0 or 3.1">grail69 at hotmail.com + </A><BR> + <I>Fri Jan 15 03:58:44 CST 2010</I> + <P><UL> + <LI>Previous message: <A HREF="000201.html">[pycrypto] python crypto with python 3.0 or 3.1 +</A></li> + <LI>Next message: <A HREF="000183.html">[pycrypto] Installation Problem +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#182">[ date ]</a> + <a href="thread.html#182">[ thread ]</a> + <a href="subject.html#182">[ subject ]</a> + <a href="author.html#182">[ 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 +><i> Date: Thu, 14 Jan 2010 10:07:36 +0100 +</I>><i> From: <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">don at amberfisharts.com</A> +</I>><i> To: <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">pycrypto at lists.dlitz.net</A> +</I>><i> Subject: Re: [pycrypto] python crypto with python 3.0 or 3.1 +</I>><i> +</I>><i> Hi, +</I>><i> +</I>><i> as far as I know there hasn't been a move to port pyCrypto to python 3.x +</I>><i> so simply compiling against python 3.x is bound to fail! +</I>><i> If you try to port yourself and during that effort ran into this compiler +</I>><i> error then if you look at the documentation [1] or this blog post [2] +</I>><i> (it's +</I>><i> a bit outdated since the docs have been fixed in the meantime) you will +</I>><i> see +</I>><i> that the first few lines (besides other things) of a python extension type +</I>><i> have +</I>><i> changed from +</I>><i> +</I>><i> PyObject_HEAD_INIT(NULL) +</I>><i> 0, /* ob_size */ +</I>><i> "myTypeName", /* tp_name */ +</I>><i> +</I>><i> to +</I>><i> +</I>><i> PyVarObject_HEAD_INIT(NULL, 0) +</I>><i> "myTypeName", /* tp_name */ +</I>><i> +</I>><i> If I recall correctly, the ob_size has be moved to a different structure +</I>><i> and no longer +</I>><i> is a member of PyTypeObject. +</I>><i> So to sum it up: +</I>><i> * no porting effort exist so far, AFAIK +</I>><i> * no, the error is not bogus +</I>><i> +</I>><i> sincerely yours +</I>><i> //Lorenz +</I>><i> +</I>><i> [1] <A HREF="http://docs.python.org/dev/py3k/extending/newtypes.html">http://docs.python.org/dev/py3k/extending/newtypes.html</A> +</I>><i> [2] +</I>><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>><i> +</I>><i> +</I>><i> +</I>><i> On Thu, 14 Jan 2010 07:52:59 +0000, Grail Dane <<A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">grail69 at hotmail.com</A>> +</I>><i> wrote: +</I>><i> > Hi GuysI am new to the list but have recently run into this issue.Has +</I>><i> > there been any movement?Personally I am stuck when gcc tries to compile +</I>><i> > src/_fastmath.cwhich seems to die with an error about 'ob_size' member +</I>><i> not +</I>><i> > existing :(This seems to be bogus as I traced back the struct's to +</I>><i> include +</I>><i> > PyObject_VAR_HEADwhich does have this as member.Any further help on this +</I>><i> > would be appreciated ;)Cheers Grail>On Fri, Dec 04, 2009 at 11:44:00AM +</I>><i> > +0100, Tobias Koeck wrote:>>Is it possible to run python crypto with +</I>><i> python +</I>><i> > 3.0 or 3.1. If not is +</I>><i> >>>it planed to adjust? +</I>><i> > +</I>><i> >>Sure, and it'll happen sooner if somebody volunteers to do it. :-) +</I>><i> > +</I>><i> >>There will need to be be some strategy for Python 2.x compatibility, and +</I>><i> +</I>><i> >>the contributor(s) need to to meet the PyCrypto Code Submission +</I>><i> >>Requirements: +</I>><i> > +</I>><i> >><A HREF="http://www.dlitz.net/software/pycrypto/submission-requirements/">http://www.dlitz.net/software/pycrypto/submission-requirements/</A> +</I>><i> > +</I>><i> >>-- +</I>><i> >>Dwayne C. Litzenberger <dlitz at dlitz.net> +</I>><i> >> Key-signing key - 19E1 1FE8 B3CF F273 ED17 4A24 928C EC13 39C2 5CF7 +</I>><i> >> Annual key (2009) - C805 1746 397B 0202 2758 2821 58E0 894B 81D2 582E +</I>><i> >> +</I>><i> > _________________________________________________________________ +</I>><i> > View photos of singles in your area! Browse profiles for FREE +</I>><i> > <A HREF="http://clk.atdmt.com/NMN/go/150855801/direct/01/">http://clk.atdmt.com/NMN/go/150855801/direct/01/</A> +</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> +If It Exists, You'll Find it on SEEK Shopping Trolley Mechanic +Sell your old one fast! Time for a new car? +_________________________________________________________________ +Shopping Trolley Mechanic If It Exists, You'll Find it on SEEK +<A HREF="http://clk.atdmt.com/NMN/go/157639755/direct/01/">http://clk.atdmt.com/NMN/go/157639755/direct/01/</A> +-------------- next part -------------- +An HTML attachment was scrubbed... +URL: <A HREF="http://lists.dlitz.net/pipermail/pycrypto/attachments/20100115/0432fbaf/attachment-0001.htm">http://lists.dlitz.net/pipermail/pycrypto/attachments/20100115/0432fbaf/attachment-0001.htm</A> +-------------- next part -------------- +A non-text attachment was scrubbed... +Name: pycrypto-2.1.0-python3-1.patch.bz2 +Type: application/x-bzip +Size: 8119 bytes +Desc: not available +Url : <A HREF="http://lists.dlitz.net/pipermail/pycrypto/attachments/20100115/0432fbaf/attachment-0001.bin">http://lists.dlitz.net/pipermail/pycrypto/attachments/20100115/0432fbaf/attachment-0001.bin</A> +</PRE> + + + + + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="000201.html">[pycrypto] python crypto with python 3.0 or 3.1 +</A></li> + <LI>Next message: <A HREF="000183.html">[pycrypto] Installation Problem +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#182">[ date ]</a> + <a href="thread.html#182">[ thread ]</a> + <a href="subject.html#182">[ subject ]</a> + <a href="author.html#182">[ 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> |