Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(30079)

Unified Diff: setup.py

Issue 20519: ctypes.create_string_buffer creates reference cycles
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Modules/_uuidmodule.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- 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):
« no previous file with comments | « Modules/_uuidmodule.c ('k') | no next file » | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+