--- a/setup.py Wed Feb 05 10:33:14 2014 -0500 +++ b/setup.py Wed Oct 28 13:29:38 2015 +0000 @@ -1542,6 +1542,20 @@ define_macros=[('Py_LIMITED_API', '0x03040000')]) self.extensions.append(ext) + # Build the _uuid module if possible + build_uuid = False + if find_file("uuid.h", inc_dirs, ["/usr/include/uuid"]): + if self.compiler.find_library_file(lib_dirs, 'uuid'): + uuid_libs = ['uuid'] + else: + uuid_libs = [] + build_uuid = True + if build_uuid: + self.extensions.append(Extension('_uuid', ['_uuidmodule.c'], + libraries=uuid_libs)) + else: + missing.append('_uuid') + return missing def detect_tkinter_explicitly(self):