------------
``pgp-mime`` is a simple package with no external dependencies outside
-the Python 3 standard library. There are a number of GnuPG_ wrappers
+the Python 3.3 standard library. There are a number of GnuPG_ wrappers
for python `out there`__, but none of them seem mature/stable enough
to be worth installing. Instead, we use the `pyassuan`_ module to
talk to `gpgme-tool`_ over pipes or sockets. If this isn't working
__ wrappers_
+It would be awkward to backport ``pgp-mime`` to earlier versions of
+Python, because versions before Python 3.3 lack sendmsg_ and recvmsg_,
+and Python 2.7 doesn't even have that pass_fds option for Popen. This
+makes it much harder to pass file descriptors to the `gpgme-tool`
+process.
+
Installing by hand
------------------
If a Python-3-version of ``nosetests`` is not the default on your
system, you may need to try something like::
- $ nosetests-3.2 --with-doctest --doctest-tests pgp_mime
+ $ nosetests-3.3 --with-doctest --doctest-tests pgp_mime
Licence
=======
.. _pyassuan: http://blog.tremily.us/posts/pyassuan/
.. _gpgme-tool:
http://git.gnupg.org/cgi-bin/gitweb.cgi?p=gpgme.git;a=blob;f=src/gpgme-tool.c;hb=HEAD
+.. _Popen: http://docs.python.org/py3k/library/subprocess.html#subprocess.Popen
+.. _sendmsg: http://docs.python.org/dev/library/socket.html#socket.socket.sendmsg
+.. _recvmsg: http://docs.python.org/dev/library/socket.html#socket.socket.recvmsg
.. _Git: http://git-scm.com/
.. _homepage: http://blog.tremily.us/posts/pgp-mime/
.. _wrappers and pinentry program: http://blog.tremily.us/posts/gpg-agent/