From a04c33e12527d3ed7a07dce0380afabb46cf4f3d Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sun, 21 Feb 2016 17:12:09 +0200 Subject: Can build Python extension on OSX. --- test cases/python3/2 extmodule/ext/meson.build | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'test cases/python3') diff --git a/test cases/python3/2 extmodule/ext/meson.build b/test cases/python3/2 extmodule/ext/meson.build index 1184835d8..04c0592c2 100644 --- a/test cases/python3/2 extmodule/ext/meson.build +++ b/test cases/python3/2 extmodule/ext/meson.build @@ -1,6 +1,14 @@ +if host_machine.system() == 'darwin' + # Default suffix is 'dylib' but Python does not use for extensions. + suffix = 'so' +else + suffix = [] +endif + pylib = shared_library('tachyon', 'tachyon_module.c', dependencies : py3_dep, - name_prefix : '') + name_prefix : '', + name_suffix : suffix) pypathdir = meson.current_build_dir() -- cgit v1.2.3