From d5cf7499be9a6615a456b1242b9c94e1fac2453a Mon Sep 17 00:00:00 2001 From: "Alexander V. Nikolaev" Date: Mon, 16 Sep 2013 13:45:58 +0200 Subject: [PATCH 1/4] Allow compilation on Mac OS luuid is not a separate library on Mac OS but is included in System.dylib Based on patch by "fzadow " --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 73140be..9a754c8 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 = ['uuid'] ext_modules = [ Extension('libuuid._uuid', sources=['libuuid/_uuid' + source_extension], - libraries=['uuid']) + libraries=libraries) ] From 539a37b33e01de4cf466b37c378f869d0e960d86 Mon Sep 17 00:00:00 2001 From: "Alexander V. Nikolaev" Date: Sat, 26 Oct 2013 08:38:27 +0300 Subject: [PATCH 2/4] Add "minor" own versioning ".sg" --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 9a754c8..1ff680e 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- """C Extension for faster UUID generation using libuuid.""" -__version_info__ = (0, 9, 0) +__version_info__ = (0, 9, 0, "sg") __version__ = ".".join(map(str, __version_info__)) __author__ = "Daniel Lundin" __contact__ = "dln@eintr.org" From 90d8a750a1503506b46c00c0b03daf0d1208728e Mon Sep 17 00:00:00 2001 From: Kien Pham Date: Wed, 4 Dec 2013 10:37:12 -0800 Subject: [PATCH 3/4] Update setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 1ff680e..2d3fea0 100644 --- a/setup.py +++ b/setup.py @@ -43,7 +43,7 @@ def __init__(self, *args, **kwargs): if os.sys.platform == 'darwin': libraries = ['System'] else: - libraries = ['uuid'] + libraries = ['libuuid'] ext_modules = [ Extension('libuuid._uuid', From 01ed3a06c2ac0a8d63901cbfc3ae5d248b4e90d5 Mon Sep 17 00:00:00 2001 From: Kien Pham Date: Wed, 4 Dec 2013 11:23:30 -0800 Subject: [PATCH 4/4] Update setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 2d3fea0..1ff680e 100644 --- a/setup.py +++ b/setup.py @@ -43,7 +43,7 @@ def __init__(self, *args, **kwargs): if os.sys.platform == 'darwin': libraries = ['System'] else: - libraries = ['libuuid'] + libraries = ['uuid'] ext_modules = [ Extension('libuuid._uuid',