diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2016-09-14 20:26:14 +0300 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-01-09 21:07:23 +0200 |
| commit | 24221d71ccd341759b008cf1918826910c40247c (patch) | |
| tree | 16edc7011ba57678fbe8393d7076966dc70564df /test cases/python3/2 extmodule | |
| parent | 9cf0991a1d332cb1f492376bf718aa75020519e4 (diff) | |
| download | meson-24221d71ccd341759b008cf1918826910c40247c.tar.gz | |
Created a Python 3 module for simpler building of Python extension modules.
Diffstat (limited to 'test cases/python3/2 extmodule')
| -rw-r--r-- | test cases/python3/2 extmodule/ext/meson.build | 15 | ||||
| -rw-r--r-- | test cases/python3/2 extmodule/meson.build | 1 |
2 files changed, 3 insertions, 13 deletions
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() diff --git a/test cases/python3/2 extmodule/meson.build b/test cases/python3/2 extmodule/meson.build index 92a12b259..582a14e8e 100644 --- a/test cases/python3/2 extmodule/meson.build +++ b/test cases/python3/2 extmodule/meson.build @@ -3,6 +3,7 @@ project('Python extension module', 'c', # Because Windows Python ships only with optimized libs, # we must build this project the same way. +py3_mod = import('python3') py3_dep = dependency('python3', required : false) if py3_dep.found() |
