From 24221d71ccd341759b008cf1918826910c40247c Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Wed, 14 Sep 2016 20:26:14 +0300 Subject: Created a Python 3 module for simpler building of Python extension modules. --- test cases/python3/2 extmodule/ext/meson.build | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'test cases/python3/2 extmodule/ext') diff --git a/test cases/python3/2 extmodule/ext/meson.build b/test cases/python3/2 extmodule/ext/meson.build index 7d67953cb..d5d8849e3 100644 --- a/test cases/python3/2 extmodule/ext/meson.build +++ b/test cases/python3/2 extmodule/ext/meson.build @@ -1,17 +1,6 @@ -if host_machine.system() == 'darwin' - # Default suffix is 'dylib' but Python does not use for extensions. - suffix = 'so' -elif host_machine.system() == 'windows' - # On Windows the extension is pyd for some unexplainable reason. - suffix = 'pyd' -else - suffix = [] -endif - -pylib = shared_library('tachyon', +pylib = py3_mod.extension_module('tachyon', 'tachyon_module.c', dependencies : py3_dep, - name_prefix : '', - name_suffix : suffix) +) pypathdir = meson.current_build_dir() -- cgit v1.3