From f70a7cc4115d781e34950f2259ede1976856ed0c Mon Sep 17 00:00:00 2001 From: fzadow Date: Mon, 16 Sep 2013 13:45:58 +0200 Subject: [PATCH] Allow compilation on Mac OS luuid is not a separate library on Mac OS but is included in System.dylib --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 73140be..5c5dcd7 100644 --- a/setup.py +++ b/setup.py @@ -40,11 +40,15 @@ def __init__(self, *args, **kwargs): print("building without Cython") source_extension = ".c" +if os.sys.platform == 'darwin': + libraries = ['System'] +else: + libraries = ['libuuid'] ext_modules = [ Extension('libuuid._uuid', sources=['libuuid/_uuid' + source_extension], - libraries=['uuid']) + libraries=libraries) ]