diff options
Diffstat (limited to 'pipermail/pycrypto/2010q4/000327.html')
-rw-r--r-- | pipermail/pycrypto/2010q4/000327.html | 119 |
1 files changed, 119 insertions, 0 deletions
diff --git a/pipermail/pycrypto/2010q4/000327.html b/pipermail/pycrypto/2010q4/000327.html new file mode 100644 index 0000000..95472bc --- /dev/null +++ b/pipermail/pycrypto/2010q4/000327.html @@ -0,0 +1,119 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<HTML> + <HEAD> + <TITLE> [pycrypto] Once again: Python3 with PyCrypto + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:pycrypto%40lists.dlitz.net?Subject=%5Bpycrypto%5D%20Once%20again%3A%20Python3%20with%20PyCrypto&In-Reply-To=4D17A488.1080002%40gmx.li"> + <META NAME="robots" CONTENT="index,nofollow"> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <LINK REL="Previous" HREF="000326.html"> + <LINK REL="Next" HREF="000328.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[pycrypto] Once again: Python3 with PyCrypto</H1> + <B>Dwayne C. Litzenberger</B> + <A HREF="mailto:pycrypto%40lists.dlitz.net?Subject=%5Bpycrypto%5D%20Once%20again%3A%20Python3%20with%20PyCrypto&In-Reply-To=4D17A488.1080002%40gmx.li" + TITLE="[pycrypto] Once again: Python3 with PyCrypto">dlitz at dlitz.net + </A><BR> + <I>Mon Dec 27 07:37:40 CST 2010</I> + <P><UL> + <LI>Previous message: <A HREF="000326.html">[pycrypto] Once again: Python3 with PyCrypto +</A></li> + <LI>Next message: <A HREF="000328.html">[pycrypto] Once again: Python3 with PyCrypto +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#327">[ date ]</a> + <a href="thread.html#327">[ thread ]</a> + <a href="subject.html#327">[ subject ]</a> + <a href="author.html#327">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>Wow, it looks like you're really moving things along. Thanks, Thorsten! + +"Thorsten Behrens" <<A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">sbehrens at gmx.li</A>> wrote: + +><i>Quick update on where this stands right now. +</I>><i> +</I>><i>As predicted, the module handling changes with Python 3.x were a pain. +</I>><i>I +</I>><i>think I have them under control now. At least "python setup.py test" no +</I>><i> +</I>><i>longer crashes immediately. It now gets far enough to complain about +</I>><i>bytes/unicode errors. +</I>><i> +</I>><i>I haven't attempted _fastmath.c on Python 3.x yet. I'll do that last, +</I>><i>when everything else works. +</I>><i> +</I>><i>C modules will give link-time errors, like so: "_counter.obj : warning +</I>><i>LNK4197: export 'init_counter' specified multiple times; using first +</I>><i>specification". This is an issue in distutils. See python issue 9709. +</I>><i>There's nothing we can do until Python fixes distutils - of course any +</I>><i>pre-compiled binaries can be built with the distutils fix in, and the +</I>><i>README can warn people of this. +</I>><i> +</I>><i>The code still works with Python27, but I broke Python21. Specifically, +</I>><i> +</I>><i>I am having a hard time with string literals. The main work remaining +</I>><i>now is to flush out string to bytes/unicode changes between 2.x and +</I>><i>3.x, +</I>><i>and adapt the code. I thought I had this licked, but I clearly don't. +</I>><i> +</I>><i>I am currently not handling literals well. This is what I tried: +</I>><i> if sys.version_info[0] is 2: +</I>><i> seed = "".join(seed) +</I>><i> else: +</I>><i> seed = b"".join(seed) +</I>><i> +</I>><i>And that gives a "SyntaxError: invalid syntax" at run time. Of course +</I>><i>it +</I>><i>does. +</I>><i> +</I>><i>django has been moved to be 2.x/3.x compatible. I'll see what they did +</I>><i>and try to replicate it. I'm hoping it'll take care of these type of +</I>><i>issues. +</I>><i> +</I>><i>Assignment to True and False in pycrypto_compat.py is an issue. Right +</I>><i>now, I just don't import pycrypto_compat.py when Python 3.x is +</I>><i>detected. +</I>><i>That still gives install-time errors on Python 3.x. The only option I +</I>><i>can think of right now is to exclude the offending file from install in +</I>><i> +</I>><i>setup.py if Python 3.x is detected. +</I>><i> +</I>><i>Thorsten +</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> +-- +Sent from my Android phone with K-9 Mail. Please excuse my brevity. +</PRE> + + + + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="000326.html">[pycrypto] Once again: Python3 with PyCrypto +</A></li> + <LI>Next message: <A HREF="000328.html">[pycrypto] Once again: Python3 with PyCrypto +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#327">[ date ]</a> + <a href="thread.html#327">[ thread ]</a> + <a href="subject.html#327">[ subject ]</a> + <a href="author.html#327">[ 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> |