Issue #6715: Add module for compression using the LZMA algorithm.
diff --git a/setup.py b/setup.py
index fff4361..39aff67 100644
--- a/setup.py
+++ b/setup.py
@@ -1279,6 +1279,13 @@
         else:
             missing.append('_bz2')
 
+        # LZMA compression support.
+        if self.compiler.find_library_file(lib_dirs, 'lzma'):
+            exts.append( Extension('_lzma', ['_lzmamodule.c'],
+                                   libraries = ['lzma']) )
+        else:
+            missing.append('_lzma')
+
         # Interface to the Expat XML parser
         #
         # Expat was written by James Clark and is now maintained by a group of